I hacked the main configure script to include the sparcv9 directory with a -B directive. An example of that would be: CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/sparcv9/ -B$$r/$(HOST_SUBDIR)/gcc/' However, the compile still blows-up: gmake[5]: Entering directory `/usr/soft/that/gcc-4.8.1/src/default/sparc_sun_solaris2.10/sparc-sun-solaris2.10/libgomp' /usr/bin/bash ./libtool --tag=CC --mode=compile /usr/soft/that/gcc-4.8.1/src/default/sparc_sun_solaris2.10/./gcc/xgcc -B/usr/soft/that/gcc-4.8.1/src/default/sparc_sun_solaris2.10/./gcc/sparcv9/ -B/usr/soft/that/gcc-4.8.1/src/default/sparc_sun_solaris2.10/./gcc/ -B/usr/local/sparc-sun-solaris2.10/bin/ -B/usr/local/sparc-sun-solaris2.10/lib/ -i system /usr/local/sparc-sun-solaris2.10/include -isystem /usr/local/sparc-sun-solaris2.10/sys-include -DHAVE_CONFIG_H -I. -I../../../../orig/libgomp -I../../../../orig/l ibgomp/config/posix -I../../../../orig/libgomp -Wall -Werror -Wc,-pthread -g -O2 -m64 -MT alloc.lo -MD -MP -MF .deps/alloc.Tpo -c -o alloc.lo ../../../../orig/libgomp/alloc.c libtool: compile: /usr/soft/that/gcc-4.8.1/src/default/sparc_sun_solaris2.10/./gcc/xgcc -B/usr/soft/that/gcc-4.8.1/src/default/sparc_sun_solaris2.10/./gcc/sparcv9/ -B/usr/soft/that/gcc-4.8.1/src/default/sparc_sun_solaris2.10/./gcc/ -B/usr/local/sparc-sun-solaris2.10/bin/ -B/usr/local/sparc-sun-solaris2.10/lib/ -isystem /usr/local/sparc-sun-solaris2.10/include -isystem /usr/local/sparc-sun-solaris2.10/sys-include -DHAVE_CONFIG_H -I. -I../../../../orig/libgomp -I../../../../orig/libgomp/config/posix -I../../../../orig/libgomp -Wall -pthread -Werror -g -O2 -m64 -MT alloc.lo -MD -MP -MF .deps/alloc.Tpo -c ../../../../orig/libgomp/alloc.c -fPIC -DPIC -o .libs/alloc.o ld.so.1: xgcc: fatal: libgcc_s.so.1: version 'GCC_4.2.0' not found (required by file /usr/soft/that/gcc-4.8.1/src/default/sparc_sun_solaris2.10/sparc-sun-solaris2.10/libstdc ++-v3/src/.libs/libstdc++.so.6) ld.so.1: xgcc: fatal: libgcc_s.so.1: open failed: No such file or directory ./libtool: line 1156: 16930 Killed /usr/soft/that/gcc-4.8.1/src/default/sparc_sun_solaris2.10/./gcc/xgcc -B/usr/soft/that/gcc-4.8.1/src/default/sparc_sun_solaris2.10/./gcc/sparcv9/ -B/usr/soft/that/gcc-4.8.1/src/default/sparc_sun_solaris2.10/./gcc/ -B/usr/local/sparc-sun-solaris2.10/bin/ -B/usr/local/sparc-sun-solaris2.10/lib/ -isystem /usr/local/sparc-sun-solaris2.10/include -isystem /usr/local/sparc-sun-solaris2.10/sys-include -DHAVE_CONFIG_H -I. -I../../../../orig/libgomp -I../../../../orig/libgomp/config/posix -I../../../../orig/libgomp -Wall -pthread -Werror -g -O2 -m64 -MT alloc.lo -MD -MP -MF .deps/alloc.Tpo -c ../../../../orig/libgomp/alloc.c -fPIC -DPIC -o . libs/alloc.o gmake[5]: *** [alloc.lo] Error 1 gmake[5]: Leaving directory `/usr/soft/that/gcc-4.8.1/src/default/sparc_sun_solaris2.10/sparc-sun-solaris2.10/libgomp' gmake[4]: *** [all-recursive] Error 1 gmake[4]: Leaving directory `/usr/soft/that/gcc-4.8.1/src/default/sparc_sun_solaris2.10/sparc-sun-solaris2.10/libgomp' gmake[3]: *** [all] Error 2 gmake[3]: Leaving directory `/usr/soft/that/gcc-4.8.1/src/default/sparc_sun_solaris2.10/sparc-sun-solaris2.10/libgomp' gmake[2]: *** [all-stage1-target-libgomp] Error 2 gmake[2]: Leaving directory `/usr/soft/that/gcc-4.8.1/src/default/sparc_sun_solaris2.10' gmake[1]: *** [stage1-bubble] Error 2 gmake[1]: Leaving directory `/usr/soft/that/gcc-4.8.1/src/default/sparc_sun_solaris2.10' gmake: *** [bootstrap-lean] Error 2 and the library is there, and is 64-bit: $ file gcc/sparcv9/libgcc_s.so.1 gcc/sparcv9/libgcc_s.so.1: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped $ ldd gcc/sparcv9/libgcc_s.so.1 warning: ldd: gcc/sparcv9/libgcc_s.so.1: is not executable libc.so.1 => /lib/64/libc.so.1 libm.so.2 => /lib/64/libm.so.2 /lib/sparcv9/../libm/sparcv9/libm_hwcap1.so.2 /platform/sun4v/lib/sparcv9/libc_psr.so.1 On Wed, Jun 26, 2013 at 12:09 PM, Amos <a.goo0h@xxxxxxxxx> wrote: > I'm trying to update an old installation of gcc. It gets pretty far, > but then dies. Configuration: > > + env > TMPDIR=/tmp > ABI=64 > INSTALL=/usr/ucb/install > CONFIG_SHELL=/usr/bin/bash > CC=gcc -m64 > CXX=g++ -m64 > CPPFLAGS=-m64 > CXXFLAGS=-m64 > CFLAGS=-m64 > CCFLAGS=-m64 > > $ configure --enable-threads=posix \ > --enable-shared \ > --enable-languages=c,c++ \ > --with-ld=/usr/ccs/bin/ld \ > --with-as=/usr/ccs/bin/as \ > --with-mpfr-lib=/usr/local/lib/64 \ > --with-gmp-lib=/usr/local/lib/64 \ > --libdir=/usr/local/lib/64 > > (I run all this from a script, so the "env" above shows the things > that are defined in the environment by this script before doing the > configure/make.) >