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

Reply via email to