The configure string was:

sh ../gcc-4.6.2/configure --enable-cloog-backend=isl
--program-suffix=4.6.2-g --enable-lto  --enable-werror
--with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local
--with-ppl=/usr/local --enable-cloog-backend=isl --prefix=/usr/local
--enable-static=all --enable-libada
--enable-languages=c,c++,fortran,lto,objc

uname is:

Darwin moon 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug  9 20:54:00
PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64

I was unable to build the boehm garbage collection. There is a patch here:

http://gcc.gnu.org/ml/gcc-patches/2011-04/msg01104.html

which doesn't seem to be applied as of gcc-4.6.2. The other thing is,
there's a peculiarity with Darwin (or so people told me on freenode
#gcc) whereby the build would break because the configure scripts use
-V and -qversion and "that's been gone since 4.6". So after manually
removing instances of -V and -qversion from the configure scripts,
opting not for the boehm garbage collection, it compiled for c, c++,
fortran, lto, and objc. I couldn't get Java to compile.

Seems like the above patch is available, but has not been applied to
the trunk. Seems also that the -V and -qversion flags should probably
be ditched too.

Oh, one last thing, the environment had to be set correctly. I had
mpc, mpfr, and gmp in /usr/local, and the following environment
variables needed to be set for the compile to work:
ABI=64
CONFIG_SHELL=sh (NOT! bash)
ARCH=x86-64
CFLAGS="-m64 ${ARCH}"
DYLD_LIBRARY_PATH=/usr/local/lib
CC=gcc

I fear it's a bit of cargo cultery with the environment variables
(CC=gcc??), but it just seemed to work better that way.

Thanks for all your hard work putting the collection together. I
really appreciate it.

Oh, and if needs be, I have several x32 and x64 macs I can test things on.

--
Alex J Avriette
http://search.cpan.org/~alex/
http://www.linkedin.com/in/avriette  (+1 858 3677293)

Reply via email to