Opened 11 years ago

Closed 11 years ago

#21105 closed defect (fixed)

bash fails to build with x86_64 universal variant

Reported by: 858wildcat@… Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc: pieter.debaets@…
Port: bash

Description

bash does not compile when specifying the universal variant (set to compile x86_64). This is using 1.8.0 on Snow Leopard.

~> sudo port upgrade --enforce-variants bash +universal
--->  Computing dependencies for bash
--->  Building bash
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_shells_bash/work/bash-4.0" && /usr/bin/make -j7 all " returned error 2
Command output:       start in crt1.10.6.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//cc46BLSW.out (No such file or directory)
make[1]: *** [mkbuiltins] Error 1
make: *** [builtins/builtext.h] Error 1
make: *** Waiting for unfinished jobs....
subst.c:58:31: error: builtins/builtext.h: No such file or directory
version.c: In function 'show_shell_version':
version.c:91: warning: format not a string literal and no format arguments
version.c:92: warning: format not a string literal and no format arguments
subst.c: In function 'process_substitute':
subst.c:4559: warning: format not a string literal and no format arguments
subst.c:4575: warning: format not a string literal and no format arguments
subst.c:4607: warning: format not a string literal and no format arguments
subst.c: In function 'command_substitute':
subst.c:4868: warning: format not a string literal and no format arguments
subst.c:4902: warning: format not a string literal and no format arguments
subst.c:4919: warning: format not a string literal and no format arguments
subst.c:58:31: error: builtins/builtext.h: No such file or directory
subst.c: In function 'process_substitute':
subst.c:4559: warning: format not a string literal and no format arguments
subst.c:4575: warning: format not a string literal and no format arguments
subst.c:4607: warning: format not a string literal and no format arguments
subst.c: In function 'command_substitute':
subst.c:4868: warning: format not a string literal and no format arguments
subst.c:4902: warning: format not a string literal and no format arguments
subst.c:4919: warning: format not a string literal and no format arguments
lipo: can't figure out the architecture type of: /var/tmp//ccoOnVJ3.out
make: *** [subst.o] Error 1

Attachments (1)

bash-build.txt (57.4 KB) - added by 858wildcat@… 11 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 11 years ago by 858wildcat@…

Cc: 858wildcat@… added

Cc Me!

comment:2 Changed 11 years ago by tobypeterson

Cc: 858wildcat@… removed
Port: bash added
Version: 1.8.0

This isn't very clear - what is your "universal_archs" set to? What about "build_arch" ?

comment:3 Changed 11 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to raimue@…
Version: 1.8.0

I think we need to see the debug output to help with this. Normally MacPorts only shows the last 30 lines of error, and it looks like there was more output than that here. Can you clean the port and try again with the debug switch?

sudo port clean bash
sudo port -d install bash 2>&1 | tee ~/Desktop/bash.txt
bzip2 ~/Desktop/bash.txt

Then attach bash.txt.bz2 from your desktop to this ticket.

P.S: Toby, please keep the MacPorts version in the ticket.

comment:4 Changed 11 years ago by 858wildcat@…

Sorry guys, I should have been more clear about what I'm *trying* to do. I've had macports installed for some time on a 64-bit capable machine. I'm attempting to rebuild the tree with universal binaries where possible. My attempt at doing that was to run "sudo port upgrade --enforce-variants installed +universal" where my settings in /etc/macports/macports.conf are as follows:

universal_archs x86_64 i386 #build_archs i386

From the comments, it seems like build_archs should be x86_64 by default, but it is just commented out (so I assume it defaults to i386).

Attached is the debug output from the build attempt.

Changed 11 years ago by 858wildcat@…

Attachment: bash-build.txt added

comment:5 Changed 11 years ago by raimue (Rainer Müller)

Status: newassigned

comment:6 Changed 11 years ago by pieter.debaets@…

Cc: pieter.debaets@… added

Cc Me!

comment:7 Changed 11 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: assignedclosed

Fixed in r57744.

Note: See TracTickets for help on using tickets.