Gm2 still fails to build on Mac 10.5/PPC.
Here is my configuration script:
SHELL=/bin/bash \
CC='gcc-4.2 -m64 -mtune=970' \
CXX='g++-4.2 -m64 -mtune=970' \
LD='gcc-4.2 -m64 -mtune=970' \
../../src/gcc-4.7.3-patched/configure \
--prefix=$HOME/gm2-4.7.3 --exec-prefix=$HOME/gm2-4.7.3 \
--with-mpc=/usr/local \
--with-mpfr=/usr/local \
--with-gmp=/usr/local \
--enable-languages=c,c++,gm2 \
--disable-multilib \
--disable-bootstrap --enable-checking --disable-libitm \
--enable-shared \
--enable-libgm2
Here is where the build ends:
gcc-4.2 -m64 -mtune=970 -c -g [...] gcc-4.2 -m64 -mtune=970 -c -g
../../../src/gcc-4.7.3-patched/gcc/gm2/gm2-gcc/init.c -o gm2/gm2-gcc/init.o
gcc -g [...] -o gm2/boot-bin/mklink
../../../src/gcc-4.7.3-patched/gcc/gm2/tools-src/mklink.c
ld warning: in /Users/build/gcc-4.7.3/lib/libgcc_ext.10.5.dylib, missing
required architecture ppc in file
ld warning: in
/Users/build/gcc-4.7.3/lib/gcc/powerpc-apple-darwin9.8.0/4.7.3/libgcc.a,
file is not of required architecture
Undefined symbols:
"saveGPR", referenced from:
_addLibrary in ccDfIk5g.o
_IsSym in ccDfIk5g.o
_SymIs in ccDfIk5g.o
"restGPRx", referenced from:
_addLibrary in ccDfIk5g.o
_IsSym in ccDfIk5g.o
_SymIs in ccDfIk5g.o
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
Note that a different compiler is used for linking. If neither GCC nor
LD are honoured, then what is the appropriate environment variable used
by configure?
john