from a fresh gentoo installation (stage1), when trying to install xfree, the installation hung while compiling libpng pngtest. (that is, the gcc command is printed, but then nothing happens for hours, and no hdd activity at all occurs. I can also issue shell commands at this point, but I have no prompt until after a command has been issued) upon trying to get it to compile (with usepkg, without fomit-frame-pointer, using mcpu=i386, without -pipe, etc.), I end up with this: gcc -I/usr/include -Wall [falgs vary here, depending on which ones I used] -funroll-loops -c -o pngwutil.o pngwutil.c gcc: Internal error: Terminated (program cc1) make: *** [pngrutil.o] Error 1 !!! ERROR: media-libs/libpng-1.2.5-r6 failed. !!! Function src_compile, Line 37, Exitcode 2 !!! Make failed my usual CFLAGS="-O2 -mcpu=pentium-mmx -fomit-frame-pointer -pipe" I tried without -pipe; with -mcpu=i386; without -fomit-frame-pointer; and varios combinations of each of these. trying emerge without altering the CFLAGS= give this: First, it compiles quite further, I see a "Terminated" after it compiles pngtrans.c and activity stops at gcc -o pngtest [...] this's where it seems like the shell comes back (without prompt), no error message. Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: Compilation hangs, or fails Expected Results: Compile libpng :P Architecture details: P200 mmx, 64Mb ram, 6+2GB hd kernel gentoo-dev (2.6.5) emerge info >>> Gentoo Base System version 1.4.9 Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo-r1) ================================================================= System uname: 2.6.5-gentoo-r1 i586 Pentium MMX Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=pentium-mmx -fomit-frame-pointer -pipe" CHOST="i386-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=pentium-mmx -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://gentoo.eliteitminds.com http://gentoo.mirrors.pair.com/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb canna cjk crypt cups directfb emacs emacs-w3 encode esd flac foomaticdb gdbm gif gnome gpm gtk gtk2 icq imlib java jpeg jpg libg++ libwww mad mikmod mmx motif mozilla mpeg mule ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl slang spell ssl svga tcpd truetype unicode x x86 xml2 xmms xv zlib"
CFLAGS="-O2 -mcpu=pentium-mmx -fomit-frame-pointer -pipe" CHOST="i386-pc-linux-gnu" this combination could be screwing things up ...
it would indeed seem that the CHOST and mcpu mismatch was causing trouble. I re-did the installation process (bootstrap, compile kernel) with i586 for both and all went fine. I think we can resolve this bug as INVA (although putting a big warning in the Gentoo installation manual might help)