Emerge of the following packages fails on my k6-2 if -fomit-frame-pointer is in my CFLAGS. lame jpeg-mmx gimp It only seems to occur with -march=k6-2 on my Pentium system there are no problems. Reproducible: Always Steps to Reproduce: 1.in CFLAGS put -fomit-frame-pointer 2.emerge gimp lame jpeg-mmx 3. Actual Results: ebuilds fail Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) ================================================================= System uname: 2.4.19-gentoo-r10 i586 AMD-K6(tm) 3D processor 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 /usr/X11R6/lib/X11/xkb" 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 gif gpm jpeg libg++ libwww mikmod mmx motif ncurses nls pdflib png spell truetype xml2 xmms zlib gdbm berkdb slang readline java guile X tcpd pam ssl perl python esd imlib oggvorbis gnome gtk opengl mozilla -kde -qt -qtmt -arts -alsa mpeg encode dvd matrox quicktime sdl svga xv" COMPILER="gcc3" CHOST="i586-pc-linux-gnu" CFLAGS="-march=k6-2 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=k6-2 -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
and if -march=i586?
I have not been able to confirm this error. Can you show me a log of your errors with jpeg-mmx, lame and gimp?
Here's where lame fails, I'll post the error log of jpg-mmx and gimp asap.. gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I. -I../mpglib/ -I.. -Wall -march=k6-2 -O3 -pipe -fomit-frame-pointer -c vbrquantize.c -MT vbrquantize.lo -MD -MP -MF .deps/vbrquantize.TPlo -o vbrquantize.o >/dev/null 2>&1 make[3]: *** [vbrquantize.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/lame-3.93.1-r1/work/lame-3.93.1/libmp3lame' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/lame-3.93.1-r1/work/lame-3.93.1/libmp3lame' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/lame-3.93.1-r1/work/lame-3.93.1' make: *** [all] Error 2 !!! ERROR: media-sound/lame-3.93.1-r1 failed. !!! Function src_compile, Line 44, Exitcode 2 !!! (no error message)
here's the log of jpeg-mxx failing ... If you want the full log let me know. Jeroen gcc -march=k6-2 -O3 -pipe -fomit-frame-pointer -I. -c -fPIC -DPIC ./jccolor.c mv -f jcmarker.o jcmarker.lo ./libtool --mode=compile gcc -march=k6-2 -O3 -pipe -fomit-frame-pointer -I. -c ./jcsample.c gcc -march=k6-2 -O3 -pipe -fomit-frame-pointer -I. -c -fPIC -DPIC ./jcsample.c {standard input}: Assembler messages: {standard input}:266: Error: value of ffffffffffffff7f too large for field of 1 bytes at 00000000000002c0 make: *** [jccolor.lo] Error 1 make: *** Waiting for unfinished jobs.... mv -f jcsample.o jcsample.lo !!! ERROR: media-libs/jpeg-mmx-1.1.2-r1 failed. !!! Function src_compile, Line 21, Exitcode 2 !!! make failed Calculating dependencies ...done! >>> emerge (1 of 1) media-libs/jpeg-mmx-1.1.2-r1 to / >>> md5 ;-) jpeg-mmx-1.1.2.tar.gz (END)
finally gimp : gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../intl-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include -DLOCALEDIR=\""/usr/share/locale"\" -DGTK_DISABLE_COMPAT_H -march=k6-2 -O3 -pipe -fomit-frame-pointer -Wall -c rcm_gdk.c gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../intl-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include -DLOCALEDIR=\""/usr/share/locale"\" -DGTK_DISABLE_COMPAT_H -march=k6-2 -O3 -pipe -fomit-frame-pointer -Wall -c rcm_misc.c {standard input}: Assembler messages: {standard input}:1045: Error: value of ffffffffffffff7f too large for field of 1 bytes at 0000000000000e5e make[3]: *** [rcm_misc.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/gimp-1.2.3-r3/work/gimp-1.2.3/plug-ins/rcm' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gimp-1.2.3-r3/work/gimp-1.2.3/plug-ins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gimp-1.2.3-r3/work/gimp-1.2.3' make: *** [all-recursive-am] Error 2 !!! ERROR: media-gfx/gimp-1.2.3-r3 failed. !!! Function src_compile, Line 115, Exitcode 2 !!! (no error message) Calculating dependencies ...done! >>> emerge (1 of 1) media-gfx/gimp-1.2.3-r3 to / >>> md5 ;-) gimp-1.2.3.tar.bz2
I can confirm this error with jpeg-mmx and several other packages (whose names elude me presently) on the k6-2 using -march=k6-2. I tried jpeg-mmx without -fomit-frame-pointer and it compiled just fine. I'll attach a new .ebuild which strips -fomit-frame-pointer only if it finds -march=k6-2; I hear this happens with the k6 as well, but I can't confirm it, so someone should adjust it accordingly, perhaps? I've also repaired media-libs/imlib2, which has the same issue.
Created attachment 8753 [details] .ebuild for -fomit-frame-pointer on the k6-2 error fix
ok lame, jpeg-mmx and gimp ebuilds have been altered. Mark, sinterklaas, please re-open this bug report if you find more packages with this issue.