System is Solaris 8 Sparc. Totally up to date. Vendor provided compiler is Sun ONE Studio 8 also patched up to date.
My boot strap of GCC 4.2.1 fails at stage 2. Here is what I know. My approach with GCC has always been to bootstrap at least twice and then run the testsuites to verify that what I made was good. I didn't even get to the first bootstrap before I hit a problem. I make my own tool path and then build entirely with that toolpath. Within reason. No need to create a new kernel and I do use libiconv from Blastwave.org. Only because I forgot to build it and at the last minute I was too tired and it was too late so I put in --with-libiconv-prefix=/opt/csw on the configure line. So here is what I did I checked that I had sources to all the prerequisites : http://gcc.gnu.org/install/prerequisites.html Thus I built and tested clean with : gmp 4.2.1 gzip 1.3.12 make 3.81 bison 2.3 m4 1.4.10 mpfr 2.2.1 Each one of those passes all its tests with the exception of bison which skipped 7 that required root level access or some such minutia. Each of those was built with Sun ONE Studio 8 and I had the following environment variables set : TERM=vt100 SHELL=/usr/xpg4/bin/sh CPPFLAGS=-I/export/home/dclarke/local/include OLDPWD=/opt/build LD_OPTIONS=-R/export/home/dclarke/local/lib -L/export/home/dclarke/local/lib LC_ALL=C COLUMNS=80 PATH=/export/home/dclarke/local/bin:/opt/SUNWspro/bin:/usr/xpg4/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin PWD=/opt/build/gcc-4.2.1-build EDITOR=/usr/xpg4/bin/vi LANG=C TZ=Canada/Eastern LINES=24 SHLVL=1 HOME=/export/home/dclarke LOGNAME=dclarke CC=cc _=/usr/xpg4/bin/env I am using the bash shell and more specifically I am using the latest release of bash. The configure line for GCC 4.2.1 looks like so : bash-3.2$ /export/home/dclarke/build/gcc-4.2.1/configure --with-as=/usr/ccs/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --disable-nls --prefix=/export/home/dclarke/local --with-local-prefix=/export/home/dclarke/local --enable-shared --with-libiconv-prefix=/opt/csw --enable-languages=c,c++,objc,fortran --with-gmp=/export/home/dclarke/local --with-mpfr=/export/home/dclarke/local --enable-bootstrap Note that I am not using gas or gld and this is the way I have done this for years. However, it has been years since I built GCC so who knows what error I have made. Also note that I restrict the languages to c,c++,objc,fortran for this initial bootstrap. It should not make a whole lot of difference but I am only interested in those. For now. The process seems to run fine and configure does what it does. I issue make ( which is really GNU make that I built previously ) and things grind away for a long long time until this appears : checking for msgmerge... no checking for sparc-sun-solaris2.8-gcc... /opt/build/gcc-4.2.1-build/./prev-gcc/xgcc -B/opt/build/gcc-4.2.1-build/./prev-gcc/ -B/export/home/dclarke/local/sparc-sun-solaris2.8/bin/ checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. make[2]: *** [configure-stage2-intl] Error 1 make[2]: Leaving directory `/opt/build/gcc-4.2.1-build' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/opt/build/gcc-4.2.1-build' make: *** [all] Error 2 bash-3.2$ see this for all the details that follow : http://www.blastwave.org/dclarke/gcc-4.2.1/gcc-4.2.1-failure-details.txt Note that I do get a compiler from stage 1 but it seems unable to continue onto stage 2 : bash-3.2$ /opt/build/gcc-4.2.1-build/./prev-gcc/xgcc -v Using built-in specs. Target: sparc-sun-solaris2.8 Configured with: /export/home/dclarke/build/gcc-4.2.1/configure --with-as=/usr/ccs/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --disable-nls --prefix=/export/home/dclarke/local --with-local-prefix=/export/home/dclarke/local --enable-shared --with-libiconv-prefix=/opt/csw --enable-languages=c,c++,objc,fortran --with-gmp=/export/home/dclarke/local --with-mpfr=/export/home/dclarke/local --enable-bootstrap Thread model: posix gcc version 4.2.1 bash-3.2$ So any thoughts there from anyone ? Dennis