Whenever attempting to emerge jpeg-mmx, I get compile error. See excerpt below, and "actual results" section for (complete) typescript output. I have tried a number of things to make it work (attempting to get around compile problem), and nothing has worked. I've waited for it to compile correctly, and once a month or so, I try again, and it always fails at the same spot. Here's some excerpts from the below included typescript output: gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jdcolor.c {standard input}: Assembler messages: {standard input}:1109: Error: symbol `col_loop_a' is already defined {standard input}:1159: Error: symbol `last_col' is already defined {standard input}:1271: Error: symbol `col_loop_a' is already defined {standard input}:1321: Error: symbol `last_col' is already defined [...] !!! ERROR: media-libs/jpeg-mmx-1.1.2-r1 failed. !!! Function src_compile, Line 34, Exitcode 2 !!! make failed The only thing that has worked is ignoring the problem and letting it use other libraries; it seems to use other libraries. I forget how I got it to do that. I do know that it keeps getting this line in "emerge -p world": $ emerge -p world|egrep -v UD These are the packages that I would merge, in order: Calculating world dependencies ...done! [ebuild N ] media-libs/jpeg-mmx-1.1.2-r1 <<<<<<<<<<<<<<<<<<<<<<<<<< [ebuild N ] sys-kernel/vanilla-sources-2.4.25 [ebuild N ] sys-kernel/gentoo-dev-sources-2.6.3-r1 $ Besides those confusing kernel source entries (which never have anything to do with recent pure kernel sources which I need, e.g., I currently use 2.6.4, and am watching the 2.6.5 rc series, and pure 2.6.3 has severe complete show-stopper bugs for me), it's the only thing in the "emerge -p world" list that isn't just a downgrade. I categorized this as "minor -- easy workaround" since for some reason, I've been able to continue without it this entire time, but it has been and is really annoying to see in the Portage system for almost a year. For the package itself (which I think is an alternate to some other package), it is a "complete showstopper", as you said. I do not know what function I've lost because I haven't had it; e.g., perhaps some programs would work better with it, or perhaps not? Reproducible: Always Steps to Reproduce: 1. emerge jpeg-mmx Actual Results: Script started on Thu Mar 18 16:28:14 2004 $ sudo emerge jpeg-mmx Calculating dependencies ...done! >>> emerge (1 of 1) media-libs/jpeg-mmx-1.1.2-r1 to / >>> md5 src_uri ;-) jpeg-mmx-1.1.2.tar.gz >>> Unpacking source... >>> Unpacking jpeg-mmx-1.1.2.tar.gz to /var/tmp/portage/jpeg-mmx-1.1.2-r1/work RUNNING FROM extra_functions.sh Applying jpeg-mmx-gcc33fix.gz... ok >>> Source unpacked. Patching ${S}/ltmain.sh... Could not apply portage.patch! Please verify that it is not needed. Cannot apply any patch, running libtoolize... libtoolize: `configure.ac' does not exist Try `libtoolize --help' for more information. checking for gcc... gcc checking whether the C compiler (gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe ) works... yes checking whether the C compiler (gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe ) is a cross-compiler... no checking whether we are using GNU C... yes checking how to run the C preprocessor... gcc -E checking for function prototypes... yes checking for stddef.h... yes checking for stdlib.h... yes checking for string.h... yes checking for size_t... yes checking for type unsigned char... yes checking for type unsigned short... yes checking for type void... yes checking for working const... yes checking for inline... __inline__ checking for broken incomplete types... ok checking for short external names... ok checking to see if char is signed... yes checking to see if right shift is signed... yes checking to see if fopen accepts b spec... yes checking for a BSD compatible install... /bin/install -c checking for ranlib... ranlib checking host system type... i686-pc-linux-gnu checking for ranlib... ranlib checking whether we are using GNU C... yes checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... -static checking whether ln -s works... yes checking for ld used by GCC... /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld checking if the linker (/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking whether the linker (/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking for BSD-compatible nm... /usr/bin/nm -B checking command to parse /usr/bin/nm -B output... yes checking how to hardcode library paths into programs... immediate checking for /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld option to reload object files... -r checking dynamic linker characteristics... Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for objdir... .libs creating libtool checking libjpeg version number... 62 creating ./config.status creating Makefile creating jconfig.h ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jcapimin.c ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jcapistd.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jcapimin.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jcapistd.c mv -f jcapistd.o jcapistd.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jctrans.c mv -f jcapimin.o jcapimin.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jcparam.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jctrans.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jcparam.c mv -f jctrans.o jctrans.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jdatadst.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jdatadst.c mv -f jdatadst.o jdatadst.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jcinit.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jcinit.c mv -f jcinit.o jcinit.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jcmaster.c mv -f jcparam.o jcparam.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jcmarker.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jcmaster.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jcmarker.c mv -f jcmaster.o jcmaster.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jcmainct.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jcmainct.c mv -f jcmainct.o jcmainct.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jcprepct.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jcprepct.c mv -f jcmarker.o jcmarker.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jccoefct.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jccoefct.c mv -f jcprepct.o jcprepct.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jccolor.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jccolor.c mv -f jccoefct.o jccoefct.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jcsample.c mv -f jccolor.o jccolor.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jchuff.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jcsample.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jchuff.c mv -f jcsample.o jcsample.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jcphuff.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jcphuff.c mv -f jchuff.o jchuff.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jcdctmgr.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jcdctmgr.c mv -f jcdctmgr.o jcdctmgr.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jfdctfst.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jfdctfst.c mv -f jcphuff.o jcphuff.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jfdctflt.c mv -f jfdctfst.o jfdctfst.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jfdctint.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jfdctflt.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jfdctint.c mv -f jfdctflt.o jfdctflt.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jdapimin.c mv -f jfdctint.o jfdctint.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jdapistd.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jdapimin.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jdapistd.c mv -f jdapimin.o jdapimin.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jdtrans.c mv -f jdapistd.o jdapistd.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jdatasrc.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jdtrans.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jdatasrc.c mv -f jdtrans.o jdtrans.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jdmaster.c mv -f jdatasrc.o jdatasrc.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jdinput.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jdmaster.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jdinput.c mv -f jdinput.o jdinput.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jdmarker.c mv -f jdmaster.o jdmaster.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jdhuff.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jdmarker.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jdhuff.c mv -f jdhuff.o jdhuff.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jdphuff.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jdphuff.c mv -f jdmarker.o jdmarker.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jdmainct.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jdmainct.c mv -f jdphuff.o jdphuff.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jdcoefct.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jdcoefct.c mv -f jdmainct.o jdmainct.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jdpostct.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jdpostct.c mv -f jdpostct.o jdpostct.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jddctmgr.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jddctmgr.c mv -f jdcoefct.o jdcoefct.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jidctfst.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jidctfst.c mv -f jddctmgr.o jddctmgr.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jidctflt.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jidctflt.c jidctfst.c:400: warning: integer constant is too large for "long" type jidctfst.c:401: warning: integer constant is too large for "long" type jidctfst.c:402: warning: integer constant is too large for "long" type jidctfst.c:403: warning: integer constant is too large for "long" type jidctfst.c:404: warning: integer constant is too large for "long" type jidctfst.c:405: warning: integer constant is too large for "long" type mv -f jidctfst.o jidctfst.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jidctint.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jidctint.c mv -f jidctflt.o jidctflt.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jidctred.c jidctint.c:176: warning: integer constant is too large for "long" type jidctint.c:177: warning: integer constant is too large for "long" type jidctint.c:178: warning: integer constant is too large for "long" type jidctint.c:179: warning: integer constant is too large for "long" type jidctint.c:180: warning: integer constant is too large for "long" type jidctint.c:181: warning: integer constant is too large for "long" type jidctint.c:182: warning: integer constant is too large for "long" type jidctint.c:183: warning: integer constant is too large for "long" type jidctint.c:184: warning: integer constant is too large for "long" type jidctint.c:185: warning: integer constant is too large for "long" type jidctint.c:186: warning: integer constant is too large for "long" type jidctint.c:188: warning: integer constant is too large for "long" type jidctint.c:189: warning: integer constant is too large for "long" type jidctint.c:190: warning: integer constant is too large for "long" type jidctint.c:191: warning: integer constant is too large for "long" type jidctint.c:192: warning: integer constant is too large for "long" type jidctint.c:193: warning: integer constant is too large for "long" type jidctint.c:194: warning: integer constant is too large for "long" type jidctint.c:195: warning: integer constant is too large for "long" type jidctint.c:196: warning: integer constant is too large for "long" type jidctint.c:197: warning: integer constant is too large for "long" type jidctint.c:198: warning: integer constant is too large for "long" type jidctint.c:200: warning: integer constant is too large for "long" type jidctint.c:201: warning: integer constant is too large for "long" type mv -f jidctint.o jidctint.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jdsample.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jidctred.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jdsample.c jdsample.c:308: warning: integer constant is too large for "long" type jdsample.c:308: warning: integer constant is too large for "long" type jdsample.c:309: warning: integer constant is too large for "long" type jdsample.c:309: warning: integer constant is too large for "long" type jdsample.c:310: warning: integer constant is too large for "long" type jdsample.c:310: warning: integer constant is too large for "long" type jdsample.c:311: warning: integer constant is too large for "long" type jdsample.c:311: warning: integer constant is too large for "long" type jdsample.c:312: warning: integer constant is too large for "long" type mv -f jidctred.o jidctred.lo ./libtool --mode=compile gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c ./jdcolor.c gcc -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe -I. -c -fPIC -DPIC ./jdcolor.c {standard input}: Assembler messages: {standard input}:1109: Error: symbol `col_loop_a' is already defined {standard input}:1159: Error: symbol `last_col' is already defined {standard input}:1271: Error: symbol `col_loop_a' is already defined {standard input}:1321: Error: symbol `last_col' is already defined {standard input}:1433: Error: symbol `col_loop_a' is already defined {standard input}:1483: Error: symbol `last_col' is already defined {standard input}:1595: Error: symbol `col_loop_a' is already defined {standard input}:1645: Error: symbol `last_col' is already defined {standard input}:1757: Error: symbol `col_loop_a' is already defined {standard input}:1807: Error: symbol `last_col' is already defined {standard input}:1919: Error: symbol `col_loop_a' is already defined jdcolor.c:126: warning: integer constant is too large for "long" type jdcolor.c:127: warning: integer constant is too large for "long" type jdcolor.c:128: warning: integer constant is too large for "long" type {standard input}:1969: Error: symbol `last_col' is already defined {standard input}:2079: Error: symbol `col_loop_a' is already defined {standard input}:2129: Error: symbol `last_col' is already defined {standard input}:2806: Error: symbol `col_loop' is already defined {standard input}:2901: Error: symbol `last_column' is already defined {standard input}:2975: Error: symbol `col_loop2' is already defined {standard input}:3042: Error: symbol `last_column2' is already defined {standard input}:3147: Error: symbol `col_loop' is already defined {standard input}:3242: Error: symbol `last_column' is already defined {standard input}:3316: Error: symbol `col_loop2' is already defined {standard input}:3383: Error: symbol `last_column2' is already defined {standard input}:3492: Error: symbol `col_loop' is already defined {standard input}:3587: Error: symbol `last_column' is already defined {standard input}:3661: Error: symbol `col_loop2' is already defined {standard input}:3728: Error: symbol `last_column2' is already defined make: *** [jdsample.lo] Error 1 make: *** Waiting for unfinished jobs.... mv -f jdcolor.o jdcolor.lo !!! ERROR: media-libs/jpeg-mmx-1.1.2-r1 failed. !!! Function src_compile, Line 34, Exitcode 2 !!! make failed $ exit exit Script done on Thu Mar 18 16:28:39 2004 Expected Results: emerge jpeg-mmx [...] [succeeds] Gentoo Base System version 1.4.3.13 Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4) ================================================================= System uname: 2.6.4 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -march=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://gentoo.ccccom.com http://gentoo.ccccom.com" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib alsa apm arts avi berkdb bidi bonobo cjk crypt cups dga directfb dvd dvdr encode esd evms2 faad fbcon foomaticdb gdbm ggi gif gphoto2 gpm gtk gtk2 gtkhtml guile icc-pgo imlib ipv6 java jpeg libg++ libwww lirc mad maildir matroska mikmod mmx motif mozilla mpeg mule mysql nas ncurses nls nvidia oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba sdl slang snmp spell sse ssl svga tcltk tcpd tetex tiff truetype unicode usb wxwindows x86 xface xinerama xml2 xmms xv zlib" $ ls /usr/local/portage/*: [does not include jpeg-mmx] /usr/local/portage/dev-perl: Video-Frequencies/ Video-ivtv/ /usr/local/portage/media-libs: libdvbpsi/ /usr/local/portage/media-tv: HIDE/ ivtv/ ivtv-cvs/ ivtv-latest/ kwintv/ mythfrontend/ mythfrontend-cvs/ mythtv/ mythtv-cvs/ /usr/local/portage/media-video: vlc/ vls/ /usr/local/portage/net-mail: exim/
a couple of things: first: remove these: -ffast-math -funroll-all-loops from your CFLAGS strings and try the compile again. Second, go into /var/cache/edb/virtuals and check the order in which virtual/linux-sources is satisfied. Remove the two you mentioned from that list.
re-open when you've tested the different CFLAGS we've suggested