I've been trying to compile, build, and install GCC 4.4.2 in my installation of OpenSolaris 2009.06 on my VirtualBox 3 i386 machine. But I keep getting this same error when running make:
"checking whether ln -s works... yes checking for i386-pc-solaris2.11-gcc... /src/gcc-4.4.2/host-i386-pc-solaris2.11/gcc/xgcc -B/src/gcc-4.4.2/host-i386-pc-solaris2.11/gcc/ -B/usr/gnu/i386-pc-solaris2.11/bin/ -B/usr/gnu/i386-pc-solaris2.11/lib/ -isystem /usr/gnu/i386-pc-solaris2.11/include -isystem /usr/gnu/i386-pc-solaris2.11/sys-include checking for suffix of object files... configure: error: in `/src/gcc-4.4.2/i386-pc-solaris2.11/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 `/src/gcc-4.4.2' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/src/gcc-4.4.2' make: *** [all] Error 2" I've tried these two ./configure options: ./configure --prefix=/usr/gnu --with-gmp=/usr/gnu --with-mpfr=/usr/gnu --with-as=/usr/sfw/bin/gas --with-gnu-as --with-gnu-ld ./configure --prefix=/usr/gnu --with-gmp=/usr/gnu --with-mpfr=/usr/gnu --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-shared After doing "make bootstrap" I get a different error message: "checking whether the C compiler works... configure: error: in `/src/gcc-4.4.2/i386-pc-solaris2.11/amd64/libgcc': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. make[2]: * [configure-stage3-target-libgcc] Error 1 make[2]: Leaving directory `/src/gcc-4.4.2' make[1]: * [stage3-bubble] Error 2 make[1]: Leaving directory `/src/gcc-4.4.2' make: * [bootstrap] Error 2" Does anyone know what this means? Thanks! P.S. I brought this question up here but did not find a solution: http://stackoverflow.com/questions/1616867/error-1-2-when-compiling-gcc-4-4-2-on-opensolaris-2009-06/1616906#1616906 -- This message posted from opensolaris.org
