------- Comment #6 from davek at csh dot rit dot edu 2006-01-17 06:20 ------- I've gotten the compile to continue by cross compiling and altering the Makefile between stage 1 and 2 (or wherever it errored).
$ diff -u orig/gcc-4.0.2/gcc/Makefile.in gcc-4.0.2/gcc/Makefile.in --- orig/gcc-4.0.2/gcc/Makefile.in Fri Sep 9 17:05:39 2005 +++ gcc-4.0.2/gcc/Makefile.in Mon Jan 16 19:49:17 2006 @@ -623,7 +623,7 @@ BUILD_CFLAGS= @BUILD_CFLAGS@ -DGENERATOR_FILE # Native linker and preprocessor flags. For x-fragment overrides. -BUILD_LDFLAGS=$(LDFLAGS) +BUILD_LDFLAGS=$(LDFLAGS) -Wl,--dynamic-linker,/usr/glibc2/lib/ld-linux.so.2 -Wl,-rpath,/usr/glibc2/lib BUILD_CPPFLAGS=$(ALL_CPPFLAGS) # Actual name to use when installing a native compiler. @@ -1163,8 +1163,9 @@ # and CC is `gcc'. It is renamed to `gcc' when it is installed. xgcc$(exeext): gcc.o gccspec.o version.o intl.o prefix.o \ version.o $(LIBDEPS) $(EXTRA_GCC_OBJS) - $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o gccspec.o intl.o \ + $(CC) -Wl,--dynamic-linker,/usr/glibc2/lib/ld-linux.so.2 $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o gccspec.o intl.o \ prefix.o version.o $(EXTRA_GCC_OBJS) $(LIBS) +# -Wl,-rpath,/usr/glibc2/lib # cpp is to cpp0 as gcc is to cc1. # The only difference from xgcc is that it's linked with cppspec.o I had to comment out rpath part when it gave linker errors. Then continued until another set of errors and then took out the comment. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25794