I have the following compiling errors with mesa and xorg-server, I seems to crash in the same file in both packages: mesa: ---- gcc -c -I../../include -I../../src/mesa -I../../src/mesa/main -I../../src/mesa/glapi -I../../src/mesa/math -I../../src/mesa/tnl -I../../src/mesa/shader -I../../src/mesa/shader/grammar -I../../src/mesa/shader/slang -I../../src/mesa/shader/slang/OSDependent/Linux -I../../src/mesa/shader/slang/OGLCompilersDLL -I../../src/mesa/swrast -I../../src/mesa/swrast_setup -Wall -O2 -march=k6-3 -fomit-frame-pointer -pipe -fPIC -m32 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DDEFAULT_DRIVER_DIR='"/usr/lib/xorg/modules/dri"' -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -std=c99 -ffast-math main/texcompress_fxt1.c -o main/texcompress_fxt1.o {entrada est
I have the following compiling errors with mesa and xorg-server, I seems to crash in the same file in both packages: mesa: ---- gcc -c -I../../include -I../../src/mesa -I../../src/mesa/main -I../../src/mesa/glapi -I../../src/mesa/math -I../../src/mesa/tnl -I../../src/mesa/shader -I../../src/mesa/shader/grammar -I../../src/mesa/shader/slang -I../../src/mesa/shader/slang/OSDependent/Linux -I../../src/mesa/shader/slang/OGLCompilersDLL -I../../src/mesa/swrast -I../../src/mesa/swrast_setup -Wall -O2 -march=k6-3 -fomit-frame-pointer -pipe -fPIC -m32 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DDEFAULT_DRIVER_DIR='"/usr/lib/xorg/modules/dri"' -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -std=c99 -ffast-math main/texcompress_fxt1.c -o main/texcompress_fxt1.o {entrada estándar}: Mensajes del ensamblador: {entrada estándar}:1385: Error: el valor de ffffffffffffff7e es demasiado grande para el campo de 1 bytes en 00000000000010d5 make[4]: *** [main/texcompress_fxt1.o] Error 1 make[4]: Leaving directory `/var/tmp/portage/mesa-6.4.2-r2/work/Mesa-6.4.2/src/mesa' make[3]: *** [default] Error 2 make[3]: Leaving directory `/var/tmp/portage/mesa-6.4.2-r2/work/Mesa-6.4.2/src/mesa' make[2]: *** [subdirs] Error 1 make[2]: Leaving directory `/var/tmp/portage/mesa-6.4.2-r2/work/Mesa-6.4.2/src' make[1]: *** [default] Error 1 make[1]: Leaving directory `/var/tmp/portage/mesa-6.4.2-r2/work/Mesa-6.4.2' make: *** [linux-dri-x86] Error 2 xorg-server: ----------- gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I/var/tmp/portage/xorg-server-1.0.2-r1/work/Mesa-6.4.2/include -I../X -I../array_cache -I../glapi -I../main -I../math -I../shader -I../swrast -I../swrast_setup -I../tnl -I.. -I../../../hw/xfree86/os-support -DHAVE_DIX_CONFIG_H -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../../../include -I../../../include -I../../../Xext -I../../../composite -I../../../damageext -I../../../xfixes -I../../../Xi -I../../../mi -I../../../miext/shadow -I../../../miext/damage -I../../../render -I../../../randr -I../../../fb -I../../../lbx -O2 -march=k6-3 -fomit-frame-pointer -pipe -MT texcompress_fxt1.lo -MD -MP -MF .deps/texcompress_fxt1.Tpo -c texcompress_fxt1.c -fPIC -DPIC -o .libs/texcompress_fxt1.o {standard input}: Assembler messages: {standard input}:1379: Error: value of ffffffffffffff7e too large for field of 1 bytes at 00000000000010bd make[3]: *** [texcompress_fxt1.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/xorg-server-1.0.2-r1/work/xorg-server-1.0.2/GL/mesa/main' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/xorg-server-1.0.2-r1/work/xorg-server-1.0.2/GL/mesa' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/xorg-server-1.0.2-r1/work/xorg-server-1.0.2/GL' make: *** [all-recursive] Error 1 --- By replacing -march=k6-3 by -march=pentium-mmx the compilations performs ok. I had the same error message in 2 packages before, imagemagick and sdl-image, I had reported the last as a bug (#120554) and was "solved" simply by filtering the k6 flag. I think it should be a problem of gcc. Here is my system info: Portage 2.1_pre6-r6 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.4-r1, 2.6.15-gentoo-r1-FoBoS i586) ================================================================= System uname: 2.6.15-gentoo-r1-FoBoS i586 AMD-K6(tm) 3D+ Processor Gentoo Base System version 1.12.0_pre16 dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i586-pc-linux-gnu" CFLAGS="-O2 -march=k6-3 -fomit-frame-pointer -pipe" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/con fig /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=k6-3 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://linuv.uv.es/mirror/gentoo/ http://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/g entoo/ http://ftp.romnet.org/gentoo/" LANG="es_ES@euro" LC_ALL="es_ES@euro" LINGUAS="es" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow GAPING_SECURITY_HOLE X acl alsa apm avi berkdb bitmap-fonts bzip2 bzlib cdr cli crypt cscope ctype cups dba dedicated dga directfb divx4linux doc dri dvi emboss encode esd ethereal expa t fam fastbuild fbcon foomaticdb force-cgi-redirect ftp gd gdbm geoip gif gimpprint gpm gps gstreame r gtk gtk2 hou imap imlib ipv6 jpeg libg++ libwww mad maildir memlimit mmx moznocompose moznoirc moz nomail mp3 mpeg msn mysql ncurses nls nowin nptl nptlonly nsplugin nvidia ogg openal opengl pam pdf pdflib png posix ppds python quicktime readline sasl scanner sdl session simplexml soap sockets sou spell spl ssl stencil-buffer svga tcpd tetex tiff tokenizer truetype truetype-fonts type1-fonts udev usb userlocales videos vim-with-x vorbis xml xosd xsl xv xvid zlib elibc_glibc input_devices_keyboa rd input_devices_mouse kernel_linux linguas_es userland_GNU video_cards_nvidia video_cards_vesa vide o_cards_fbdev" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, MAKEOPTS
I've reported the error to gcc and it seems to be resolved in the gcc 4.x.x branch. The error occurs with combination of -O2 and -march=k6-3 with -O2 -march=pentium-mmx doesn't occurs with -O1 -march=k6-3 doesn't occurs with -O3 -march=k6-3 doesn't occurs
the k3 flags have been notoriously unstable in gcc i'd suggest you just use -march=pentium-mmx or -march=i586 instead
I got a very similar error in compiling mesa-6.4.2-r2 with -march=k6-2. I resolved it by removing -fomit-frame-pointer from my CFLAGS
*** Bug 141742 has been marked as a duplicate of this bug. ***