------- Comment #4 from jwakely dot gcc at gmail dot com 2007-08-03 23:30 ------- re-confirmed with latest 4.3 snapshot:
tests$ ~/gcc/4.x/bin/g++ -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: /home/jwakely/src/gcc-4.3-20070727/configure --prefix=/home/jwakely/gcc/4.x --enable-languages=c,c++ --with-mtune=opteron --disable-checking --disable-nls --disable-libstdcxx-pch --with-system-zlib --with-__cxa_atexit --disable-bootstrap --with-ld=/opt/binutils/2.16.1-64bit/bin/ld --with-as=/opt/binutils/2.16.1-64bit/bin/as --with-gmp=/home/jwakely/gcc/gmp --with-mpfr=/home/jwakely/gcc/mpfr --enable-version-specific-runtime-libs Thread model: posix gcc version 4.3.0 20070727 (experimental) tests$ tests$ echo 'int main() {}' > x.cc tests$ ~/gcc/4.x/bin/g++ x.cc /opt/binutils/2.16.1-64bit/bin/ld: cannot find -lgcc_s collect2: ld returned 1 exit status libgcc_s.so is here: tests$ find ~/gcc/4.x -name libgcc_s.so /home/jwakely/gcc/4.x/lib/gcc/x86_64-unknown-linux-gnu/lib64/libgcc_s.so /home/jwakely/gcc/4.x/lib/gcc/x86_64-unknown-linux-gnu/lib/libgcc_s.so but linker doesn't look in there: tests$ ~/gcc/4.x/bin/g++ x.cc -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: /home/jwakely/src/gcc-4.3-20070727/configure --prefix=/home/jwakely/gcc/4.x --enable-languages=c,c++ --with-mtune=opteron --disable-checking --disable-nls --disable-libstdcxx-pch --with-system-zlib --with-__cxa_atexit --disable-bootstrap --with-ld=/opt/binutils/2.16.1-64bit/bin/ld --with-as=/opt/binutils/2.16.1-64bit/bin/as --with-gmp=/home/jwakely/gcc/gmp --with-mpfr=/home/jwakely/gcc/mpfr --enable-version-specific-runtime-libs Thread model: posix gcc version 4.3.0 20070727 (experimental) /home/jwakely/gcc/4.x/libexec/gcc/x86_64-unknown-linux-gnu/4.3.0/cc1plus -quiet -v -D_GNU_SOURCE x.cc -quiet -dumpbase x.cc -mtune=generic -auxbase x -version -o /tmp/ccV5Z2oD.s ignoring nonexistent directory "/home/jwakely/gcc/4.x/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../. ./x86_64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /home/jwakely/gcc/4.x/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/include/c++ /home/jwakely/gcc/4.x/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/include/c++ /x86_64-unknown-linux-gnu /home/jwakely/gcc/4.x/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/include/c++ /backward /usr/local/include /home/jwakely/gcc/4.x/include /home/jwakely/gcc/4.x/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/include /home/jwakely/gcc/4.x/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/include-fix ed /usr/include End of search list. GNU C++ version 4.3.0 20070727 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.2.1, GMP version 4.2.1, MPFR version 2.2.1. warning: GMP header version 4.2.1 differs from library version 4.1.2. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 9a001b9c39aab973e1c3102a443037d6 /opt/binutils/2.16.1-64bit/bin/as -V -Qy -o /tmp/cc6Eze17.o /tmp/ccV5Z2oD.s GNU assembler version 2.16.1 (x86_64-unknown-linux-gnu) using BFD version 2.16.1 /home/jwakely/gcc/4.x/libexec/gcc/x86_64-unknown-linux-gnu/4.3.0/collect 2 --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 /usr/lib/../lib64/crt1.o /usr/lib/../lib64/crti.o /home/jwakely/gcc/4.x/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/crtbegin.o -L/home/jwakely/gcc/4.x/lib/gcc/x86_64-unknown-linux-gnu/4.3.0 -L/home/jwakely/gcc/4.x/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../ ../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/home/jwakely/gcc/4.x/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../.. /tmp/cc6Eze17.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /home/jwakely/gcc/4.x/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/crtend.o /usr/lib/../lib64/crtn.o /opt/binutils/2.16.1-64bit/bin/ld: cannot find -lgcc_s collect2: ld returned 1 exit status => --enable-version-specific-runtime-libs is broken ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32415