public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: "Sinkler, Wharton" <Wharton.Sinkler@uop.com>
Cc: Ian Lance Taylor <iant@google.com>, gcc-help@gcc.gnu.org
Subject: Re: gcc-4.6.2 build problem related to xgcc not liking '-V' option on i686-pc-linux-gnu
Date: Mon, 07 Nov 2011 17:25:00 -0000	[thread overview]
Message-ID: <CAH6eHdSkvLm3tcqjeUzn07Gp9TMv7DmX50z5997MdOjjkeSdrQ@mail.gmail.com> (raw)
In-Reply-To: <CAH6eHdQGPy+3X+zyYp7dWVQ0cpeMqTqxuhfWPkwkOaX2QnZtkA@mail.gmail.com>

On 7 November 2011 17:21, Jonathan Wakely wrote:
> On 7 November 2011 17:08, Sinkler, Wharton  wrote:
>> Thanks to all.  I got it built successfully after setting the LD_LIBRARY_PATH environment variable in the terminal:
>>
>> export LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}
>>
>> If you are interested, I am hereby volunteering to contribute a short writeup of the successful installation process on my system.  I think this could be helpful to people wanting to install gcc, but not as versed in Unix and working with compilers and linkers.
>>
>> One thing which I would recommend is to put links on the installation pages (http://gcc.gnu.org/install/) to some of FAQ and tutorial pages.
>>
>> Let me know if you would entertain my editing of the html files and emailing these back your way.
>
> Feel free to edit the wiki, but I'm curious what could be explained in
> simpler terms than http://advogato.org/person/redi/diary/253.html
>
> (less patronising terms, maybe, but what about those instructions is not clear?)
>

N.B. having to set LD_LIBRARY_PATH is ***not*** a good solution, and I
hope any writeup which suggests doing that will be rejected. The
simplest solution is to install GCC from pre-built packages from
someone who knows what they're doing, the next best is to link to gmp,
mpfr and mpc statically so LD_LIBRARY_PATH is not needed.

The worst, least reliable method is to require LD_LIBRARY_PATH to be
set when running the compiler.

Unfortunately everyone who tries to build the compiler thinks that
installing gmp, mpfr and mpc in /some/path/to/libs is a good idea,
then gets stuck, then discovers that LD_LIBRARY_PATH unsticks them,
and thinks that's a good solution.

  reply	other threads:[~2011-11-07 17:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-04 18:25 Sinkler, Wharton
2011-11-04 23:41 ` Jonathan Wakely
2011-11-04 23:44 ` Ian Lance Taylor
2011-11-06 21:39   ` Sinkler, Wharton
2011-11-06 23:11     ` Jonathan Wakely
2011-11-07 17:10       ` Sinkler, Wharton
2011-11-07 17:21         ` Jonathan Wakely
2011-11-07 17:25           ` Jonathan Wakely [this message]
2011-11-07 17:30             ` Andrew Haley
2011-11-07 17:40               ` Jonathan Wakely
2011-11-07 20:28                 ` Sinkler, Wharton
2011-11-07 20:48                   ` Jonathan Wakely

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=CAH6eHdSkvLm3tcqjeUzn07Gp9TMv7DmX50z5997MdOjjkeSdrQ@mail.gmail.com \
    --to=jwakely.gcc@gmail.com \
    --cc=Wharton.Sinkler@uop.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=iant@google.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).