Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77548 - xorg-x11 ICE with -mfpmath=sse on gcc-3.3.4
Summary: xorg-x11 ICE with -mfpmath=sse on gcc-3.3.4
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-11 09:59 UTC by shade266
Modified: 2005-02-26 07:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shade266 2005-01-11 09:59:11 UTC
While trying to update Xorg to the current-x11-base/xorg-x11-6.8.1.901 from Xorg version 6.8.0-r3. The compile would fail with the exact error message contained in the URL/thread I provided with my emerge info included. The compile also halted in the exact same place everytime.

Editing CFLAGS="" to indicate -02 as opposed to -03 and removing -mfpmath=sse allowed a successful compile of Xorg to occur.


Reproducible: Always
Steps to Reproduce:
1.The emerge info provided in the URL/thread will indicate system setup.
2.Emerge -u world xorg-x11 produces unsuccessful compile with above mentioned system setup.
3.Emerge of xorg-x11 alone with the above mentioned system setup.

Actual Results:  
The Xorg build would fail/halt with the below message(s). The exception being
the version of Xorg-x11 being 6.8.1.901 in this instance.

Emerge error output: gcc: Internal error: Trace/breakpoint trap (program cc1)
Please submit a full bug report
See <URL:http://bugs.gentoo.org/> for instructions
make[5]: *** [xf86vmode.o] Error 1
make[5]: Leaving directory
'/var/tmp/portage/xorg-x11-6.7.0-r1/work/xc/programs/Xserver/Xect'
make[4]: *** [Xext] Error 2
make[4] Leaving directory
'/var/tmp/portage/xorg-x11-6.7.0-r1/work/xc/programs/Xserver/Xext'
make[3]: *** [all] Error 2
make[3]: Leaving directory '/var/tmp/portage/xorg-x11-6.7.0-r1/work/xc/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory '/var/tmp/portage/xorg-x11-6.7.0-r1/work/xc'
make[1]: [World] Error 2
make[1]: Leaving directory '/var/tmp/portage/xorg-x11-6.7.0-r1/work/xc'
make: *** [World] Error 2
!!!ERROR: x11-base/xorg-x11-6.7.0-r1 failed
!!!Function src_compile, Line 671, Exitcode 2
!!!(no error message) 

Expected Results:  
I expected a successful compile of the xor-x11 upgrade considering I compiled
the previous-6.8.0-r3-version with the exact CFLAGS="" and USE="". Thus being an
upgrade I would not have presumed any errors.

I also am requesting a replace-flag solution be included in the ebuild per
Earthwings' suggestion.

Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20041102-r0,
2.6.10-gentoo-r2 i686)
=================================================================
System uname: 2.6.10-gentoo-r2 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec 24 2004, 10:38:57)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -mcpu=athlon-xp -mmmx -msse -mfpmath=sse
-funroll-loops -frerun-cse-after-loop -fomit-frame-pointer -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/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -mcpu=athlon-xp -mmmx -msse -mfpmath=sse
-funroll-loops -frerun-cse-after-loop -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distcc distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo/
ftp://gentoo.chem.wisc.edu/gentoo/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dNowExt 3dfx 3dnow 3dnowex X aac aalib acl alsa apm avi berkdb
bitmap-fonts cdr cjk crypt cups directfb divx4linux doc dv dvdr encode fam
ffmpeg firebird flac flexresp foomaticdb fortran gdbm gif gpm gtk gtk2 hardened
imagemagick imlib ipv6 java jpeg junit libcaca libwww live mad mikmod mmx mmx2
motif mozilla mozsvg mpeg ncurses network nls oggvorbis opengl oss pam pdflib
perl png ppds pwdb python quicktime readline real sdl snortsam spell sse ssl
static svga tcpd tiff truetype truetype-fonts type1-fonts unicode usb wma xml
xml2 xmms xprint xv zlib"
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-11 12:43:13 UTC
So, let me get this straight:
"-O3 -mfpmath=sse" BROKEN
"-O2" FIXED

Can you test "-O2 -mfpmath=sse"?
Comment 2 shade266 2005-01-11 19:58:15 UTC
The initial test included: "-O3 -mfpmath=sse"-which was unsuccessful in compiling.

Second test included : "-02 -mfpmath=sse" - resulting again ina an unsuccessful compile.

Third test includes: ="-O2 -march=athlon-xp -mcpu=athlon-xp -mmmx -msse -funroll-loops -frerun-cse-after-loop -fomit-frame-pointer -pipe" -resulting in successful compile of xorg-x11 everytime.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-11 22:22:35 UTC
Conclusion being -mfpmath=sse doesn't work with gcc 3.3.4. Care to test gcc-3.4.x (in other words, latest ~x86)?
Comment 4 shade266 2005-01-13 21:27:15 UTC
An update to the testing of gcc 3.4.3 includes; the inability to create a link to /usr/portage/profiles/default-linux/x86/2004.3 make.profile, can only login using xdm and have only the option of the Fail-Safe session to work from.

Also, my profile is not being updated even with repeated attempts to do so. Currently, my bash profile for non-root user; amexus@localhost ~ $ and for root; localhost amexus #.  I am encoutering an error when trying to emerge sync:  !!! /etc/make.profile is not a symlink and will probably prevent most merges.
!!! It should point into a profile within /usr/portage/profiles/
!!! (You can safely ignore this message when syncing. It's harmless.)


!!! ARCH is not set... Are you missing the /etc/make.profile symlink?
!!! Is the symlink correct? Is your portage tree complete?

I have tried to correct this by pointing the link to the specified profiles suggested by the error output to no avail.
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-13 21:39:26 UTC
`ln -s /usr/portage/profiles/default-linux/x86/2004.3 /etc/make.profile` should do the trick. Alternately, `ln -s ../usr/portage/profiles/default-linux/x86/2004.3 /etc/make.profile` if you prefer relative links.
Comment 6 shade266 2005-02-09 17:28:06 UTC
Following the testing of the CFLAGS and gcc; i had a royaly screwed system and the last suggestion posted by Donnie didn't resolve the matter either.

Fortunately the errors were directly my fault and my own error. I didn't pay any attention to the profile my link was pointing to and I unmerged the gcc version I had running initially. But there is more i will update the bug with. As of late i have been pretty busy and haven't had time to update the bug progress.
Comment 7 shade266 2005-02-26 07:52:46 UTC
This bug has not been encountered following 5 test compilations and installs. Possibly I have been out so much I haven't been up to date with patches and code changes etc. 
In conclusion, I have not been able to re-create the bug/issue following 5 attempts to do so. This bug is closed and will be re-opened if required.