While trying to emerge mod_php, I came across the media-libs/jpeg dependancy that will not build. It appears that jpeg-6b-r3 as well as the older -r2 are both failing in the same place, with the same error. The exact error (for both ebuilds) is: jcphuff.c: In function 'encode_mcu_AC_refine': jcphuff.c:738: internal error: Illegal instruction <thing about reporting bug> make: *** [jcphuff.lo] Error 1 !!! ERROR: media-libs/jpeg-6b-r3 failed. !!! Function src_compile, Line 35, Exitcode 2 !!! (no error message)
Version of gcc used: 3.2.1 (On a Celeron 800 / 256 megs RAM) Also checked: gcc 3.2.1 (On P3 1GHz / 1024 megs RAM) - Failed Also checked: gcc 2.95.3 (On P3 800 / 512 megs RAM) - This one worked It may be a gcc 3.2.1 issue.
what does `emerge info` show ?
Here's the info you requested. Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) ================================================================= System uname: 2.4.19-gentoo-r10 i686 Pentium III (Coppermine) GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt cups encode gif gpm imlib jpeg libg++ mikmod mmx motif mpeg ncurses nls oggvorbis pdflib png qt qtmt quicktime sdl spell svga truetype xml2 zlib gdbm berkdb slang readline java mysql tcpd pam libwww ssl perl python" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-O2 -mcpu=i686 -pipe" CXXFLAGS="" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Try to set the arch in CFLAGS: CFLAGS="-march=i686 -O2 -pipe". Same for CXXFLAGS. Then remerge gcc, and try again.
Same error as before, on both ebuilds, with the following set in make.conf: CFLAGS="-march=i686 -O2 -pipe" CXXFLAGS="-march=i686 -O2 -pipe"
Any chance to try with gcc-3.2.2_pre20030131 ?
gcc-3.2.2_pre20030131 compiled jpeg6b-r3 successfully, on both machines it failed on.
Ok, great to hear.