On Saturday 12 Jan 2013 23:26:36 Dale wrote: > William Kenworthy wrote: > > On 12/01/13 23:11, Helmut Jarausch wrote: > >> On 01/12/2013 03:24:47 PM, Mick wrote: > >>> Not sure why it fails, or how to progress from here: > >>> > >>> ... > >>> checking how to run the C preprocessor... > >>> /mnt/video/tmp_portage/portage/sys- > >>> devel/gcc-4.6.3/work/build/./gcc/xgcc > >>> -B/mnt/video/tmp_portage/portage/sys- > > > > ... > > > >>> Any ideas? > >> > >> I can't see any error. I get those spurious failures if I use emerge > >> -j4 (i.e. multiple emerges in parallel) > >> > >> Furthermore make sure you the following libraries installed > >> dev-libs/mpc dev-libs/mpfr and dev-libs/gmp > >> > >> Try rebuild it with emerge -j1 and maybe MAKEOPTS=-j1 > >> Helmut. > > > > Do you have enough ram/swap? > > > > BillK > > While at it, make sure whatever portages work directory is on didn't run > out of space too. It causes some weird things and the error is not > always obvious. > > Dale > > :-) :-) Thank you all for your replies. I have c. 650M RAM and 1G swap. I did not have a problem emerging gcc until this version. How can I know if it runs out of memory, unless I continuously keep an eye on memory counts - is there a cleverer way to know this? I tried emerging it with MAKEOPTS="-j1" and it failed again, but with a different error: ============================================================== make[5]: Leaving directory `/mnt/video/tmp_portage/portage/sys- devel/gcc-4.6.3/w ork/build/i686-pc-linux-gnu/libgomp' make[4]: Leaving directory `/mnt/video/tmp_portage/portage/sys- devel/gcc-4.6.3/w ork/build/i686-pc-linux-gnu/libgomp' make[3]: Leaving directory `/mnt/video/tmp_portage/portage/sys- devel/gcc-4.6.3/w ork/build/i686-pc-linux-gnu/libgomp' make[2]: Leaving directory `/mnt/video/tmp_portage/portage/sys- devel/gcc-4.6.3/w ork/build' make "DESTDIR=" "RPATH_ENVVAR=LD_LIBRARY_PATH" "TARGET_SUBDIR=i686-pc-linux- gnu" "bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.6.3" "datadir=/usr/share/gcc- data/i686 -pc-linux-gnu/4.6.3" "exec_prefix=/usr" "includedir=/usr/lib/gcc/i686-pc- linux-g nu/4.6.3/include" "datarootdir=/usr/share" "docdir=/usr/share/doc/" "infodir=/us r/share/gcc-data/i686-pc-linux-gnu/4.6.3/info" "pdfdir=/usr/share/doc/" "htmldir =/usr/share/doc/" "libdir=/usr/lib" "libexecdir=/usr/libexec" "lispdir=" "locals tatedir=/usr/var" "mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.6.3/man" "oldi ncludedir=/usr/include" "prefix=/usr" "sbindir=/usr/sbin" "sharedstatedir=/usr/c om" "sysconfdir=/usr/etc" "tooldir=/usr/i686-pc-linux-gnu" "build_tooldir=/usr/i 686-pc-linux-gnu" "target_alias=i686-pc-linux-gnu" "AWK=gawk" "BISON=bison" "CC_ FOR_BUILD=i686-pc-linux-gnu-gcc" "CFLAGS_FOR_BUILD=-O2 -march=pentium3 -pipe" "C XX_FOR_BUILD=i686-pc-linux-gnu-g++" "EXPECT=expect" "FLEX=flex" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS_FOR_BUILD=-Wl,-O1 -Wl,--as-needed" "LEX=flex" "M4=m4" "MAKE=make" "RUNTEST=runtest" "RUNTESTFLAGS=" "SED=/usr/bin/sed" "SHELL=/bin/sh" "YACC=bison -y" "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "ADA_CFLAGS=" "AR_FLAGS=rc" "`echo 'BOOT_ADAFLAGS=-gnatpg -gnata' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "BOOT_CFLAGS=-O2 -march=pentium3 -pipe" "BOOT_LDFLAGS=" "CFLAGS=-O2 -march=pentium3 -pipe" "CXXFLAGS=-O2 - march=pentium3 -pipe" "LDFLAGS=-Wl,-O1 -Wl,--as-needed" "LIBCFLAGS=-O2 - march=pentium3 -pipe " "LIBCXXFLAGS=-O2 -march=pentium3 -pipe -fno-implicit- templates " "STAGE1_CHECKING=--enable-checking=release,types" "STAGE1_LANGUAGES=c,lto" "GNATBIND=no" "GNATMAKE=no" "AR_FOR_TARGET=/usr/i686- pc-linux-gnu/bin/ar" "AS_FOR_TARGET=/usr/i686-pc-linux-gnu/bin/as" "CC_FOR_TARGET=/mnt/video/tmp_portage/portage/sys- devel/gcc-4.6.3/work/build/./gcc/xgcc -B/mnt/video/tmp_portage/portage/sys- devel/gcc-4.6.3/work/build/./gcc/" "CFLAGS_FOR_TARGET=-g -O2 -march=pentium3 - pipe" "CPPFLAGS_FOR_TARGET=" "CXXFLAGS_FOR_TARGET=-O2 -march=pentium3 -pipe - D_GNU_SOURCE" "DLLTOOL_FOR_TARGET=dlltool" "FLAGS_FOR_TARGET=-B/usr/i686-pc- linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux- gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include" "GCJ_FOR_TARGET=" "GFORTRAN_FOR_TARGET=/mnt/video/tmp_portage/portage/sys- devel/gcc-4.6.3/work/build/./gcc/gfortran - B/mnt/video/tmp_portage/portage/sys-devel/gcc-4.6.3/work/build/./gcc/" "GOC_FOR_TARGET=" "GOCFLAGS_FOR_TARGET=-O2 -g" "LD_FOR_TARGET=/usr/i686-pc- linux-gnu/bin/ld" "LIPO_FOR_TARGET=lipo" "LDFLAGS_FOR_TARGET=" "LIBCFLAGS_FOR_TARGET=-g -O2 -march=pentium3 -pipe" "LIBCXXFLAGS_FOR_TARGET=- O2 -march=pentium3 -pipe -D_GNU_SOURCE -fno-implicit-templates" "NM_FOR_TARGET=/usr/i686-pc-linux-gnu/bin/nm" "OBJDUMP_FOR_TARGET=/usr/i686- pc-linux-gnu/bin/objdump" "RANLIB_FOR_TARGET=/usr/i686-pc-linux- gnu/bin/ranlib" "STRIP_FOR_TARGET=/usr/i686-pc-linux-gnu/bin/strip" "WINDRES_FOR_TARGET=windres" "WINDMC_FOR_TARGET=windmc" "BUILD_CONFIG=bootstrap-debug" "`echo 'LANGUAGES=' | sed -e s'/[^=] [^=]*=$/XFOO=/'`" "LEAN=:" "STAGE1_CFLAGS=" "STAGE1_CXXFLAGS=-O2 - march=pentium3 -pipe" "STAGE1_TFLAGS=" "STAGE2_CFLAGS=-O2 -march=pentium3 - pipe -gtoggle" "STAGE2_CXXFLAGS=-O2 -march=pentium3 -pipe" "STAGE2_TFLAGS=" "STAGE3_CFLAGS=-O2 -march=pentium3 -pipe" "STAGE3_CXXFLAGS=-O2 -march=pentium3 -pipe" "STAGE3_TFLAGS=" "STAGE4_CFLAGS=-O2 -march=pentium3 -pipe" "STAGE4_CXXFLAGS=-O2 -march=pentium3 -pipe" "STAGE4_TFLAGS=" "STAGEprofile_CFLAGS=-O2 -march=pentium3 -pipe -gtoggle -fprofile-generate" "STAGEprofile_CXXFLAGS=-O2 -march=pentium3 -pipe" "STAGEprofile_TFLAGS=" "STAGEfeedback_CFLAGS=-O2 -march=pentium3 -pipe -fprofile-use" "STAGEfeedback_CXXFLAGS=-O2 -march=pentium3 -pipe" "STAGEfeedback_TFLAGS=" "TFLAGS=" "CONFIG_SHELL=/bin/sh" "MAKEINFO=makeinfo --split-size=5000000 -- split-size=5000000" compare make[2]: Entering directory `/mnt/video/tmp_portage/portage/sys- devel/gcc-4.6.3/work/build' make[3]: Entering directory `/mnt/video/tmp_portage/portage/sys- devel/gcc-4.6.3/work/build' rm -f stage_current make[3]: Leaving directory `/mnt/video/tmp_portage/portage/sys- devel/gcc-4.6.3/work/build' Comparing stages 2 and 3 warning: gcc/cc1plus-checksum.o differs warning: gcc/cc1-checksum.o differs Bootstrap comparison failure! gcc/varasm.o differs make[2]: *** [compare] Error 1 make[2]: Leaving directory `/mnt/video/tmp_portage/portage/sys- devel/gcc-4.6.3/work/build' make[1]: *** [stage3-bubble] Error 2 make[1]: Leaving directory `/mnt/video/tmp_portage/portage/sys- devel/gcc-4.6.3/work/build' make: *** [bootstrap-lean] Error 2 emake failed * ERROR: sys-devel/gcc-4.6.3 failed (compile phase): * emake failed with bootstrap-lean * * Call stack: * ebuild.sh, line 93: Called src_compile * environment, line 4070: Called toolchain_src_compile * environment, line 4730: Called gcc_do_make * environment, line 2381: Called die * The specific snippet of code: * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}"; ============================================================== Does this point to anything more obvious, or shall I start running memory tests on this box? PS. STOP PRESS! I just found this: https://bugs.gentoo.org/show_bug.cgi?id=411333 This is a bug that affects only PIIIs. Unsurprisingly, not many people still run them. I'll try with CFLAGS=i686 to see if it completes. -- Regards, Mick