I am building gcc4.0.2 on my Linux box. Here is the errors I got, which
seems to be something related to linker and c++ library (but note that
executable gcc, g++ have already been produced.)
mygcc>srcdir/configure --prefix=/home/mygcc
mygcc>make
....
make[3]: Entering directory `/home/mygcc/i686-pc-linux-gnu/libstdc++-v3/src'
/bin/sh ../libtool --tag CXX --mode=link /home/mygcc/gcc/xgcc -shared-libgcc
-B/home/mygcc/gcc/ -nostdinc++
-L/home/mygcc/i686-pc-linux-gnu/libstdc++-v3/src
-L/home/mygcc/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/mygcc/i686-pc-linux-gnu/bin/ -B/home/mygcc/i686-pc-linux-gnu/lib/
-isystem /home/mygcc/i686-pc-linux-gnu/include -isystem
/home/mygcc/i686-pc-linux-gnu/sys-include -Wl,-O1 -fno-implicit-templates
-Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -o libstdc++.la -rpath /home/mygcc/lib
-version-info 6:6:0 -Wl,--version-script=libstdc++-symbol.ver -lm
bitmap_allocator.lo pool_allocator.lo mt_allocator.lo codecvt.lo
compatibility.lo complex_io.lo ctype.lo debug.lo debug_list.lo
functexcept.lo globals_locale.lo globals_io.lo ios.lo ios_failure.lo
ios_init.lo ios_locale.lo limits.lo list.lo locale.lo locale_init.lo
locale_facets.lo localename.lo stdexcept.lo strstream.lo tree.lo
allocator-inst.lo concept-inst.lo fstream-inst.lo ext-inst.lo io-inst.lo
istream-inst.lo istream.lo locale-inst.lo locale-misc-inst.lo misc-inst.lo
ostream-inst.lo sstream-inst.lo streambuf-inst.lo streambuf.lo
string-inst.lo valarray-inst.lo wlocale-inst.lo wstring-inst.lo atomicity.lo
codecvt_members.lo collate_members.lo ctype_members.lo messages_members.lo
monetary_members.lo numeric_members.lo time_members.lo basic_file.lo
c++locale.lo ../libmath/libmath.la ../libsupc++/libsupc++convenience.la -lm
/home/mygcc/gcc/xgcc -shared-libgcc -B/home/mygcc/gcc/ -nostdinc++
-L/home/mygcc/i686-pc-linux-gnu/libstdc++-v3/src
-L/home/mygcc/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/mygcc/i686-pc-linux-gnu/bin/ -B/home/mygcc/i686-pc-linux-gnu/lib/
-isystem /home/mygcc/i686-pc-linux-gnu/include -isystem
/home/mygcc/i686-pc-linux-gnu/sys-include -shared -nostdlib /usr/lib/crti.o
/home/mygcc/gcc/crtbeginS.o .libs/bitmap_allocator.o .libs/pool_allocator.o
.libs/mt_allocator.o .libs/codecvt.o .libs/compatibility.o
.libs/complex_io.o .libs/ctype.o .libs/debug.o .libs/debug_list.o
.libs/functexcept.o .libs/globals_locale.o .libs/globals_io.o .libs/ios.o
.libs/ios_failure.o .libs/ios_init.o .libs/ios_locale.o .libs/limits.o
.libs/list.o .libs/locale.o .libs/locale_init.o .libs/locale_facets.o
.libs/localename.o .libs/stdexcept.o .libs/strstream.o .libs/tree.o
.libs/allocator-inst.o .libs/concept-inst.o .libs/fstream-inst.o
.libs/ext-inst.o .libs/io-inst.o .libs/istream-inst.o .libs/istream.o
.libs/locale-inst.o .libs/locale-misc-inst.o .libs/misc-inst.o
.libs/ostream-inst.o .libs/sstream-inst.o .libs/streambuf-inst.o
.libs/streambuf.o .libs/string-inst.o .libs/valarray-inst.o
.libs/wlocale-inst.o .libs/wstring-inst.o .libs/atomicity.o
.libs/codecvt_members.o .libs/collate_members.o .libs/ctype_members.o
.libs/messages_members.o .libs/monetary_members.o .libs/numeric_members.o
.libs/time_members.o .libs/basic_file.o .libs/c++locale.o
-Wl,--whole-archive ../libmath/.libs/libmath.a
../libsupc++/.libs/libsupc++convenience.a -Wl,--no-whole-archive
-L/home/mygcc/i686-pc-linux-gnu/libstdc++-v3/src
-L/home/mygcc/i686-pc-linux-gnu/libstdc++-v3/src/.libs -lm
../libmath/.libs/libmath.a -lm ../libsupc++/.libs/libsupc++convenience.a -lm
-L/home/mygcc/gcc -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s
/home/mygcc/gcc/crtendS.o /usr/lib/crtn.o -Wl,-O1
-Wl,--version-script=libstdc++-symbol.ver -Wl,-soname -Wl,libstdc++.so.6 -o
.libs/libstdc++.so.6.0.6
/usr/bin/ld: BFD 2.14.90.0.4 20030523 internal error, aborting at
../../bfd/elf32-i386.c line 2377 in elf_i386_relocate_section
/usr/bin/ld: Please report this bug.
collect2: ld returned 1 exit status
make[3]: *** [libstdc++.la] Error 1
make[3]: Leaving directory `/home/mygcc/i686-pc-linux-gnu/libstdc++-v3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mygcc/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/mygcc/i686-pc-linux-gnu/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/