public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@google.com>
To: "John Z. Bohach" <jzb2@aexorsyst.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: collect2/ld doesn't search all paths dumped by gcc -print-search-dirs
Date: Mon, 23 Feb 2009 20:51:00 -0000	[thread overview]
Message-ID: <m3eixoj2ro.fsf@google.com> (raw)
In-Reply-To: <200902211728.59486.jzb2@aexorsyst.com> (John Z. Bohach's message of "Sat\, 21 Feb 2009 17\:28\:59 -0800")

"John Z. Bohach" <jzb2@aexorsyst.com> writes:

> I'm trying to build a tiny test program using an alternate toolchain 
> built purely from source (LFS ch. 5 method), but collect2 says that ld 
> can't find a lib. that _does_ exist under /usr/lib, but /usr/lib is not 
> even attempted as part of the search, even though /usr/lib _is_ part of 
> the library search path dumped by "gcc -print-search-dirs".  
> Bizarre...what am I misunderstanding?

That certainly seems peculiar and may indicate a bug.  Try running gcc
with the -v option to set the list of -L options which gcc passes to
collect2.  Those options should all be passed on to the linker.  You can
also run gcc with the option -Wl,-debug to see debugging information
from collect2.

Ian

  reply	other threads:[~2009-02-23 20:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-22  1:29 John Z. Bohach
2009-02-23 20:51 ` Ian Lance Taylor [this message]
2009-02-23 22:46   ` John Z. Bohach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3eixoj2ro.fsf@google.com \
    --to=iant@google.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=jzb2@aexorsyst.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).