Hi All, Please note that we are migrating from solaris 8 to solaris 10 box. We were using precompiled version of gcc 4.3.2. However our building was faling. The precompiled version was using system ld instead of gcc ld. Hence building gcc 4.3.2 with the precompiled version of gcc 4.3.2.
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 When I look at the the following file "./sparc-sun-solaris2.10/libgcc/config.log" following is the error configure:2376: /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/f06 5093/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 -V </dev/null >&5 xgcc: '-V' must come at the start of the command line configure:2379: $? = 1 configure:2398: /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/f06 5093/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 -o conftest -g -fkeep-inli ne-functions conftest.c >&5 conftest.c:1: internal compiler error: Segmentation Fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. configure:2401: $? = 1 configure:2567: checking for suffix of object files Additional INFO Configure options as follows ./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 Please let me know if you want more information on this Thanks, Vijay -- Summary: Building error while compiling gcc 4.3.2 Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: vijay dot x dot jain at jpmchase dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41304