Andi Hellmund wrote:
Hung-Hsun Su wrote:
Hi,
I was wondering if someone could help me install GCC 4.4.2 on one of
our system. I did
"./configure --prefix=/share/apps/gcc-4.4.2
--with-gmp=/share/apps/gmp-4.3.1 --with-mpfr=/share/apps/mpfr-2.4.1"
"make"
and got the following error message that I couldn't figure out what is
wrong.
Checking multilib configuration for libgcc...
Configuring stage 1 in x86_64-unknown-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... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-lipo... lipo
checking for x86_64-unknown-linux-gnu-nm...
/home/su/source/gcc/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/nm
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for x86_64-unknown-linux-gnu-strip... strip
checking whether ln -s works... yes
checking for x86_64-unknown-linux-gnu-gcc...
/home/su/source/gcc/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/xgcc
-B/home/su/source/gcc/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/bin/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/lib/ -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/include -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in
`/home/su/source/gcc/gcc-4.4.2/x86_64-unknown-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/su/source/gcc/gcc-4.4.2'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/su/source/gcc/gcc-4.4.2'
make: *** [all] Error 2
[root@alpha gcc-4.4.2]#
Thanks in advance for any help you can provide
Hung-Hsun
Hey Hung-Hsun,
you shouldn't call configure from the gcc source directory!
Please follow the instructions at this link:
http://gcc.gnu.org/install/configure.html
Andi
Hi Andi,
I try it as instructed using a clean copy of gcc that I downloaded from
the web buy still getting the same error message regarding libgcc
[root@alpha gcc-4.4.2]# pwd
/home/su/source/gcc/gcc-4.4.2
[root@alpha gcc]# mkdir gccobjdir
[root@alpha gcc]# cd gccobjdir
[root@alpha gccobjdir]# pwd
/home/su/source/gcc/gccobjdir
[root@alpha gccobjdir]# ../gcc-4.4.2/configure
--prefix=/share/apps/gcc-4.4.2 --with-gmp=/share/apps/gmp-4.3.1
--with-mpfr=/share/apps/mpfr-2.4.1
[root@alpha gccobjdir]# make
...
Checking multilib configuration for libgcc...
Configuring stage 1 in x86_64-unknown-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... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-lipo... lipo
checking for x86_64-unknown-linux-gnu-nm...
/home/su/source/gcc/gccobjdir/./gcc/nm
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for x86_64-unknown-linux-gnu-strip... strip
checking whether ln -s works... yes
checking for x86_64-unknown-linux-gnu-gcc...
/home/su/source/gcc/gccobjdir/./gcc/xgcc
-B/home/su/source/gcc/gccobjdir/./gcc/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/bin/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/lib/ -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/include -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in
`/home/su/source/gcc/gccobjdir/x86_64-unknown-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/su/source/gcc/gccobjdir'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/su/source/gcc/gccobjdir'
make: *** [all] Error 2
[root@alpha gccobjdir]#
Hung-Hsun
--
-----------------------------------------------------------------------------------------------------------
Sincerely,
Hung-Hsun Su
Ph.D. Student, UPC Group Leader, Research Assistant, Teaching Assistant
High-performance Computing and Simulation (HCS) Research Laboratory
Dept. of Electrical and Computer Engineering , University of Florida,
Gainesville, FL 32611-6200
Email: su@xxxxxxxxxxx, hunghsun@xxxxxxx
------------------------------------------------------------------------------------------------------------