From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Syed Bilal Mehdi <bilal.mehdi87@gmail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Cannot compute suffix of object file - while building gcc 4.6.0
Date: Mon, 06 Jun 2011 20:47:00 -0000 [thread overview]
Message-ID: <BANLkTimd2N98+JYQQVjJ=wJFq-G9pPMTYg@mail.gmail.com> (raw)
In-Reply-To: <BANLkTimVvpRGVv-HOTkrgscr+veDzMzqUw@mail.gmail.com>
On 6 June 2011 20:51, Jonathan Wakely wrote:
> On 6 June 2011 20:33, Syed Bilal Mehdi <bilal.mehdi87@gmail.com> wrote:
>>
>> I was trying to build gcc 4.6. Configure goes fine with the following
>> command:
>>
>> ./configure prefix=/scratch/local/Bilal/gcc/
>> --with-gmp=/scratch/local/Bilal/gmp --with-mpfr=/scratch/local/Bilal/mpfr
>> --with-mpc=/scratch/local/Bilal/mpc
>
> Don't do that
> http://gcc.gnu.org/wiki/FAQ#configure
>
>> but make fails with the following error:
>>
>> checking for suffix of object files... configure: error: in
>> `/scratch/local/Bilal/gccSource/i686-pc-linux-gnu/libgcc':
>> configure: error: cannot compute suffix of object files: cannot compile
>> See `config.log' for more details.
>
> http://gcc.gnu.org/wiki/FAQ#configure_suffix
>
>> /scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/cc1: error while
>> loading shared libraries: libmpc.so.2: cannot open shared object file: No
>> such file or directory
>
> This is the problem, because you didn't read the documentation for
> --with-gmp and --with-mpc
>
> See http://advogato.org/person/redi/diary/240.html
>
Or to make your life even easier, just install libgmp etc. from your
Linux distribution's package manager instead of installing them
yourself.
next prev parent reply other threads:[~2011-06-06 19:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-06 19:53 Syed Bilal Mehdi
2011-06-06 20:05 ` Jonathan Wakely
2011-06-06 20:47 ` Jonathan Wakely [this message]
2011-06-07 10:06 ` Syed Bilal Mehdi
2011-06-06 21:03 ` Ian Lance Taylor
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='BANLkTimd2N98+JYQQVjJ=wJFq-G9pPMTYg@mail.gmail.com' \
--to=jwakely.gcc@gmail.com \
--cc=bilal.mehdi87@gmail.com \
--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).