[Bug bootstrap/44714] New: libgcc configure: error: cannot compute suffix of object files
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
[Bug bootstrap/44714] libgcc configure: error: cannot compute suffix of object files
--- 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
[Bug bootstrap/44714] libgcc configure: error: cannot compute suffix of object files
--- 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
[Bug bootstrap/44714] libgcc configure: error: cannot compute suffix of object files
--- 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