This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: binutils-2.11 ld testsuite problems + PATCH
Alan Modra wrote:
>
> On Sat, 5 May 2001, Matthew Schalit wrote:
>
> > lt-ld-new: cannot find -lc
> > FAIL: bootstrap
>
> Check the SEARCH_DIR entries in your linker scripts. You'll find these
> scripts in $prefix/$target/lib/ldscripts/, where $prefix is the value you
> gave configure via --prefix or the default /usr/local/, and similarly for
> $target.
>
> The .x script for your default target should have a number of SEARCH_DIR
> entries, including /usr/lib. Some reasons for this not happenning:
> - cross-compiled binutils (ie. host != target)
> - LIB_PATH passed to make.
>
> Alan
Alan!
Thanks for the followup. Let's see what we got here...
-----------------------------------------------------------------
$ pwd
/usr/local/i586-sco-sysv5uw7.1.1/lib/ldscripts
$ head elf_i386.x
OUTPUT_FORMAT("elf32-i386", "elf32-i386",
"elf32-i386")
OUTPUT_ARCH(i386)
ENTRY(_start)
SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/i586-sco-sysv5uw7.1.1/lib);
/* Do we need any of these for elf?
__DYNAMIC = 0; */
SECTIONS
{
/* Read-only sections, merged into text segment: */
-----------------------------------------------------------------
The SEARCH_DIR's listed above are the same as the new ones
in <build_dir>/ld/ldscripts/elf_i386.x
I did not cross-compile, my configure command was
./configure --enable-shared
-----------------------------------------------------------------
$ head con.log
Configuring for a i586-sco-sysv5uw7.1.1 host.
Created "Makefile" in /home/matthew/Uber/Dev/binutils-2.11 using "mh-frag" and "mt-frag"
Configuring intl...
creating cache ../config.cache
checking for a BSD compatible install... /usr/local/bin/ginstall -c
checking how to run the C preprocessor... cc -E
checking whether make sets ${MAKE}... yes
checking for gcc... cc
checking whether the C compiler (cc -g ) works... yes
checking whether the C compiler (cc -g ) is a cross-compiler... no
...
------------------------------------------------------------------
Here's some path info:
LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/ccs/lib:/usr/local/BerkeleyDB/lib
LD_RUN_PATH=/usr/lib:/usr/local/lib:/usr/ccs/lib:/usr/local/BerkeleyDB/lib
LIBPATH=/usr/lib:/usr/local/lib:/usr/ccs/lib:/usr/local/BerkeleyDB/lib
I didn't include /lib in those paths because it's only a symlink
to /usr/lib.
That's all the info I can think of that concerns this.
As an aside, from my other post to binutils, I saw
gcc and ld-2.10.1 use these paths (via gcc --verbose)
in the real world when I tried to compile netpbm.
---------------------------------------------------------------------------
...
-L. -L/usr/local/lib/gcc-lib/i586-sco-sysv5uw7.1.1/2.95.3
-L/usr/local/i586-sco-sysv5uw7.1.1/lib -L/usr/ccs/bin
-L/usr/ccs/lib -L/usr/local/lib
...
/usr/local/bin/ld: warning: /usr/lib/libc.so.1, needed by ./libpbm.so, not found
(try using -rpath or -rpath-link)
GNU ld version 2.10.1 (with BFD 2.10.1)
Supported emulations:
elf_i386
------------------------------------------------------------------------------
Thanks,
Matthew