This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/44714] libgcc configure: error: cannot compute suffix of object files



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]