Bug 22323 - bootstrap fails - ld: unrecognized option '-Wl,-rpath'
Summary: bootstrap fails - ld: unrecognized option '-Wl,-rpath'
Status: RESOLVED DUPLICATE of bug 21206
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.0.0
: P1 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 22424 22426 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-06 13:46 UTC by John Karsner
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host:
Target: 4.0.0
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Karsner 2005-07-06 13:46:44 UTC
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
Comment 1 Andrew Pinski 2005-07-06 14:24:55 UTC
Is LD set in your environment?
Also could show what the command this error message is comming from?
Comment 2 John Karsner 2005-07-07 00:33:53 UTC
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.



Comment 3 Andrew Pinski 2005-07-07 00:48:10 UTC
One more question:
what does the output of:
/usr/local/i686-pc-linux-gnu/bin/ld --version

give?
Comment 4 John Karsner 2005-07-07 00:52:28 UTC
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?

Comment 5 John Karsner 2005-07-11 12:29:00 UTC
(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
Comment 6 Andrew Pinski 2005-07-12 04:11:38 UTC
*** Bug 22424 has been marked as a duplicate of this bug. ***
Comment 7 Andrew Pinski 2005-07-12 04:15:29 UTC
*** Bug 22426 has been marked as a duplicate of this bug. ***
Comment 8 Andrew Pinski 2005-07-12 04:16:31 UTC
What happens if you configure with an absolute path instead of a relative path?
Comment 9 John Karsner 2005-07-12 12:17:09 UTC
../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



Comment 10 Andrew Pinski 2005-07-13 19:44:28 UTC

*** This bug has been marked as a duplicate of 21206 ***