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