On Feb 1, 2006, at 2:54 PM, Martin Costabel wrote:

Alexander K. Hansen wrote:
[]
checking for C compiler default output... configure: error: C
compiler cannot create executables

If you want to know what causes this error, you have to look in the config.log file (in the build directory) for details.

-- 
Martin



Just in case it helps anyone else, I found the solution to the error.  

Apple's TN 2137 recommends setting environment variables as such:

env CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" \
  LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" 

However, that results in a multiply specified error with ld:  

configure:3650: checking for C compiler default output
configure:3653: gcc -O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc  -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk conftest.c  >&5
/usr/bin/ld: -syslibroot: multiply specified
collect2: ld returned 1 exit status
/usr/bin/ld: -syslibroot: multiply specified
collect2: ld returned 1 exit status


In short, simply setting -isysroot is sufficient, as documented in this email:


I have filed rdar://442920 pointing out the error in the technote.

(libgmp still fails to build, but for a reason other than multiply specified ld parameters)

Wade


Reply via email to