Hello, (please use reply all as I am not subscribed to the list) The big picture: I'm installing gcc 4.1.2 (with only C and C++ frontends) on an NFS mount and trying to setup a default specs file so that a -rpath gets added at link time so that C++ applications can be run without changing the LD_LIBRARY_PATH so that they find libstdc++.so. I've just downloaded GCC 4.1.2 (gcc-4.1.2.tar.gz, gcc-core-4.1.2.tar.gz, gcc-g++-4.1.2.tar.gz and gcc-testsuite-4.1.2.tar.gz, md5 sums OK) and compiled it on NetBSD (uname -a = NetBSD netbsd-2 3.0_BETA NetBSD 3.0_BETA (WITHOUT-CRYPT) #0: Tue Oct 25 01:38:54 CEST 2005 root@dump-test:/usr/src/sys/arch/i386/compile/WITHOUT-CRYPT i386 NetBSD) with gcc 4.1.1. Here are the steps I used to build GCC: $ wget the tarballs $ extract them all $ mkdir gcc-4.1.2/build $ cd gcc-4.1.2/build $ `pwd`/../configure --prefix=`pwd`/_inst $ gmake all $ gmake check $ gmake install Note that I had to call configure using an absolute path otherwise GCC wouldn't compile (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20737) [BTW, I compiled GCC 4.1.1 without running into this problem and I don't know why this bug has been marked as invalid] The gmake check failed (probably because I don't have tcl/expect installed) but fixinclude tests also failed (which does not seem to be normal anyway? see the log @ http://www.tsunanet.net/~tsuna/gcc-4.1.2-chk.log, notice the sed: 1: "/define[ ]\+PTHREAD_MU ...": expected context address) but I could compile and make check boost 1.33.1 with my freshly compiled GCC (so that somehow, I know that g++ works). I am trying to add a specs file so that GCC uses -rpath at link time (as described in http://gcc.gnu.org/faq.html#rpath) because this GCC will be installed in a non standard path on an NFS mount and it's really annoying to deal with the LD_LIBRARY_PATH. Now, no matter what I put in the specs file, either GCC rejects it or segfaults: $ ./_inst/bin/gcc -v Using built-in specs. Target: i386-unknown-netbsdelf3.0. Configured with: /goinfre/tsu/gcc-4.1.2/build/../configure --prefix=/goinfre/tsu/gcc-4.1.2/build/_inst Thread model: posix gcc version 4.1.2 $ touch _inst/lib/gcc/i386-unknown-netbsdelf3.0./4.1.2/specs $ ./_inst/bin/gcc -v Reading specs from /usr/local/goinfre/tsu/gcc-4.1.2/build/_inst/bin/../lib/gcc/i386-unknown-netbsdelf3.0./4.1.2/specs gcc: unrecognized option '-v' Target: i386-unknown-netbsdelf3.0. Configured with: /goinfre/tsu/gcc-4.1.2/build/../configure --prefix=/goinfre/tsu/gcc-4.1.2/build/_inst Thread model: posix gcc version 4.1.2 Notice the strange "gcc: unrecognized option '-v'" $ echo '*lib: -rpath /goinfre/tsu/gcc-4.1.2/build/_inst/lib' >_inst/lib/gcc/i386-unknown-netbsdelf3.0./4.1.2/specs $ ./_inst/bin/gcc -v Reading specs from /usr/local/goinfre/tsu/gcc-4.1.2/build/_inst/bin/../lib/gcc/i386-unknown-netbsdelf3.0./4.1.2/specs zsh: segmentation fault ./_inst/bin/gcc -v $ gdb ./_inst/bin/gcc GNU gdb 6.6 [...] (gdb) r -v Starting program: /usr/local/goinfre/tsu/gcc-4.1.2/build/_inst/bin/gcc -v Reading specs from /usr/local/goinfre/tsu/gcc-4.1.2/build/_inst/bin/../lib/gcc/i386-unknown-netbsdelf3.0./4.1.2/specs Program received signal SIGSEGV, Segmentation fault. 0x08052a35 in main (argc=2, argv=0xbfbfe8c4) at /goinfre/tsu/gcc-4.1.2/build/../gcc/gcc.c:6839 6839 validate_switches_from_spec (*spec->ptr_spec); Whatever I put in the specs file, I get either a segmentation fault or a "gcc: specs file malformed after X characters" Any help would be appreciated. -- SIGOURE Benoit aka Tsuna _____ /EPITA\ Promo 2008, LRDE