Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78512 - xorg-x11-6.8.1.902: gamma_state.c causes internal compiler error
Summary: xorg-x11-6.8.1.902: gamma_state.c causes internal compiler error
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-18 06:19 UTC by John Shaw
Modified: 2005-01-18 09:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Update to the xorg-x11 ebuild that filters out -ffast-math. (xorg-x11-6.8.1.902.ebuild,51.10 KB, text/plain)
2005-01-18 08:52 UTC, John Shaw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Shaw 2005-01-18 06:19:50 UTC
When emerging xorg-x11-6.8.1.902 I get an "gamma_state.c:1614: internal compiler error: Segmentation fault" error.

Reproducible: Always
Steps to Reproduce:
1. emerge -u xorg-x11
2.
3.

Actual Results:  
i686-pc-linux-gnu-gcc -c -march=pentium3 -O3 -fomit-frame-pointer
-fstack-protector -pipe -mno-sse2 -mno-sse3 -fno-strict-aliasing  -ansi
-pedantic -Wno-return-type -w  -I../../../../../../exports/include/X11
-I../../../../../../include/extensions -I../../../../../../extras/Mesa/src/mesa
           -I../../../../../../extras/Mesa/src/mesa/main          
-I../../../../../../extras/Mesa/src/mesa/glapi             
-I../../../../../../extras/Mesa/src/mesa/shader            
-I../../../../../../extras/Mesa/include                
-I../../../../../../extras/Mesa/src/mesa/drivers/dri/common                
-I../../../../../../extras/Mesa/src/mesa/drivers/dri/gamma
-I../../../../../../lib/GL/dri           -I../../../../../../exports/include/X11
            -I../../../../../../lib/GL/glx         
-I../../../../../../lib/GL/include         
-I../../../../../../programs/Xserver/GL/dri            
-I../../../../../../programs/Xserver/hw/xfree86/os-support         
-I../../../../../../extras/drm/shared     
-I../../../../../../programs/Xserver/hw/xfree86/drivers/glint           
-I../../../../../../lib/GL/dri/drm  -I../../../../../..
-I../../../../../../exports/include   -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L                              -D_POSIX_SOURCE
-D_XOPEN_SOURCE    -D_BSD_SOURCE -D_SVID_SOURCE                             
-D_GNU_SOURCE                       -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS 
-D_REENTRANT -DXUSE_MTSAFE_API    -DMALLOC_0_RETURNS_NULL -DGLXEXT -DXF86DRI
-DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA 
-DX_BYTE_ORDER=X_LITTLE_ENDIAN -DUSE_X86_ASM -DUSE_MMX_ASM  -DUSE_SSE_ASM    
-fPIC gamma_state.c
gamma_state.c: In function `gammaEmitHwState':
gamma_state.c:1614: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.


Expected Results:  
Correct emerge of xorg-x11.

Portage 2.0.51-r13 (default-linux/x86/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.10-hardened-r2 i686)
=================================================================
System uname: 2.6.10-hardened-r2 i686 Pentium III (Katmai)
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Aug  8 2004, 23:07:16)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.4.19, 2.4.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -fstack-protector
-funroll-loops -ffast-math -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -fstack-protector
-funroll-loops -ffast-math -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks fixpackages sandbox
sfperms"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/
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="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aalib alsa apm avi berkdb bitmap-fonts bonobo cdr crd crypt cups dga
encode esd f77 fam flac font-server foomaticdb fortran gdbm gif gmail gnome
gstreamer gtk gtk2 gtkhtml imagemagick imlib ipv6 java jpeg junit libg++ libwww
mad maildir mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss
pam pdflib perl png ppds python qt quicktime readline samba sdl slang spell sse
ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb x86 xml
xml2 xmms xv zlib"
Unset:  LDFLAGS
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-18 06:57:38 UTC
please reopen, if you can reproduce this without the -ffast-math flag
Comment 2 John Shaw 2005-01-18 08:52:00 UTC
Created attachment 48843 [details]
Update to the xorg-x11 ebuild that filters out -ffast-math.

If we know that -ffast-math causes a problem prehaps we should filter it out. 
This ebuild fixes the problem without having to change the CFLAGS manually.
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-18 08:58:22 UTC
No, -ffast-math is not supported. You can read in the gcc manual why it is not sane to use this flag in general.
Comment 4 John Shaw 2005-01-18 09:02:24 UTC
"This option should never be turned on by any -O option since it can result in incorrect output for programs which depend on an exact implementation of IEEE or ISO rules/specifications for math functions."

I stand corrected...