[MacPorts] #33452: Undefined symbols for architecture x86_64
#33452: Undefined symbols for architecture x86_64 --------------------------------------+------------------------------------- Reporter: macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: coreutils --------------------------------------+------------------------------------- Compiling coreutils on Mac OS X (Lion) fails with the infamous "Undefined symbols for architecture x86_64" error, see #32123, #33407. Unfortunately forcing a different compiler (as suggested in the tickets and in the [https://trac.macports.org/wiki/ProblemHotlist#compiler documentation] did not help here. {{{ $ port clean coreutils $ port install apple-gcc42 $ port install coreutils configure.compiler=apple-gcc-4.2 configure.cxx=g++-apple-4.2 }}} From the main.log: {{{ [...] :info:build CC su.o :info:build AR libver.a :info:build CCLD chroot :info:build ld: warning: ignoring file libver.a, file was built for archive which is not the architecture being linked (x86_64) :info:build ld: warning: ignoring file ../lib/libcoreutils.a, file was built for archive which is not the architecture being linked (x86_64) :info:build Undefined symbols for architecture x86_64: :info:build "_xstrdup", referenced from: :info:build _set_additional_groups in chroot.o }}} Setting configure.compiler to "llvm-gcc-4.2" or "gcc-4.2" did not help, although one could see in the buildlog that the setting was honored and llvm-gcc-4.2 resp. gcc-4.2 (resp. apple-gcc42) was used. {{{ $ sw_vers ProductName: Mac OS X ProductVersion: 10.7.3 BuildVersion: 11D50 $ port version Version: 2.0.4 $ xcodebuild -version Xcode 4.1 Build version 4B110 }}} -- Ticket URL: <https://trac.macports.org/ticket/33452> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33452: coreutils: Undefined symbols for architecture x86_64 --------------------------------------+------------------------------------- Reporter: macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: coreutils --------------------------------------+------------------------------------- Description changed by ryandesign@…: Old description:
Compiling coreutils on Mac OS X (Lion) fails with the infamous "Undefined symbols for architecture x86_64" error, see #32123, #33407. Unfortunately forcing a different compiler (as suggested in the tickets and in the [https://trac.macports.org/wiki/ProblemHotlist#compiler documentation] did not help here.
{{{ $ port clean coreutils $ port install apple-gcc42 $ port install coreutils configure.compiler=apple-gcc-4.2 configure.cxx=g++-apple-4.2 }}}
From the main.log:
{{{ [...] :info:build CC su.o :info:build AR libver.a :info:build CCLD chroot :info:build ld: warning: ignoring file libver.a, file was built for archive which is not the architecture being linked (x86_64) :info:build ld: warning: ignoring file ../lib/libcoreutils.a, file was built for archive which is not the architecture being linked (x86_64) :info:build Undefined symbols for architecture x86_64: :info:build "_xstrdup", referenced from: :info:build _set_additional_groups in chroot.o }}}
Setting configure.compiler to "llvm-gcc-4.2" or "gcc-4.2" did not help, although one could see in the buildlog that the setting was honored and llvm-gcc-4.2 resp. gcc-4.2 (resp. apple-gcc42) was used.
{{{ $ sw_vers ProductName: Mac OS X ProductVersion: 10.7.3 BuildVersion: 11D50
$ port version Version: 2.0.4
$ xcodebuild -version Xcode 4.1 Build version 4B110 }}}
New description: Compiling coreutils on Mac OS X (Lion) fails with the infamous "Undefined symbols for architecture x86_64" error, see #32123, #33407. Unfortunately forcing a different compiler (as suggested in the tickets and in the [wiki:ProblemHotlist#compiler documentation] did not help here. {{{ $ port clean coreutils $ port install apple-gcc42 $ port install coreutils configure.compiler=apple-gcc-4.2 configure.cxx=g++-apple-4.2 }}} From the main.log: {{{ [...] :info:build CC su.o :info:build AR libver.a :info:build CCLD chroot :info:build ld: warning: ignoring file libver.a, file was built for archive which is not the architecture being linked (x86_64) :info:build ld: warning: ignoring file ../lib/libcoreutils.a, file was built for archive which is not the architecture being linked (x86_64) :info:build Undefined symbols for architecture x86_64: :info:build "_xstrdup", referenced from: :info:build _set_additional_groups in chroot.o }}} Setting configure.compiler to "llvm-gcc-4.2" or "gcc-4.2" did not help, although one could see in the buildlog that the setting was honored and llvm-gcc-4.2 resp. gcc-4.2 (resp. apple-gcc42) was used. {{{ $ sw_vers ProductName: Mac OS X ProductVersion: 10.7.3 BuildVersion: 11D50 $ port version Version: 2.0.4 $ xcodebuild -version Xcode 4.1 Build version 4B110 }}} -- -- Ticket URL: <https://trac.macports.org/ticket/33452#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33452: coreutils: Undefined symbols for architecture x86_64 --------------------------------------+------------------------------------- Reporter: macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: coreutils --------------------------------------+------------------------------------- Comment(by macports@…): I noticed that I '''did''' have Xcode 4.3 installed, but xcodebuild would still print "4.1". Switched to 4.3 now, but the error remains the same :-\ {{{ $ xcodebuild -version Xcode 4.3 Build version 4E109 $ xcode-select -print-path /Applications/Xcode.app/Contents/Developer }}} -- Ticket URL: <https://trac.macports.org/ticket/33452#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33452: coreutils: Undefined symbols for architecture x86_64 --------------------------------------+------------------------------------- Reporter: macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: coreutils --------------------------------------+------------------------------------- Comment(by ryandesign@…): Replying to [comment:2 macports@…]:
I noticed that I '''did''' have Xcode 4.3 installed, but xcodebuild would still print "4.1". Switched to 4.3 now,
How?
but the error remains the same :-\
Did you already "sudo port clean coreutils" and try again? -- Ticket URL: <https://trac.macports.org/ticket/33452#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33452: coreutils: Undefined symbols for architecture x86_64 --------------------------------------+------------------------------------- Reporter: macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: coreutils --------------------------------------+------------------------------------- Comment(by macports@…):
How?
Xcode 4.1 was installed as a .dmg (and was installed in /Developer), 4.3 installs via AppStore in /Applications, so I had to do: {{{ $ xcode-select -switch /Applications/Xcode.app/Contents/Developer $ xcodebuild -version Xcode 4.3 Build version 4E109 }}} When compiling w/o any configure.compiler= flags set, llvm-gcc-4.2 is used and from the main.log (attached) one can see that this points to "/usr /llvm-gcc-4.2/bin/llvm-gcc-4.2" which is the version from the commandline- tools that was installed from within Xcode 4.3.
Did you already "sudo port clean coreutils" and try again?
Yes, after ''every'' failed attempt of "port install ..." I did the "port clean coreutils", even "port clean --all all" once. -- Ticket URL: <https://trac.macports.org/ticket/33452#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33452: coreutils: Undefined symbols for architecture x86_64 --------------------------------------+------------------------------------- Reporter: macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: coreutils --------------------------------------+------------------------------------- Comment(by macports@…): Same as #33540: reinstalling MacPorts helped, coreutils now installs just fine. Again, sorry for the noise. -- Ticket URL: <https://trac.macports.org/ticket/33452#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33452: coreutils: Undefined symbols for architecture x86_64 ---------------------------------------+------------------------------------ Reporter: macports@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: worksforme | Keywords: Port: coreutils | ---------------------------------------+------------------------------------ Changes (by jmr@…): * status: new => closed * resolution: => worksforme -- Ticket URL: <https://trac.macports.org/ticket/33452#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts