Re: GCC 4.5.1: cannot compute suffix of object files: cannot compile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 1, 2010 at 18:11, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
> Miguel Cardenas <renito73@xxxxxxxxx> writes:
>
>> checking for suffix of object files... configure: error: in
>> `/tmp/gcc-4.5.1/objdir/i686-pc-linux-gnu/libgcc':
>> configure: error: cannot compute suffix of object files: cannot compile
>> See `config.log' for more details.
>> make[2]: *** [configure-stage1-target-libgcc] Error 1

Miguel, after a similar set of problems in the last few days, I
recommend taking the steps suggested by Andrew Haley:

Start with a freshly unzipped source directory:

  $ tar -xvjf gcc-4.5.1.tab.bz2

and download this file into it:

  http://gcc.gnu.org/svn/gcc/trunk/contrib/download_prerequisites

Then:

  $ cd gcc-4.5.1
  $ sh ./download_prerequisites

That will get the exact versions of gmp, mpfr, and mpc that are used
by the developers and you will have the best chance of getting all
their configurations correct.

Then make a build directory OUTSIDE the source tree.

  $ cd ..                 # it is STRONGLY recommended NOT to build in
the source tree
  $ mkdir objdir
  $ cd objdir
  $ ../gcc-4.5.1/configure ......
  make.....

I think you will have better luck.

HTH.

Regards,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux