Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 65058

Summary: xorg-x11-6.7.0-r2 compilation fails with internal compiler
Product: Gentoo Linux Reporter: Ooblick <ooblick>
Component: Current packagesAssignee: Please assign to toolchain <gcc-porting>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Preprocessed C of the file that files to compile

Description Ooblick 2004-09-23 03:09:23 UTC
Upgrading from xorg-x11-6.7.0-r1 to xorg-x11-6.7.0-r2 fails during compilation of xm_tri.c.

Reproducible: Always
Steps to Reproduce:
1. Have xorg-x11-6.7.0-r1 running
2. emerge -u xorg-x11


Actual Results:  
gcc -c -march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer
-fno-strict-aliasing  -ansi -pedantic -Wno-return-type -w 
-I../../../../../extras/Mesa/src              -I../../../../../extras/Mesa/src/X
             -I../../../../../extras/Mesa/include            -I../../../include
-I../../../../../exports/include/X11 -I../../../dri -I../../../glx -I../../dri
-I..          -I../../../../../exports/include/GL
-I../../../../../programs/Xserver/hw/xfree86/os-support
-I../../../../../programs/Xserver/GL/dri  -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    -DXVENDORNAME='"The
X.Org Foundation"' -DXVENDORNAMESHORT='"X.Org"'  -fPIC xm_tri.c
xm_tri.c: In function `flat_TRUECOLOR_triangle':
xm_tri.c:1128: internal compiler error: in delete_insn, at cfgrtl.c:138
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.
make[6]: *** [xm_tri.o] Error 1
make[6]: Leaving directory
`/var/tmp/portage/xorg-x11-6.7.0-r2/work/xc/lib/GL/mesa/src/X'
make[5]: *** [all] Error 2
make[5]: Leaving directory
`/var/tmp/portage/xorg-x11-6.7.0-r2/work/xc/lib/GL/mesa/src'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0-r2/work/xc/lib/GL'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0-r2/work/xc/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0-r2/work/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0-r2/work/xc'
make: *** [World] Error 2

!!! ERROR: x11-base/xorg-x11-6.7.0-r2 failed.
!!! Function src_compile, Line 584, Exitcode 2
!!! (no error message)



Expected Results:  
Compiled successfully

The message during compile asks for a copy of the preprocessed c for xm_tri.c,
which I've enclosed as an attachment.

Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1,
2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo
http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.mirror.sdv.fr
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp.heanet.ie/pub/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://mirror.pudas.net/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://larch/gentoo-portage"
USE="3dnow 3dnowex X alsa apm avi berkdb bitmap-fonts bonobo cdr crypt cups
encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg
libg++ libwww mad mikmod mmx mmx2 motif mozilla mpeg ncurses nls nptl offensive
oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang
spell sse ssl svga tcltk tcpd truetype x86 xml2 xmms xprint xv zlib"
Comment 1 Ooblick 2004-09-23 03:11:27 UTC
Created attachment 40212 [details]
Preprocessed C of the file that files to compile

Output of the following:

cd /var/tmp/portage/xorg-x11-6.7.0-r2/work/xc/lib/GL/mesa/src/X 

gcc -E -march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer
-fno-strict-aliasing  -ansi -pedantic -Wno-return-type -w 
-I../../../../../extras/Mesa/src	     
-I../../../../../extras/Mesa/src/X	  -I../../../../../extras/Mesa/include 
	  -I../../../include -I../../../../../exports/include/X11
-I../../../dri -I../../../glx -I../../dri -I..	     
-I../../../../../exports/include/GL
-I../../../../../programs/Xserver/hw/xfree86/os-support
-I../../../../../programs/Xserver/GL/dri  -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 -DXVENDORNAME='"The X.Org Foundation"'
-DXVENDORNAMESHORT='"X.Org"'  -fPIC xm_tri.c >/tmp/xm_tri.c.preprocessed
Comment 3 Ooblick 2004-09-23 13:31:19 UTC
I am so embarrased by this. This bug is now *CLOSED*. It should never have been opened.

The reason for the problem compiling xorg is not gcc, nor xorg. This evening I've been experiencing all sorts of odd freezes. So I opened up my machine, and discovered that the fan on the PSU has stopped working.

I've put a big desk fan up against the open case of my PC, and re-emerge xorg. It works perfectly. It must have been the CPU overheating that caused the compile failures.

I apologise to all concerned for this mistake.

The fault was in my PC - not xorg, gcc, emerge, or anything else in gentoo.