public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: David Kirkby <david.kirkby@onetel.net>
To: gcc-help@gcc.gnu.org
Subject: Re: How can I avoid the dreaded "cannot compute suffix of object  	files"?
Date: Sun, 14 Feb 2010 12:07:00 -0000	[thread overview]
Message-ID: <286f7bad1002140335o3e521750vcbe61f5a808a6f32@mail.gmail.com> (raw)
In-Reply-To: <4B745148.8080401@redhat.com>

On 11 February 2010 18:49, Andrew Haley <aph@redhat.com> wrote:

> LD_OPTIONS=-R/usr/local/gcc-4.3.4/lib -L/usr/local/gcc-4.3.4/lib
>
> is wrong, BTW.  You want the -R arg to point to your mpfr's lib as well.
>
> (This is the -rpath I talked about.  We tend to avoid it like the plague,
> as it means you can't move libraries.)
>
> Andrew.

I'd specifically put mpir and mpfr libraries in the same place I
intended put gcc, so that was not the issue. The problem was I'd put
gcc-4.3.4 in the LD_OPTIONS, when it should have been gcc-4.4.3 - I'd
transposed the last two digits.

To my logic, LD_LIBRARY_PATH should be used when one moves binaries.
That is one of its uses. For other reasons tasks is is a disaster. For
example, it can't be used if creating binaries with the setuid or
setgid bit set. (Well, it can be used, but it will be ignored!)

See the link below "Why LD_LIBRARY_PATH is bad" by David Barr.

http://xahlee.org/UnixResource_dir/_/ldpath.html


Dave

  parent reply	other threads:[~2010-02-14 11:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-11 12:05 Dr. David Kirkby
2010-02-11 13:40 ` Andrew Haley
     [not found]   ` <4B743F3F.2030805@onetel.net>
     [not found]     ` <4B744080.2090607@redhat.com>
     [not found]       ` <4B744459.3050707@onetel.net>
     [not found]         ` <4B7446A4.6020306@redhat.com>
     [not found]           ` <4B744DE4.3090504@onetel.net>
     [not found]             ` <4B7450A1.5060705@redhat.com>
     [not found]               ` <4B745148.8080401@redhat.com>
2010-02-14 12:07                 ` David Kirkby [this message]
2010-02-14 12:46                   ` Andrew Haley
2010-02-14 16:08                     ` Dr. David Kirkby
2010-02-14 20:27                       ` Andrew Haley
2010-02-11 17:41 ` Dr. David Kirkby
2010-02-11 14:55 Dennis Clarke
2010-02-11 18:48 ` Dr. David Kirkby
2010-02-11 22:53   ` Dr. David Kirkby
2010-02-12 14:34     ` Dr. David Kirkby
2010-02-12 16:26       ` Andrew Haley

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=286f7bad1002140335o3e521750vcbe61f5a808a6f32@mail.gmail.com \
    --to=david.kirkby@onetel.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).