[patch] ppc64 native target for gcc
Jack Howarth
howarth@bromo.msbb.uc.edu
Fri Nov 10 17:19:00 GMT 2006
Eric,
At least for gcc 4.2 on a G5 if I do...
setenv CFLAGS "-O2 -m64 -g"
setenv CPPFLAGS "-O2 -m64 -g"
setenv CXXFLAGS "-O2 -m64 -g"
setenv LDFLAGS "-O2 -m64 -g"
../gcc/configure --prefix=/Users/howarth/work/gcc42 --enable-languages=c,c++ --host=powerpc64-apple-darwin8 --target=powerpc64-apple-darwin8 --disable-multilib
make
...the build fails at...
ranlib libcpp.a
gcc -I../../gcc/libcpp -I. -I../../gcc/libcpp/../include -I./../intl -I../../gcc/libcpp/include -O2 -m64 -g -g -fkeep-inline-functions -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -I../../gcc/libcpp -I. -I../../gcc/libcpp/../include -I./../intl -I../../gcc/libcpp/include -O2 -m64 -g -c -o makedepend.o -MT makedepend.o -MMD -MP -MF .deps/makedepend.Po ../../gcc/libcpp/makedepend.c
gcc -g -fkeep-inline-functions -o makedepend \
makedepend.o libcpp.a ../libiberty/libiberty.a \
./../intl/libintl.a
/usr/bin/ld: truncated or malformed archive: libcpp.a (ranlib structures in table of contents extends past the end of the table of contents, can't load from it)
/usr/bin/ld: truncated or malformed archive: ./../intl/libintl.a (ranlib structures in table of contents extends past the end of the table of contents, can't load from it)
collect2: ld returned 1 exit status
make[3]: *** [makedepend] Error 1
make[2]: *** [all-stage1-libcpp] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2
All the source files in intl are compiled with -m64. Any idea why this if failing on MacOS X 10.4.8
with Xcode 2.4.1? Also shouldn't the powerpc64-apple-darwin8 host and target preset -m64 for the
compiler flags as well?
Jack
More information about the Gcc-patches
mailing list