------- Comment #11 from david dot kirkby at onetel dot net 2009-06-28 03:51 ------- (In reply to comment #3) > Note that setting LDFLAGS maybe not what you want (it affects stage1 only > AFAIK), you likely want to set BOOT_LDFLAGS.
FWIW, BOOT_LDFLAGS. that did not solve it either. I think I'll have a go with 'sed' and change /usr/local to somewhere else in the gcc-4.4.0.tar file. Hopefully that will avoid the need for setting LD library path. It would be good if the /usr/local thing could be overridden, but sed might come to my rescuse! ../gcc-4.4.0/configure 'CC=/usr/sfw/bin/gcc' \ --prefix=/usr/local/gcc-4.4.0-Sun-linker-and-assembler-ABI32 \ --without-gnu-as \ --without-gnu-ld \ --with-as=/usr/ccs/bin/as \ --with-ld=/usr/ccs/bin/ld \ --enable-languages=c,c++,fortran \ --with-mpfr=/usr/local/mpfr-2.4.1-gcc-3.4.3-ABI32 \ --with-gmp=/usr/local/gmp-4.3.1-gcc-3.4.3-ABI32 \ --with-libiconv-prefix=/usr/lib/iconv \ BOOT_LDFLAGS='-R /usr/local/mpfr-2.4.1-gcc-3.4.3-ABI32/lib:/usr/local/gmp-4.3.1-gcc-3.4.3-ABI32/lib -L /usr/local/mpfr-2.4.1-gcc-3.4.3-ABI32/lib:/usr/local/gmp-4.3.1-gcc-3.4.3-ABI32/lib' \ LDFLAGS='-R /usr/local/mpfr-2.4.1-gcc-3.4.3-ABI32/lib:/usr/local/gmp-4.3.1-gcc-3.4.3-ABI32/lib -L /usr/local/mpfr-2.4.1-gcc-3.4.3-ABI32/lib:/usr/local/gmp-4.3.1-gcc-3.4.3-ABI32/lib' It later failed with -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.4.0/gcc -I../../gcc-4.4.0/gcc/. -I../../gcc-4.4.0/gcc/../include -I./../intl -I../../gcc-4.4.0/gcc/../libcpp/include -I/usr/local/gmp-4.3.1-gcc-3.4.3-ABI32/include -I/usr/local/mpfr-2.4.1-gcc-3.4.3-ABI32/include -I../../gcc-4.4.0/gcc/../libdecnumber -I../../gcc-4.4.0/gcc/../libdecnumber/dpd -I../libdecnumber \ -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/usr/local/gcc-4.4.0-Sun-linker-and-assembler-ABI32/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/usr/local/gcc-4.4.0-Sun-linker-and-assembler-ABI32/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"4.4.0\" -DDEFAULT_TARGET_MACHINE=\"sparc-sun-solaris2.10\" -DSTANDARD_BINDIR_PREFIX=\"/usr/local/gcc-4.4.0-Sun-linker-and-assembler-ABI32/bin/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\" `test "X${SHLIB_LINK}" = "X" || test "yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` \ -c ../../gcc-4.4.0/gcc/gcc.c -o gcc.o) In file included from ../../gcc-4.4.0/gcc/gcc.c:73: ./multilib.h:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token gmake[3]: *** [gcc.o] Error 1 gmake[3]: Leaving directory `/home/kirkby/gcc-4.4.0-built-with-gcc-3.4.3-ABI32/gcc' gmake[2]: *** [all-stage2-gcc] Error 2 gmake[2]: Leaving directory `/home/kirkby/gcc-4.4.0-built-with-gcc-3.4.3-ABI32' gmake[1]: *** [stage2-bubble] Error 2 gmake[1]: Leaving directory `/home/kirkby/gcc-4.4.0-built-with-gcc-3.4.3-ABI32' gmake: *** [all] Error 2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40572