This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld FAIL: bootstrap

On Mon, Dec 3, 2012 at 11:54 AM, Dennis Clarke <> wrote:
>> # cd binutils-build-dir
>> # find -name Makefile | xargs grep "\-Wl,-rpath"
> we think alike .. I was just doing that :
> sedna $ find . -type f -name Makefile | xargs grep "\-Wl,\-rpath" | cut -f1 -d\: | sort -u
> ./bfd/Makefile
> ./bfd/doc/Makefile
> ./binutils/Makefile
> ./binutils/doc/Makefile
> ./gas/Makefile
> ./gas/doc/Makefile
> ./gprof/Makefile
> ./ld/Makefile
> ./opcodes/Makefile
> sedna $
> sedna $ grep "\-Wl,\-rpath" ./ld/Makefile
> LIBINTL = /usr/local/lib/ /usr/local/lib/ -lc -Wl,-rpath -Wl,/usr/local/lib
> sedna $
> OKay .. so there is the issue.
> Where is this coming from ? Well it looks like a .la file somewhere or a .pc file messing with libtool perhaps.
> sedna $ find /usr/local/lib -type f | xargs grep "\-Wl,\-rpath" | cut -f1 -d\: | sort -u
> /usr/local/lib/
> /usr/local/lib/
> sedna $ find /usr/local/include -type f | xargs grep "\-Wl,\-rpath" | cut -f1 -d\: | sort -u
> /usr/local/include/gmp.h
> sedna $ find /usr/local/share -type f | xargs grep "\-Wl,\-rpath" | cut -f1 -d\: | sort -u
> /usr/local/share/dejagnu/target.exp

That is your problem.  Please remove dejagnu from /usr/local and

[hjl@gnu-27 ~]$ rpm -qi dejagnu
Name        : dejagnu                      Relocations: (not relocatable)
Version     : 1.4.4                             Vendor: Red Hat, Inc.
Release     : 17.el6                        Build Date: Fri 22 Jan
2010 03:43:15 AM PST
Install Date: Wed 01 Sep 2010 09:41:52 AM PDT      Build Host:
Group       : Development/Tools             Source RPM:
Size        : 1537090                          License: GPLv2+
Signature   : RSA/8, Mon 16 Aug 2010 08:50:50 AM PDT, Key ID 199e2f91fd431d51
Packager    : Red Hat, Inc. <>
URL         :
Summary     : A front end for testing other programs
Description :
DejaGnu is an Expect/Tcl based framework for testing other programs.
DejaGnu has several purposes: to make it easy to write tests for any
program; to allow you to write tests which will be portable to any
host or target where a program must be tested; and to standardize the
output format of all tests (making it easier to integrate the testing
into software development).
[hjl@gnu-27 ~]$

> Well I *need* -Wl,-rpath=/usr/local/lib to ensure that the RPATH is set correctly in the output elf objects otherwise I get cross pollutioins from the system libs.

There is no need to set DT_RPATH to /usr/local on RHEL.
checks shared libraries under /usr/local automatically.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]