public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Bill Cunningham <billcun@suddenlink.net>
Cc: gcc-help@gcc.gnu.org
Subject: Re: gcc-4.6.0 breaks
Date: Thu, 02 Jun 2011 11:32:00 -0000	[thread overview]
Message-ID: <BANLkTi=fuDx4OrVcPtmFMyKSjvOFs6=miA@mail.gmail.com> (raw)
In-Reply-To: <000901cc2117$459d6890$a9d3daad@YOUREDC1953E71>

On 2 June 2011 12:21, Bill Cunningham wrote:
> Jonathan Wakely wrote:
>
>>> No. Although I didn't manually use the switches with gcc to find gmp
>>> mpc or mpfc. The configure script seemed to me atleast to be able to
>>> find those libraries I put in /usr/local. No when compiling mpc I
>>> believe it was it needed to know where gmp was. The script needed
>>> help there. gmp mpc and mpfc were the only things gcc to my
>>> knowledge needed to compile and run.
>>
>> There's a difference between configure being able to find the
>> libraries to link an executable and the dynamic linker being able to
>> find those libraris to *run* an executable.
>>
>> If /usr/local/lib is not in your ldconfig cache then it will not find
>> libgmp.so etc. so you will need to reconfigure ldconfig, or set
>> LD_LIBRARY_PATH.
>>
>> Of course since you don't know what the actual error was this is all
>> just wild speculation.  You need to know what the error was and if it
>> told you to look in config.log, which would have more information.
>>
>> Try looking in the build directory for $target/libgcc/config.log which
>> I suspect will show that ld.so couldn't find one of libgmp.so,
>> libmpfr.so or libmpc.so
>
>   Isn't the dynamic linker, ld.so and ld-linux.so2 the same thing?

Yes.

But ld is not the same thing as ld.so and my point is that ld might
have been able to find the libraries, but ld.so could not.

But this still seems like a waste of time until you know what the
actual error was.  I still suggest looking in
$target/libgcc/config.log to see if it's in there.

  reply	other threads:[~2011-06-02 11:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-02  2:16 Dennis Clarke
2011-06-02  2:25 ` Bill Cunningham
2011-06-02  8:12   ` Jonathan Wakely
     [not found]     ` <002701cc2103$ef433780$a9d3daad@YOUREDC1953E71>
     [not found]       ` <BANLkTinaXqk2ts7q8n3-Uoa=z0B2-xwR6Q@mail.gmail.com>
2011-06-02 11:22         ` Bill Cunningham
2011-06-02 11:32           ` Jonathan Wakely [this message]
2011-06-02 12:17             ` Bill Cunningham
2011-06-02 14:11               ` Jonathan Wakely
2011-06-02 14:21                 ` Marc Glisse
2011-06-02 15:06                   ` Jonathan Wakely
2011-06-02 19:41                 ` Bill Cunningham
2011-06-02 18:28 ` kevin diggs
  -- strict thread matches above, loose matches on Subject: below --
2011-06-02  2:29 Dennis Clarke
2011-06-02  2:47 ` Bill Cunningham
2011-06-02  3:11   ` Bryan Hundven
2011-06-02  4:59     ` Miles Bader
2011-06-02  8:31       ` Bryan Hundven
2011-06-02  2:11 Bill Cunningham

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='BANLkTi=fuDx4OrVcPtmFMyKSjvOFs6=miA@mail.gmail.com' \
    --to=jwakely.gcc@gmail.com \
    --cc=billcun@suddenlink.net \
    --cc=gcc-help@gcc.gnu.org \
    /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).