http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40947
--- Comment #14 from Hin-Tak Leung <htl10 at users dot sourceforge.net> 2011-08-02 23:31:30 UTC --- (In reply to comment #13) > One other possible problem: please avoid relative pathnames to configure and > an object directory that is a subdir of the source tree. Better do (say) > > mkdir /vol/gcc/obj/gcc-4.6.1 > cd /vol/gcc/obj/gcc-4.6.1 > /vol/gcc/src/gcc-4.6.1/configure <options> Tried specifying full path instead of relative path in configure. Still exactly the same problem. With 4.6.1 (source is untar'ed to /home/htl10/tmp-build/gcc-4.4.6): cd /home/htl10/tmp-build/ mkdir gcc-446-obj cd gcc-446-obj /home/htl10/tmp-build/gcc-4.4.6/configure make last part of output: ------------------- libtool: link: /home/htl10/tmp-build/gcc-446-obj/gcc/gcj -B/home/htl10/tmp-build/gcc-446-obj/alphaev68-dec-osf5.1a/libjava/ -B/home/htl10/tmp-build/gcc-446-obj/gcc/ -mieee -g -O2 -o .libs/jv-convert --main=gnu.gcj.convert.Convert -shared-libgcc -L/home/htl10/tmp-build/gcc-446-obj/alphaev68-dec-osf5.1a/libjava/.libs -L/home/htl10/tmp-build/gcc-446-obj/alphaev68-dec-osf5.1a/libjava ./.libs/libgcj.so -lpthread -lrt -Wl,-rpath -Wl,/usr/local/lib /bin/ld: Invalid flag usage: Wl,-rpath, -Wx,-option must appear after -_SYSTYPE_SVR4 /bin/ld: Usage: /bin/ld [options] file [...] collect2: ld returned 1 exit status make[3]: *** [jv-convert] Error 1 make[3]: Leaving directory `/home/htl10/tmp-build/gcc-446-obj/alphaev68-dec-osf5.1a/libjava' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/htl10/tmp-build/gcc-446-obj/alphaev68-dec-osf5.1a/libjava' make[1]: *** [all-target-libjava] Error 2 make[1]: Leaving directory `/home/htl10/tmp-build/gcc-446-obj' make: *** [all] Error 2 bash-2.05a# ------------------------