------- Comment #1 from ebotcazou at gcc dot gnu dot org 2009-09-08 07:27 ------- > I am building gcc 4.3.2 on solaris 10 box. I am getting the following build > error. > checking for sparc-sun-solaris2.10-gcc... > /home/odyssey/f065093/gcc/gcc-4.3.2/host-sparc-sun-solaris2.10/gcc/xgcc > -B/home/odyssey/f065093/gcc/gcc-4.3.2/host-sparc-sun-solaris2.10/gcc/ > -B/home/odyssey/f065093/gcc/gcc-4.3.2/install/sparc-sun-solaris2.10/bin/ > -B/home/odyssey/f065093/gcc/gcc-4.3.2/install/sparc-sun-solaris2.10/lib/ > -isystem > /home/odyssey/f065093/gcc/gcc-4.3.2/install/sparc-sun-solaris2.10/include > -isystem > /home/odyssey/f065093/gcc/gcc-4.3.2/install/sparc-sun-solaris2.10/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 > make[2]: Leaving directory `/home/odyssey/f065093/gcc/gcc-4.3.2' > make[1]: *** [stage1-bubble] Error 2 > make[1]: Leaving directory `/home/odyssey/f065093/gcc/gcc-4.3.2' > make: *** [all] Error 2
Unexpected, the compiler is known to build flawlessly on this platform. > ./configure srcdir=/home/odyssey/f065093/gcc/gcc-4.3.2/ > --prefix=/home/odyssey/f065093/gcc/gcc-4.3.2/install > --with-as=/3rdparty/fsf/binutils/2.18/bin/as > --with-ld=/3rdparty/fsf/binutils/2.18/bin/ld --with-gnu-as --with-gnu-ld > --disable-nls --enable-languages=c,c++ > --with-gmp=/home/odyssey/f065093/gmp/gmp-4.3.1/install > --with-mpfr=/home/odyssey/f065093/mpfr/mpfr-2.4.1/install > LD=/3rdparty/fsf/binutils/2.18/bin/ld AR=/3rdparty/fsf/binutils/2.18/bin/ar > NM=/3rdparty/fsf/binutils/2.18/bin/nm > RANLIB=/3rdparty/fsf/binutils/2.18/bin/ranlib > STRIP=/3rdparty/fsf/binutils/2.18/bin/strip > OBJCOPY=/3rdparty/fsf/binutils/2.18/bin/objcopy > OBJDUMP=/3rdparty/fsf/binutils/2.18/bin/objdump CC=gcc cc=gcc As indicated in the docs, building in the source directory is not supported. Also remove the srcdir setting. What does the base compiler return for 'gcc -v'? -- ebotcazou at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu dot | |org Status|UNCONFIRMED |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41304