Re: problem with example from Technical Note 2137 (Universal Binaries and Autoconf)
Re: problem with example from Technical Note 2137 (Universal Binaries and Autoconf)
- Subject: Re: problem with example from Technical Note 2137 (Universal Binaries and Autoconf)
- From: "Peter O'Gorman" <email@hidden>
- Date: Tue, 14 Feb 2006 09:09:37 +0900
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Brant Sears wrote:
| I am trying to work through the example shown in Technical Note 2137. My
system is a PowerPC (G5) system with XCode 2.2 installed. I have used
gcc_select to make sure that GCC 4 is selected.
|
| I downloaded the hello world sample from the Free Software Foundation. I
can configure and build it normally, but I cannot use this example from the
technical note:
|
| env CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386
- -arch ppc" \
| LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" \
| ./configure --prefix=${HOME}/Hello --disable-dependency-tracking
|
|
| when I try to use this, the message I get is:
|
| checking for a BSD-compatible install... /usr/bin/install -c
| checking whether build environment is sane... yes
| checking for gawk... no
| checking for mawk... no
| checking for nawk... no
| checking for awk... awk
| checking whether make sets ${MAKE}... yes
| checking for gcc... gcc
| checking for C compiler default output... configure: error: C compiler
cannot create executables
You probably need to remove the LDFLAGS, but look at config.log to make sure
that it says that syslibroot is specified twice. The gcc compiler driver
always adds -syslibroot when calling the linker if -issyroot was given. Then
the linker dies complaining about the double up, even though the argument to
- -syslibroot is the same.
This is rdar://problem/4354876, (asking for the linker to allow -syslibroot
multiple times as long as the argument is the same) but since it got marked
as "Enhancement" I doubt that it will ever be fixed.
Peter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)
iQCVAwUBQ/EfwbiDAg3OZTLPAQLqlAQAwGLQjvGMRo1q6nR9/GLmshdShEyrtoHT
L5xbvFGm4eKLXfb9S/FS79ZHFm6gUmpEluCttzUWVlzJp6TVdRQnvBviWosfJs+r
flRJ11+lt4zuJGKpZnW17GHeZVrvTqPrRx7Cm1MYtBgLQ8d1RLIyX1kVkvGMVV2V
TW/CRl7ENUo=
=vE08
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden