This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld FAIL: bootstrap
On Mon, Dec 3, 2012 at 11:54 AM, Dennis Clarke <dclarke@blastwave.org> 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/libintl.so /usr/local/lib/libiconv.so -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/tclConfig.sh
> /usr/local/lib/tkConfig.sh
> 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
install
[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:
s390-004.build.bos.redhat.com
Group : Development/Tools Source RPM:
dejagnu-1.4.4-17.el6.src.rpm
Size : 1537090 License: GPLv2+
Signature : RSA/8, Mon 16 Aug 2010 08:50:50 AM PDT, Key ID 199e2f91fd431d51
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://www.gnu.org/software/dejagnu/
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. ld.so
checks shared libraries under /usr/local automatically.
--
H.J.