build gcc-4.3.2 failed: configure: error: cannot compute suffix of object files
陈小玲
xiaoling@sunnorth.com.cn
Sat Feb 7 08:40:00 GMT 2009
Dear All
I am trying to build gcc-4.3.2 (native) on i486(32bit cpu) running Debian
4.1.1-21.
Target: i486-linux-gnu
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Create build dir:
$ mkdir /home/xiaoling/x86-work/build/gcc-4.3.2-build
$ cd /home/xiaoling/x86-work/build/gcc-4.3.2-build
Ran configure:
$ /home/xiaoling/x86-work/src/gcc-4.3.2/configure
--prefix=/home/xiaoling/x86-work/install
--with-gmp=/home/xiaoling/x86-work/install
--with-mpfr=/home/xiaoling/x86-work/install --enable-languages=c,c++
LD_LIBRARY_PATH=/home/xiaoling/x86-work/install/lib --enable-shared
Completed OK. Run make, report error as following:
$ make
Checking multilib configuration for libgcc...
Configuring stage 1 in i486-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... i486-pc-linux-gnu
checking host system type... i486-pc-linux-gnu
checking for i486-linux-gnu-ar... ar
checking for i486-linux-gnu-lipo... lipo
checking for i486-linux-gnu-nm...
/home/xiaoling/x86-work/build/gcc-4.3.2-build/./gcc/nm
checking for i486-linux-gnu-ranlib... ranlib
checking for i486-linux-gnu-strip... strip
checking whether ln -s works... yes
checking for i486-linux-gnu-gcc...
/home/xiaoling/x86-work/build/gcc-4.3.2-build/./gcc/xgcc
-B/home/xiaoling/x86-work/build/gcc-4.3.2-build/./gcc/
-B/home/xiaoling/x86-work/install/i486-linux-gnu/bin/
-B/home/xiaoling/x86-work/install/i486-linux-gnu/lib/ -isystem
/home/xiaoling/x86-work/install/i486-linux-gnu/include -isystem
/home/xiaoling/x86-work/install/i486-linux-gnu/sys-include
checking for suffix of object files... configure: error: cannot compute
suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
I can should the lib & include files of gmp & mpfr are in
/home/xiaoling/x86-work/install
Is there any ideas for above failing?
With our best regards
xiaoling.chen
More information about the Gcc-help
mailing list