public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/44714]  New: libgcc configure: error: cannot compute suffix of object files
@ 2010-06-29 14:26 jbare7 at gmail dot com
  2010-06-29 15:09 ` [Bug bootstrap/44714] " redi at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jbare7 at gmail dot com @ 2010-06-29 14:26 UTC (permalink / raw)
  To: gcc-bugs

I am trying to install the new version of gcc and am getting an error in the
process.

Version of gcc: 4.5.0
System type: Ubuntu 10.04

I downloaded the package gcc-4.5.0.tar.gz from
ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-4.5.0/ and extracted the
file to my Desktop directory and I tried 

./configure
sudo make

Then I found out I needed GMP, MPFR, and MPC installed. I downloaded the
packages to my desktop and built and installed them, several times since some
of the latest versions did not seem to be compatible with each other. So after
a few tries I found a combination of versions of these that would install
correctly and still met the stated requirements for installing gcc 4.5.0

Then, finally I tried building gcc again with

./configure
sudo make

but then I get the error described in the summary above. Here is the last part
of the make process:

Checking multilib configuration for libgcc...
Configuring stage 1 in i686-pc-linux-gnu/libgcc
configure: loading cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-ar... ar
checking for i686-pc-linux-gnu-lipo... lipo
checking for i686-pc-linux-gnu-nm...
/home/justin/Desktop/gcc-4.5.0/host-i686-pc-linux-gnu/gcc/nm
checking for i686-pc-linux-gnu-ranlib... ranlib
checking for i686-pc-linux-gnu-strip... strip
checking whether ln -s works... yes
checking for i686-pc-linux-gnu-gcc...
/home/justin/Desktop/gcc-4.5.0/host-i686-pc-linux-gnu/gcc/xgcc
-B/home/justin/Desktop/gcc-4.5.0/host-i686-pc-linux-gnu/gcc/
-B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/
-isystem /usr/local/i686-pc-linux-gnu/include -isystem
/usr/local/i686-pc-linux-gnu/sys-include   
checking for suffix of object files... configure: error: in
`/home/justin/Desktop/gcc-4.5.0/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
make[2]: Leaving directory `/home/justin/Desktop/gcc-4.5.0'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/justin/Desktop/gcc-4.5.0'
make: *** [all] Error 2

Thanks for the help!


-- 
           Summary: libgcc configure: error: cannot compute suffix of object
                    files
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jbare7 at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44714


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug bootstrap/44714] libgcc configure: error: cannot compute suffix of object files
  2010-06-29 14:26 [Bug bootstrap/44714] New: libgcc configure: error: cannot compute suffix of object files jbare7 at gmail dot com
@ 2010-06-29 15:09 ` redi at gcc dot gnu dot org
  2010-06-29 15:20 ` redi at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-06-29 15:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from redi at gcc dot gnu dot org  2010-06-29 15:09 -------
(In reply to comment #0)
> sudo make

There's no need to build as root.

> Then I found out I needed GMP, MPFR, and MPC installed. I downloaded the
> packages to my desktop and built and installed them, several times since some
> of the latest versions did not seem to be compatible with each other. So after
> a few tries I found a combination of versions of these that would install
> correctly and still met the stated requirements for installing gcc 4.5.0

You don't need to install them, you can just put them in the gcc-4.5.0
directory, that's sometimes easier.

Or you can probably install them from your distro's package management system.

> See `config.log' for more details.

Like it says, see config.log for more details


-- 

redi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44714


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug bootstrap/44714] libgcc configure: error: cannot compute suffix of object files
  2010-06-29 14:26 [Bug bootstrap/44714] New: libgcc configure: error: cannot compute suffix of object files jbare7 at gmail dot com
  2010-06-29 15:09 ` [Bug bootstrap/44714] " redi at gcc dot gnu dot org
@ 2010-06-29 15:20 ` redi at gcc dot gnu dot org
  2010-06-29 18:24 ` jbare7 at gmail dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-06-29 15:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from redi at gcc dot gnu dot org  2010-06-29 15:20 -------
also, please check whether this is the same issue as Bug 43819 (did you search
for existing bugs with "cannot compute suffix" before entering a bug?)

It's likely you need to set LD_LIBRARY_PATH so that libgmp etc can be found

That wouldn't be necessary if you installed your distro's packages, or if you
put the gmp/mpfr/mpc sources in the gcc-4.5.0 directory instead of building and
installing them manually


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44714


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug bootstrap/44714] libgcc configure: error: cannot compute suffix of object files
  2010-06-29 14:26 [Bug bootstrap/44714] New: libgcc configure: error: cannot compute suffix of object files jbare7 at gmail dot com
  2010-06-29 15:09 ` [Bug bootstrap/44714] " redi at gcc dot gnu dot org
  2010-06-29 15:20 ` redi at gcc dot gnu dot org
@ 2010-06-29 18:24 ` jbare7 at gmail dot com
  2010-06-29 18:29 ` jbare7 at gmail dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jbare7 at gmail dot com @ 2010-06-29 18:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jbare7 at gmail dot com  2010-06-29 18:23 -------
> > sudo make
> 
> There's no need to build as root.

If I don"t build as root I get errors with removing certain files due to lack
of permissions for some reason.

> > Then I found out I needed GMP, MPFR, and MPC installed. I downloaded the
> > packages to my desktop and built and installed them, several times since some
> > of the latest versions did not seem to be compatible with each other. So after
> > a few tries I found a combination of versions of these that would install
> > correctly and still met the stated requirements for installing gcc 4.5.0
> 
> You don't need to install them, you can just put them in the gcc-4.5.0
> directory, that's sometimes easier.
> 
> Or you can probably install them from your distro's package management system.

I tried putting them in the gcc-4.5.0 directory and I tried installing them
from my distro, but neither of these worked to fix the error.

> > See `config.log' for more details.
> 
> Like it says, see config.log for more details
> 

Sorry, but I am relatively new to Linux and am not experienced in reading this
file. However, in looking through it I noticed several places where it printed
an error and then a portion of C code where the error occurred. One of these
seemed to be checking the version of MPFR. Others couldn"t find certain .h
files.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44714


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug bootstrap/44714] libgcc configure: error: cannot compute suffix of object files
  2010-06-29 14:26 [Bug bootstrap/44714] New: libgcc configure: error: cannot compute suffix of object files jbare7 at gmail dot com
                   ` (2 preceding siblings ...)
  2010-06-29 18:24 ` jbare7 at gmail dot com
@ 2010-06-29 18:29 ` jbare7 at gmail dot com
  2010-06-29 18:43 ` redi at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jbare7 at gmail dot com @ 2010-06-29 18:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jbare7 at gmail dot com  2010-06-29 18:29 -------
(In reply to comment #2)
> also, please check whether this is the same issue as Bug 43819 (did you search
> for existing bugs with "cannot compute suffix" before entering a bug?)
> 
> It's likely you need to set LD_LIBRARY_PATH so that libgmp etc can be found
> 
> That wouldn't be necessary if you installed your distro's packages, or if you
> put the gmp/mpfr/mpc sources in the gcc-4.5.0 directory instead of building and
> installing them manually
> 

Ah I did not find that bug report before. But as I said before, I'm fairly new
to Linux and I'm not sure how to set LD_LIBRARY_PATH correctly. I tried setenv,
but TAB completion did not recognize LD_LIBRARY_PATH as an option for this. And
yea, putting the other package directories in the gcc-4.5.0 directory didn't
fix the issue.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44714


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug bootstrap/44714] libgcc configure: error: cannot compute suffix of object files
  2010-06-29 14:26 [Bug bootstrap/44714] New: libgcc configure: error: cannot compute suffix of object files jbare7 at gmail dot com
                   ` (3 preceding siblings ...)
  2010-06-29 18:29 ` jbare7 at gmail dot com
@ 2010-06-29 18:43 ` redi at gcc dot gnu dot org
  2010-06-29 19:00 ` redi at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-06-29 18:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from redi at gcc dot gnu dot org  2010-06-29 18:43 -------
(In reply to comment #3)
> > > sudo make
> > 
> > There's no need to build as root.
> 
> If I don"t build as root I get errors with removing certain files due to lack
> of permissions for some reason.

That's because you've tried to build as root already.
Remove the whole build tree (as root) then as non-root create a new directory
and make.

You don't have to do this, but there's no reason to build as root.  You do need
to "make install" as root if you are trying to install to e.g. /usr/local

> > > Then I found out I needed GMP, MPFR, and MPC installed. I downloaded the
> > > packages to my desktop and built and installed them, several times since some
> > > of the latest versions did not seem to be compatible with each other. So after
> > > a few tries I found a combination of versions of these that would install
> > > correctly and still met the stated requirements for installing gcc 4.5.0
> > 
> > You don't need to install them, you can just put them in the gcc-4.5.0
> > directory, that's sometimes easier.
> > 
> > Or you can probably install them from your distro's package management system.
> 
> I tried putting them in the gcc-4.5.0 directory and I tried installing them
> from my distro, but neither of these worked to fix the error.

You need to rename them to just "gmp" instead of "gmp-4.3.2" etc.

Or if you install from your distro you need the development packages, for gmp I
think that's libgmp3-dev, libmpfr-dev and libmpc-dev


> > > See `config.log' for more details.
> > 
> > Like it says, see config.log for more details
> > 
> 
> Sorry, but I am relatively new to Linux and am not experienced in reading this
> file. However, in looking through it I noticed several places where it printed
> an error and then a portion of C code where the error occurred. One of these
> seemed to be checking the version of MPFR. Others couldn"t find certain .h
> files.

Most of the errors are not fatal, they are testing the features of your system,
so it's normal to see errors. Near the end of the file will be one that causes
the problem, search for the text "cannot compute suffix". If you can't find it,
attach libgcc/config.log to this bug report. 

(In reply to comment #4)
> Ah I did not find that bug report before. But as I said before, I'm fairly new
> to Linux and I'm not sure how to set LD_LIBRARY_PATH correctly. I tried setenv,
> but TAB completion did not recognize LD_LIBRARY_PATH as an option for this. And
> yea, putting the other package directories in the gcc-4.5.0 directory didn't
> fix the issue.

Of course not, it's not an option. You could give absolutely any name to
setenv, so how can it predict what you want to type?

setenv is only the right command if you're using C shell, for sane shells you
would use:
  export LD_LIBRARY_PATH=/path/to/your/libs
For csh, if you insist on using it:
  setenv LD_LIBRARY_PATH /path/to/your/libs

But I really suggest you figure out how to install the libraries from Ubuntu's
packages, it will save you a lot of effort.  You could also try the gcc-help
mailing list, since I'm fairly sure this is user error, not a bug in gcc.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44714


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug bootstrap/44714] libgcc configure: error: cannot compute suffix of object files
  2010-06-29 14:26 [Bug bootstrap/44714] New: libgcc configure: error: cannot compute suffix of object files jbare7 at gmail dot com
                   ` (4 preceding siblings ...)
  2010-06-29 18:43 ` redi at gcc dot gnu dot org
@ 2010-06-29 19:00 ` redi at gcc dot gnu dot org
  2010-06-30 10:37 ` jbare7 at gmail dot com
  2010-06-30 11:08 ` redi at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-06-29 19:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from redi at gcc dot gnu dot org  2010-06-29 19:00 -------
(In reply to comment #5)
> Or if you install from your distro you need the development packages, for gmp 

^ that should say "for Ubuntu" not "for gmp"


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44714


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug bootstrap/44714] libgcc configure: error: cannot compute suffix of object files
  2010-06-29 14:26 [Bug bootstrap/44714] New: libgcc configure: error: cannot compute suffix of object files jbare7 at gmail dot com
                   ` (5 preceding siblings ...)
  2010-06-29 19:00 ` redi at gcc dot gnu dot org
@ 2010-06-30 10:37 ` jbare7 at gmail dot com
  2010-06-30 11:08 ` redi at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jbare7 at gmail dot com @ 2010-06-30 10:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jbare7 at gmail dot com  2010-06-30 10:36 -------

> > I tried putting them in the gcc-4.5.0 directory and I tried installing them
> > from my distro, but neither of these worked to fix the error.
> 
> You need to rename them to just "gmp" instead of "gmp-4.3.2" etc.

I tried this, but now I get an error when running make for gcc that it can't
find gmp-impl.h and longlong.h, even though these exist in the gmp directory
which I made.


> But I really suggest you figure out how to install the libraries from Ubuntu's
> packages, it will save you a lot of effort.  You could also try the gcc-help
> mailing list, since I'm fairly sure this is user error, not a bug in gcc.
> 

I really want to use the package manager to install this, but gcc-4.5.0 does
not seem to be available as an upgrade for my version of gcc in the package
manager I have.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44714


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug bootstrap/44714] libgcc configure: error: cannot compute suffix of object files
  2010-06-29 14:26 [Bug bootstrap/44714] New: libgcc configure: error: cannot compute suffix of object files jbare7 at gmail dot com
                   ` (6 preceding siblings ...)
  2010-06-30 10:37 ` jbare7 at gmail dot com
@ 2010-06-30 11:08 ` redi at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-06-30 11:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from redi at gcc dot gnu dot org  2010-06-30 11:08 -------
(In reply to comment #7)
> > > I tried putting them in the gcc-4.5.0 directory and I tried installing them
> > > from my distro, but neither of these worked to fix the error.
> > 
> > You need to rename them to just "gmp" instead of "gmp-4.3.2" etc.
> 
> I tried this, but now I get an error when running make for gcc that it can't
> find gmp-impl.h and longlong.h, even though these exist in the gmp directory
> which I made.

Then you're doing something wrong.


> > But I really suggest you figure out how to install the libraries from Ubuntu's
> > packages, it will save you a lot of effort.  You could also try the gcc-help
> > mailing list, since I'm fairly sure this is user error, not a bug in gcc.
> > 
> 
> I really want to use the package manager to install this, but gcc-4.5.0 does
> not seem to be available as an upgrade for my version of gcc in the package
> manager I have.

No, but libgmp3-dev, libmpfr-dev and libmpc-dev are available, and if you had
installed them then you would have been able to build gcc a lot more easily. 
It might be too late, if you've installed them yourself and didn't know what
you were doing you might have various broken installations on your system.  Or
they might be fine and you just need to use LD_LIBRARY_PATH.

I suggest you delete the whole gcc-4.5.0 directory, as you might have made a
mess of it. Then either install the gmp, mpfr and mpc dev Ubuntu packages OR
set LD_LIBRARY_PATH to find your existing installations (if you sure they're
installed OK). Then unzip the gcc sources again, but this time follow the
advice at http://gcc.gnu.org/install/configure.html and do not run configure
and make in the gcc-4.5.0 directory:

tar xzvf gcc-4.5.0.tar.gz
mkdir build
cd build
../gcc-4.5.0/configure

Now if it goes wrong you can just remove the 'build' directory and leave the
gcc-4.5.0 source directory untouched.

I'm going to close this bug, since it does seem to be user error not a gcc bug.

Either use LD_LIBRARY_PATH or re-install the gmp/mpfr/mpc libs from your
package manager.

If you still have problems, seek help on an Ubuntu forum or the gcc-help
mailing list.


-- 

redi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44714


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-06-30 11:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-29 14:26 [Bug bootstrap/44714] New: libgcc configure: error: cannot compute suffix of object files jbare7 at gmail dot com
2010-06-29 15:09 ` [Bug bootstrap/44714] " redi at gcc dot gnu dot org
2010-06-29 15:20 ` redi at gcc dot gnu dot org
2010-06-29 18:24 ` jbare7 at gmail dot com
2010-06-29 18:29 ` jbare7 at gmail dot com
2010-06-29 18:43 ` redi at gcc dot gnu dot org
2010-06-29 19:00 ` redi at gcc dot gnu dot org
2010-06-30 10:37 ` jbare7 at gmail dot com
2010-06-30 11:08 ` redi at gcc dot gnu dot org

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).