[patch] ppc64 native target for gcc

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

On Nov 10, 2006, at 2:47 PM, Jack Howarth wrote:

>    It is pointless to attempt to build java on the powerpc64-*-darwin*
> target since we still don't have a working 64-bit version of libffi
> on Darwin PPC.

What do you mean by "pointless"?  Will *no* java programs compile/run  
on ppc64?

> setenv gcc "gcc -m64"

I configured with

env CC='gcc -m64 -mcpu=970'

> setenv ld ld64

It seems to be using ld64 already:

[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/./ 
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  
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

More information about the Gcc-patches mailing list