This is the mail archive of the gcc-help@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]

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


Hello

Am trying to compile GCC 4.5.1 but had no success... These are the
steps I followed:

1. Install GMP, MPFR and MPC

2. Uncompress gcc-4.5.1.tar.gz,  gcc-core-4.5.1.tar.gz,
gcc-g++-4.5.1.tar.gz,  gcc-objc-4.5.1.tar.gz at /tmp/

3. mkdir /tmp/gcc-4.5.1/objdir; cd /tmp/gcc-4.5.1/objdir

4. ../configure --prefix=/usr/local

Then it starts the configuration and after a while it throws:

...
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile

5. Run make

...

mkdir -p -- i686-pc-linux-gnu/libgcc
Checking multilib configuration for libgcc...
Configuring stage 1 in i686-pc-linux-gnu/libgcc
configure: creating 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... /tmp/gcc-4.5.1/objdir/./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... /tmp/gcc-4.5.1/objdir/./gcc/xgcc
-B/tmp/gcc-4.5.1/objdir/./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
`/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
make[2]: Leaving directory `/tmp/gcc-4.5.1/objdir'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/tmp/gcc-4.5.1/objdir'
make: *** [all] Error 2




What can be the error... I have currently a RPM version installed at /
and am compiling latest version at /usr/local, then I want to remove
the RPM and leave the current version only...

Any idea of what is going on and how can I fix it to compile?

These are the packages already installed:

cpp-4.1.2-12.i386.rpm  gcc-c++-4.1.2-12.i386.rpm  libstdc++-4.1.2-12.i386.rpm
gcc-4.1.2-12.i386.rpm  libgomp-4.1.2-12.i386.rpm
libstdc++-devel-4.1.2-12.i386.rpm

libgcc was already installed on my Fedora 7

Thanks for any help


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