[gambit-list] Apple's gcc-4.0.0, build 4061, broken. (was: Re: Problem with compiled code using tables)
Bradley Lucier
lucier at math.purdue.edu
Fri May 20 15:19:22 EDT 2005
On MacOS 10.4.1 Tiger, the version of gcc 4.0.0 shipped with Tiger,
[descartes:~/programs/gcc] lucier% /usr/bin/gcc -v
Reading specs from /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs
Configured with: /private/var/tmp/gcc/gcc-4061.obj~8/src/configure --
disable-checking --prefix=/usr --mandir=/share/man --enable-
languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^+.-]*$/
s/$/-4.0/ --with-gxx-include-dir=/include/gcc/darwin/4.0/c++ --
build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --
target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4061)
miscompiles gambc40b13. gambc40b13 appears to work correctly with the
FSF release of gcc-4.0.0 and with the cvs build of Apple's gcc, which
is based on the released version of FSF gcc-4.0.0.
Here are some hints about how to build Apples current CVS version of
gcc based on the FSF gcc-4.0.0 release.
First, download and install cctools-576:
http://gcc.gnu.org/ml/gcc/2005-03/msg01149.html
Then download the cvs version of Apple's GCC-4.0.0 sources:
cvs -z 9 co -r apple-local-200502-branch gcc
after following the instructions at
http://gcc.gnu.org/cvs.html
for setting up your environment variables and logging in. This will
give you the following version of gcc:
const char version_string[] = "4.0.0 (Apple Computer, Inc. build 5018)";
It would seem too risky to build gcc Apple's way (which will
overwrite /usr/bin/gcc on install ;-), so I built it the gcc way and
installed it at /pkgs/gcc-4.0.0-apple. Java won't build (blah), so I
configured it to build c, c++, and f95 with
#!/bin/tcsh
/bin/rm -rf *; ../configure --prefix=/pkgs/gcc-4.0.0-apple --with-
gmp=/pkgs/gmp-4.1.4 --with-mpfr=/pkgs/gmp-4.1.4 --enable-languages=c,c
++,f95 ; make -j 4 bootstrap >& build.log
If you don't have gmp or mpfr installed you can build it without f95.
Or, you can (a) install the official gcc-4.0.0 or (b) wait until
Apple updates its developer tools.
Brad
More information about the Gambit-list
mailing list