gcc -DSYSTEM_IMRC=\"/etc/imlib/imrc\" -DIMLIB_LIB=\"/usr/lib\" -DSYSCONFDIR=\"/etc/imlib\" -I. -I. -I.. -I./.. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include -I/usr/include -mcpu=k6 -march=k6 -O2 -pipe -fomit-frame-pointer -c io-bmp.c -fPIC -DPIC -o .libs/io-bmp.lo {standard input}: Assembler messages: {standard input}:637: Error: value of ffffffffffffff70 too large for field of 1 bytes at 00000000000008dc make[2]: *** [io-bmp.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f .libs/rend.lo rend.lo make[2]: Leaving directory `/var/tmp/portage/imlib-1.9.14-r1/work/imlib-1.9.14/gdk_imlib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/imlib-1.9.14-r1/work/imlib-1.9.14' make: *** [all-recursive-am] Error 2 !!! ERROR: media-libs/imlib-1.9.14-r1 failed. !!! Function src_compile, Line 35, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. emerge imlib 2. 3. Actual Results: It compiles for a while, then dies on this. gcc v. 3.3.1 Portage 2.0.49-r5 (default-x86-1.4, gcc-3.3.1, glibc-2.2.5-r4,2.3.2-r1, 2.4.20-gentoo-r6) ================================================================= System uname: 2.4.20-gentoo-r6 i686 AMD Duron(tm) Processor ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=k6 -march=k6 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb /opt/jakarta/tomcat/conf /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=k6 -march=k6 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs userpriv" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif imlib jpeg libg++ mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline arts tetex bonobo svga tcltk java guile postgres sdl gpm tcpd pam libwww perl python esd oggvorbis gnome gtk qt kde motif opengl mozilla gphoto2 ldap gtk2 alsa gnome2 X mozsvg ssl"
change k6 to i586
Ok, changing the flags from K6 to i586 allowed the emerge to finish. Does that mean I can't use any AMD optimizations? Is this a known issue with GCC?
it's a known issue with k6
also, march implies mcpu so only use march=k6