[MacPorts] #33452: coreutils: Undefined symbols for architecture x86_64 (was: Undefined symbols for architecture x86_64)

MacPorts noreply at macports.org
Fri Mar 2 17:24:23 PST 2012


#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


More information about the macports-tickets mailing list