make bootstrap fails with the following: /usr/local/i686-pc-linux-gnu/bin/ld: unrecognized option '-Wl,-rpath' /usr/local/i686-pc-linux-gnu/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status make[3]: *** [jv-convert] Error 1 make[3]: Leaving directory `/usr/local/src/gcc/gcc4/i686-pc-linux-gnu/libjava' configured with the following: ../gcc-4.0.0/configure same commands build 3.4.4 without issues. I have seen a couple of threads on this issue on a variety of websites and nobody seems to have resolved it as yet. additional system configuration information: binutils 2.16.1 Redhat AS 4 2.6.9-11.ELsmp
Is LD set in your environment? Also could show what the command this error message is comming from?
Subject: RE: bootstrap fails - ld: unrecognized option '-Wl,-rpath' LD is not set in my environment make[3]: Entering directory `/usr/local/src/gcc/gcc4/i686-pc-linux-gnu/libjava' /bin/sh ./libtool --tag=GCJ --mode=link /usr/local/src/gcc/gcc4/gcc/gcj -B/usr/local/src/gcc/gcc4/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -L/usr/local/src/gcc/gcc4/i686-pc-linux-gnu/libjava -ffloat-store -fno-omit-frame-pointer -g -O2 -o jv-convert --main=gnu.gcj.convert.Convert -rpath /usr/local/lib -shared-libgcc -L/usr/local/src/gcc/gcc4/i686-pc-linux-gnu/libjava/.libs libgcj.la /usr/local/src/gcc/gcc4/gcc/gcj -B/usr/local/src/gcc/gcc4/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -ffloat-store -fno-omit-frame-pointer -g -O2 -o .libs/jv-convert --main=gnu.gcj.convert.Convert -shared-libgcc -L/usr/local/src/gcc/gcc4/i686-pc-linux-gnu/libjava -L/usr/local/src/gcc/gcc4/i686-pc-linux-gnu/libjava/.libs ./.libs/libgcj.so -L/usr/local/src/gcc/gcc4/i686-pc-linux-gnu/libstdc++-v3/src -L/usr/local/src/gcc/gcc4/i686-pc-linux-gnu/libstdc++-v3/src/.libs -lpthread -ldl -L/usr/local/src/gcc/gcc4/gcc -L/usr/local/lib -lgcc_s -lc -lgcc_s -Wl,--rpath -Wl,/usr/local/lib /usr/local/i686-pc-linux-gnu/bin/ld: unrecognized option '-Wl,-rpath' /usr/local/i686-pc-linux-gnu/bin/ld: use the --help option for usage informationcollect2: ld returned 1 exit status -----Original Message----- From: pinskia at gcc dot gnu dot org [mailto:gcc-bugzilla@gcc.gnu.org] Sent: Wednesday, July 06, 2005 7:25 AM To: john@karsner.net Subject: [Bug bootstrap/22323] bootstrap fails - ld: unrecognized option '-Wl,-rpath' ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-06 14:24 ------- Is LD set in your environment? Also could show what the command this error message is comming from? -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22323 ------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter.
One more question: what does the output of: /usr/local/i686-pc-linux-gnu/bin/ld --version give?
Subject: RE: bootstrap fails - ld: unrecognized option '-Wl,-rpath' [root@host gcc4]# /usr/local/bin/i686-pc-linux-gnu/bin/ld --version GNU ld version 2.16.1 Copyright 2005 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. -----Original Message----- From: pinskia at gcc dot gnu dot org [mailto:gcc-bugzilla@gcc.gnu.org] Sent: Wednesday, July 06, 2005 5:48 PM To: john@karsner.net Subject: [Bug bootstrap/22323] bootstrap fails - ld: unrecognized option '-Wl,-rpath' ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-07 00:48 ------- One more question: what does the output of: /usr/local/i686-pc-linux-gnu/bin/ld --version give?
(In reply to comment #3) > One more question: > what does the output of: > /usr/local/i686-pc-linux-gnu/bin/ld --version > give? I notived this was still in a waiting state. Is there anything else you require?? -John
*** Bug 22424 has been marked as a duplicate of this bug. ***
*** Bug 22426 has been marked as a duplicate of this bug. ***
What happens if you configure with an absolute path instead of a relative path?
../gcc-4.0.0/configure --with-gnu-ld --with-ld=/usr/local/i686-pc-linux- gnu/bin/ld build failed results as follows: creating libgij.la (cd .libs && rm -f libgij.la && ln -s ../libgij.la libgij.la) /bin/sh ./libtool --tag=GCJ --mode=link /usr/local/src/gcc/gcc4/gcc/gcj - B/usr/local/src/gcc/gcc4/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux- gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -L/us r/local/src/gcc/gcc4/i686-pc-linux-gnu/libjava -ffloat-store -fno-omit-frame- pointer -g -O2 -o jv-convert --main=gnu.gcj.convert.Convert -rpath /usr/local/lib -shared-libgcc -L/usr/local/src/gcc/gcc4/i686-pc-linux- gnu/libjava/.libs libgcj.la /usr/local/src/gcc/gcc4/gcc/gcj -B/usr/local/src/gcc/gcc4/gcc/ - B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -is ystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux- gnu/sys-include -ffloat-store -fno-omit-frame-pointer -g -O2 -o .libs/jv-convert --main=gnu.gcj.convert.Convert -shared-libgcc - L/usr/local/src/gcc/gcc4/i686-pc-linux-gnu/libjava -L/usr/local/src/gc c/gcc4/i686-pc-linux-gnu/libjava/.libs ./.libs/libgcj.so - L/usr/local/src/gcc/gcc4/i686-pc-linux-gnu/libstdc++-v3/src - L/usr/local/src/gcc /gcc4/i686-pc-linux-gnu/libstdc++-v3/src/.libs -lpthread -ldl - L/usr/local/src/gcc/gcc4/gcc -L/usr/local/i686-pc-linux-gnu/bin -L/usr/loca l/i686-pc-linux-gnu/lib -L/usr/local/lib/../i686-pc-linux-gnu/lib - L/usr/local/lib -lgcc_s -lc -lgcc_s -Wl,--rpath -Wl,/usr/local/lib /usr/local/i686-pc-linux-gnu/bin/ld: unrecognized option '-Wl,-rpath' /usr/local/i686-pc-linux-gnu/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status make[3]: *** [jv-convert] Error 1 make[3]: Leaving directory `/usr/local/src/gcc/gcc4/i686-pc-linux-gnu/libjava' make[2]: *** [all-recursive] Error 1 rm gnu/gcj/tools/gcj_dbtool/Main.class make[2]: Leaving directory `/usr/local/src/gcc/gcc4/i686-pc-linux-gnu/libjava' make[1]: *** [all-target-libjava] Error 2 make[1]: Leaving directory `/usr/local/src/gcc/gcc4' make: *** [bootstrap] Error 2
*** This bug has been marked as a duplicate of 21206 ***