universal binary won't compile

Robert DuToit rdutoit at capecod.net
Wed Feb 20 16:14:08 GMT 2008


Hi Again,
Sorry to keep posting about this. There seems to be a lot of confusion  
trying to get compatibility with various Mac architectures and OS.  
Sven Peters was able to compile on an intel Mac running leopard using

 >patch -p1 <patches/flags.diff
 >patch -p1 <patches/crtimes.diff
 >./configure CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch  
ppc -arch i386" LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/ 
MacOSX10.4u.sdk -arch ppc -arch i386"
 >make

it works on his intel as well as my PPC.
Mac (also leopard) I get this on the configure log below. " C compiler  
cannot create executables"

I would need to compile on tiger PPC Mac to have it be universal and  
compatible upward with leopard. Thanks Rob D

Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable- 
checking -enable-werror --prefix=/usr --mandir=/share/man --enable- 
languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/ 
$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/ 
lib --build=i686-apple-darwin9 --program-prefix= --host=powerpc-apple- 
darwin9 --target=powerpc-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5465)
configure.sh:2238: $? = 0
configure.sh:2245: gcc -V >&5
gcc-4.0: argument to `-V' is missing
configure.sh:2248: $? = 1
configure.sh:2271: checking for C compiler default output file name
configure.sh:2298: gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch  
ppc -arch i386  -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch  
ppc -arch i386 conftest.c  >&5
ld: library not found for -lcrt1.10.5.o
collect2: ld returned 1 exit status
ld: library not found for -lcrt1.10.5.o
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/mg/mgMdX2n6F8mI4Jbj8rDLnU++ 
+TI/-Tmp-//ccwVEjI9.out (No such file or directory)
configure.sh:2301: $? = 1
configure.sh:2339: result:
configure.sh: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define RSYNC_VERSION "3.0.0pre10"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure.sh:2346: error: C compiler cannot create executables
See `config.log' for more details.



More information about the rsync mailing list