[patch] ppc64 native target for gcc

Bradley Lucier lucier@math.purdue.edu
Fri Nov 10 20:15:00 GMT 2006


On Nov 10, 2006, at 2:03 PM, Mike Stump wrote:

>
> On Nov 10, 2006, at 6:04 AM, Bradley Lucier wrote:
>> /Users/gcc-test/programs/gcc/mainline/objdir/./prev-gcc/xgcc -B/ 
>> Users/gcc-test/programs/gcc/mainline/objdir/./prev-gcc/ -B/pkgs/ 
>> gcc-4.3.0-64/powerpc64-apple-darwin8.8.0/bin/   -g -O2 -DIN_GCC   - 
>> W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes - 
>> pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength- 
>> strings -Wold-style-definition -Wmissing-format-attribute -Werror - 
>> fno-common   -DHAVE_CONFIG_H  -o gcjh java/gjavah.o java/jcf-io.o  
>> java/jcf-depend.o java/jcf-path.o java/win32-host.o java/ 
>> zextract.o version.o errors.o ggc-none.o intl.o  -L../zlib -lz ../ 
>> libcpp/libcpp.a ./../intl/libintl.a  ../libiberty/libiberty.a ../ 
>> libdecnumber/libdecnumber.a -L/pkgs/gmp-4.2.1-64//lib -L/pkgs/ 
>> gmp-4.2.1-64//lib -lmpfr -lgmp
>> ld64 warning: in /usr/lib/libz.dylib, file is not of required  
>> architecture
>
> Hum, if there is a libz.a and no dylib, you might need - 
> search_paths_first for ld.  Anyway, ld should file a libz in ../ 
> zlib, was there one there?

Yes:

[descartes:gcc/mainline/objdir] gcc-test% file zlib/libz.a
zlib/libz.a: current ar archive
[descartes:gcc/mainline/objdir] gcc-test% file zlib/*.o
zlib/libz_a-adler32.o:  Mach-O 64-bit object ppc64
zlib/libz_a-compress.o: Mach-O 64-bit object ppc64
zlib/libz_a-crc32.o:    Mach-O 64-bit object ppc64
zlib/libz_a-deflate.o:  Mach-O 64-bit object ppc64
zlib/libz_a-gzio.o:     Mach-O 64-bit object ppc64
zlib/libz_a-infback.o:  Mach-O 64-bit object ppc64
zlib/libz_a-inffast.o:  Mach-O 64-bit object ppc64
zlib/libz_a-inflate.o:  Mach-O 64-bit object ppc64
zlib/libz_a-inftrees.o: Mach-O 64-bit object ppc64
zlib/libz_a-trees.o:    Mach-O 64-bit object ppc64
zlib/libz_a-uncompr.o:  Mach-O 64-bit object ppc64
zlib/libz_a-zutil.o:    Mach-O 64-bit object ppc64

I've added -v to the command line below:

[descartes:mainline/objdir/gcc] gcc-test% /Users/gcc-test/programs/ 
gcc/mainline/objdir/./prev-gcc/xgcc -v -B/Users/gcc-test/programs/gcc/ 
mainline/objdir/./prev-gcc/ -B/pkgs/gcc-4.3.0-64/powerpc64-apple- 
darwin8.8.0/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict- 
prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno- 
variadic-macros -Wno-overlength-strings -Wold-style-definition - 
Wmissing-format-attribute -Werror -fno-common -DHAVE_CONFIG_H -o gcjh  
java/gjavah.o java/jcf-io.o java/jcf-depend.o java/jcf-path.o java/ 
win32-host.o java/zextract.o version.o errors.o ggc-none.o intl.o - 
L../zlib -lz ../libcpp/libcpp.a ./../intl/libintl.a ../libiberty/ 
libiberty.a ../libdecnumber/libdecnumber.a -L/pkgs/gmp-4.2.1-64//lib - 
L/pkgs/gmp-4.2.1-64//lib -lmpfr -lgmp
Reading specs from /Users/gcc-test/programs/gcc/mainline/objdir/./ 
prev-gcc/specs
Target: powerpc64-apple-darwin8.8.0
Configured with: ../configure --host=powerpc64-apple-darwin8.8.0 -- 
target=powerpc64-apple-darwin8.8.0 --with-gmp=/pkgs/gmp-4.2.1-64/ -- 
with-mpfr=/pkgs/gmp-4.2.1-64/ --prefix=/pkgs/gcc-4.3.0-64
Thread model: posix
gcc version 4.3.0 20061110 (experimental)
/Users/gcc-test/programs/gcc/mainline/objdir/./prev-gcc/collect2 - 
dynamic -arch ppc64 -weak_reference_mismatches non-weak -o gcjh - 
lcrt1.o -L../zlib -L/pkgs/gmp-4.2.1-64//lib -L/pkgs/gmp-4.2.1-64//lib  
-L/Users/gcc-test/programs/gcc/mainline/objdir/./prev-gcc java/ 
gjavah.o java/jcf-io.o java/jcf-depend.o java/jcf-path.o java/win32- 
host.o java/zextract.o version.o errors.o ggc-none.o intl.o -lz ../ 
libcpp/libcpp.a ./../intl/libintl.a ../libiberty/libiberty.a ../ 
libdecnumber/libdecnumber.a -lmpfr -lgmp -lgcc -lSystemStubs -lSystem
ld64 warning: in /usr/lib/libz.dylib, file is not of required  
architecture
Undefined symbols:
   _inflateEnd, referenced from:
       _read_zip_member in jcf-io.o
   _inflateInit2_, referenced from:
       _read_zip_member in jcf-io.o
   _inflate, referenced from:
       _read_zip_member in jcf-io.o
ld64-62.1 failed: symbol(s) not found
collect2: ld returned 1 exit status
[descartes:mainline/objdir/gcc] gcc-test% ld -v
Apple Computer, Inc. version cctools-622.5.obj~13
[descartes:mainline/objdir/gcc] gcc-test% ld64 -v
@(#)PROGRAM:ld64  PROJECT:ld64-62.1  DEVELOPER:root  BUILT:Sep 26  
2006 21:31:20
[descartes:mainline/objdir/gcc] gcc-test% which ld64
/usr/bin/ld64



More information about the Gcc-patches mailing list