View previous topic :: View next topic |
Author |
Message |
darkphader Veteran
Joined: 09 May 2002 Posts: 1217 Location: Motown
|
Posted: Fri Jul 16, 2004 7:45 pm Post subject: xorg-x11 crashes when compiled with gcc 3.4 |
|
|
If I compile xorg-x11 with gcc-3.3 it works fine but when compiled with gcc-3.4 it always crashes after starting up. When trying to start kde I receive "Can't contact kdeinit!", but it's not just kde, none of the window managers will stay running if I compile xorg-x11 with gcc-3.4.
Wondering if anyone else is seeing this problem and if there's a cure.
Thanks.
Chris _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
|
Halcy0n Developer
Joined: 17 Sep 2003 Posts: 1682 Location: Freehold, NJ
|
Posted: Fri Jul 16, 2004 8:00 pm Post subject: |
|
|
I have not experienced this problem yet. What CFLAGS are you using? Did you try recompiling everything with 3.4? _________________ Mark Loeser
http://www.halcy0n.com |
|
Back to top |
|
|
darkphader Veteran
Joined: 09 May 2002 Posts: 1217 Location: Motown
|
Posted: Fri Jul 16, 2004 8:48 pm Post subject: |
|
|
Code: | CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -fforce-mem -fforce-addr -pipe -s" |
No I haven't compiled everything with GCC 3.4. Although I have compiled virtually everything that would succesfully compile with it since installing it some time ago (been keeping the reasonably system up-to-date, maybe even a little bleeding edge). _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
|
nx12 Apprentice
Joined: 14 Jan 2004 Posts: 193
|
Posted: Sat Jul 17, 2004 12:13 am Post subject: |
|
|
I have xorg compiled with gcc-3.4.1 and glibc-2.3.4. I don't remember exectly the problems I had, but after I emerged gcc, I emerged new glibc, then ran all the update scripts and re-emerged new gcc and glibc again...
Though it's not a nice way to do things, but it worked. _________________ signature sucks |
|
Back to top |
|
|
pkdawson Retired Dev
Joined: 16 Jul 2004 Posts: 146 Location: Long Island or Buffalo, NY
|
Posted: Sat Jul 17, 2004 4:45 am Post subject: |
|
|
On my bootstrapped-with-3.4.1 system, xorg-x11 is extremely unstable, especially using the nvidia driver. It consistently crashes when I try to start KDE or Gaim. Fluxbox works okay, though. With the nv driver, it seems a little more stable, but again always crashes if I try to start Kolf (for example).
My CFLAGS are very conservative.
Code: | CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" |
So what display driver is everyone using? |
|
Back to top |
|
|
stonent Veteran
Joined: 07 Aug 2003 Posts: 1139 Location: Texas
|
Posted: Sat Jul 17, 2004 5:38 am Post subject: |
|
|
No problems here 3.4.0.
CFLAGS="-march=pentium3 -O2 -pipe -ffast-math -fomit-frame-pointer -mfpmath=387,sse -ftracer -fforce-addr"
Kernel 2.6.3 headers _________________ Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism. |
|
Back to top |
|
|
Deepu Sudhakar Tux's lil' helper
Joined: 30 Aug 2003 Posts: 84
|
Posted: Sat Jul 17, 2004 6:44 am Post subject: |
|
|
I also have stability problems in X with nvidia using GCC 3.4.x. At first I thought it was a dependency problem so I re-emerged everything but it didn't work. I just started from scratch today, and I find that most desktop environments crash except fluxbox. Fluxbox is pretty minimal so I think it is some type of dependency problem. Reading the logs only tells me that xorg is causing some IO error, and it isn't too descriptive. I hope someone can find the issue here. |
|
Back to top |
|
|
darkphader Veteran
Joined: 09 May 2002 Posts: 1217 Location: Motown
|
Posted: Sat Jul 17, 2004 4:31 pm Post subject: |
|
|
Deepu Sudhakar wrote: | I also have stability problems in X with nvidia using GCC 3.4.x. |
Just to add that I'm using nvidia as well. Maybe it's the combination (xorg-x11 + gcc-3.4.x + nvidia) where the lack of stability is fully realized. _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
|
Deepu Sudhakar Tux's lil' helper
Joined: 30 Aug 2003 Posts: 84
|
Posted: Sat Jul 17, 2004 4:38 pm Post subject: |
|
|
I'll see if I can just recompile xorg-x11 with 3.3.3, and see if the staiblity problems go away. |
|
Back to top |
|
|
darkphader Veteran
Joined: 09 May 2002 Posts: 1217 Location: Motown
|
Posted: Sat Jul 17, 2004 4:57 pm Post subject: |
|
|
Deepu Sudhakar wrote: | I'll see if I can just recompile xorg-x11 with 3.3.3, and see if the staiblity problems go away. |
That works for me (and has worked in the past as well). _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
|
pkdawson Retired Dev
Joined: 16 Jul 2004 Posts: 146 Location: Long Island or Buffalo, NY
|
Posted: Sat Jul 17, 2004 10:20 pm Post subject: |
|
|
darkphader wrote: | Just to add that I'm using nvidia as well. Maybe it's the combination (xorg-x11 + gcc-3.4.x + nvidia) where the lack of stability is fully realized. |
Interesting, looks like nvidia is indeed the common factor with us. Have you guys tried using nv?
And is anyone who has it working using nvidia?
Oh, and I assume we're all using x86, since this wasn't posted in the amd64 forum, right?
Last edited by pkdawson on Sat Jul 17, 2004 10:26 pm; edited 1 time in total |
|
Back to top |
|
|
Deepu Sudhakar Tux's lil' helper
Joined: 30 Aug 2003 Posts: 84
|
Posted: Sat Jul 17, 2004 10:25 pm Post subject: |
|
|
I wouldn't blame it on nvidia...
I just compiled my xorg-x11 with gcc 3.3.3, and left the rest of my system as 3.4 compiled. Everything runs smoothly now. I'd think xorg-x11 is the culprit. |
|
Back to top |
|
|
pkdawson Retired Dev
Joined: 16 Jul 2004 Posts: 146 Location: Long Island or Buffalo, NY
|
Posted: Sat Jul 17, 2004 10:26 pm Post subject: |
|
|
Deepu Sudhakar wrote: | I wouldn't blame it on nvidia...
I just compiled my xorg-x11 with gcc 3.3.3, and left the rest of my system as 3.4 compiled. Everything runs smoothly now. I'd think xorg-x11 is the culprit. |
But obviously other people have xorg-x11 with 3.4.x working. It seems to be a combination of nvidia and xorg. |
|
Back to top |
|
|
Deepu Sudhakar Tux's lil' helper
Joined: 30 Aug 2003 Posts: 84
|
Posted: Sat Jul 17, 2004 10:40 pm Post subject: |
|
|
pkdawson wrote: | Deepu Sudhakar wrote: | I wouldn't blame it on nvidia...
I just compiled my xorg-x11 with gcc 3.3.3, and left the rest of my system as 3.4 compiled. Everything runs smoothly now. I'd think xorg-x11 is the culprit. |
But obviously other people have xorg-x11 with 3.4.x working. It seems to be a combination of nvidia and xorg. |
I see...but there's no way to track this problem since no errors are being spitted out (it's just abrupt breaks). |
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
Posted: Sat Jul 17, 2004 10:40 pm Post subject: |
|
|
I have my complete system compiled with gcc-3.4.0 and have no problems with xorg and kde-3.3.0-beta1, using Matrox... _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
Back to top |
|
|
pkdawson Retired Dev
Joined: 16 Jul 2004 Posts: 146 Location: Long Island or Buffalo, NY
|
Posted: Sat Jul 17, 2004 11:34 pm Post subject: |
|
|
Deepu Sudhakar wrote: | I see...but there's no way to track this problem since no errors are being spitted out (it's just abrupt breaks). |
Yeah, that's the problem
I've heard of a test suite for xorg, but I don't know where to find it. |
|
Back to top |
|
|
nagzi n00b
Joined: 29 Dec 2003 Posts: 37 Location: Canada
|
Posted: Sun Jul 18, 2004 4:46 pm Post subject: |
|
|
Just to add to the topic, I'm having similiar problems. Using the nvidia drivers, xorg crashes at some point loading my desktop (I use gnome). However, if I login in as root it loads just fine but it crashes if I start trying to do sometime, like clicking on an object. I switched over to the nv drivers and I haven't had any probs yet.
I'm running xorg-x11-6.7.0-r2, nvidia 6106 drivers, and gcc 3.4.1.
xfree was running just perfectly fine under that setup.
PS: Incase anyone wants/needs to know, my entire system is compiled with 3.4.1. |
|
Back to top |
|
|
Deepu Sudhakar Tux's lil' helper
Joined: 30 Aug 2003 Posts: 84
|
Posted: Sun Jul 18, 2004 5:02 pm Post subject: |
|
|
So do we post a bug report for the nvidia drivers? |
|
Back to top |
|
|
robmoss Retired Dev
Joined: 27 May 2003 Posts: 2634 Location: Jesus College, Oxford
|
Posted: Sun Jul 18, 2004 8:00 pm Post subject: |
|
|
No, I don't think it's anything to do with the nvidia drivers. The common factor is something else. Can all those who are having stability problems please post the output of "emerge info"? _________________ Reality is for those who can't face Science Fiction.
emerge -U will kill your Gentoo
ecatmur, Lord of Portage Bash Scripts |
|
Back to top |
|
|
pkdawson Retired Dev
Joined: 16 Jul 2004 Posts: 146 Location: Long Island or Buffalo, NY
|
Posted: Sun Jul 18, 2004 9:10 pm Post subject: |
|
|
Why not, rob? Can you (or someone you know) run xorg/nvidia/gcc34 without problems?
Here's mine:
Code: | Portage 2.0.51_pre13 (default-x86-2004.0, gcc-3.4.1, glibc-2.3.4.20040619-r0, 2.6.7 i686 )
=================================================================
System uname: 2.6.7 i686
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.mirrored.ca/ http://mirrors.acm.cs.rpi.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.1.100/portage"
USE="X X509 aac acpi aim alsa apache2 apm arts audiofile avi berkdb cdr crypt cups dga divx4linux dvd encode esd fbcon flac foomaticdb freetype gcj gdbm gif gimp gnome gpm gtk gtk2 guile icq imlib inetd jack java jikes jpeg junit kde libg++ libwww mad mikmod mmx mng motif mpeg mpeg4 mplayer ncurses nls oggvorbis opengl oscar oss pam pdflib perl png python qt quicktime readline samba sdl slang sndfile speex spell sse ssl svg svga tcltk tcpd theora tiff truetype usb v4l v4l2 wmf x86 xml xml2 xmms xv xvid zlib" |
The whole system is built with gcc-3.4.1.
Again, switching from nvidia to nv led to a huge stability increase for me.
Last edited by pkdawson on Sun Jul 18, 2004 9:13 pm; edited 1 time in total |
|
Back to top |
|
|
sindre Guru
Joined: 01 Nov 2002 Posts: 315 Location: Norway
|
Posted: Sun Jul 18, 2004 9:12 pm Post subject: |
|
|
Are everyone with problems using -march=pentium4? How about trying to compile xorg with CFLAGS="", just to see if CFLAGS are related to the problem. |
|
Back to top |
|
|
pkdawson Retired Dev
Joined: 16 Jul 2004 Posts: 146 Location: Long Island or Buffalo, NY
|
Posted: Sun Jul 18, 2004 9:14 pm Post subject: |
|
|
sindre wrote: | Are everyone with problems using -march=pentium4? How about trying to compile xorg with CFLAGS="", just to see if CFLAGS are related to the problem. |
Worth a shot. Recompiling now. |
|
Back to top |
|
|
pkdawson Retired Dev
Joined: 16 Jul 2004 Posts: 146 Location: Long Island or Buffalo, NY
|
Posted: Sun Jul 18, 2004 10:33 pm Post subject: |
|
|
I don't believe it. I just did:
Code: | CFLAGS="" CXXFLAGS="" USE="-mmx -sse" emerge xorg-x11 |
And now I'm running it with KDE and nvidia...no crash. I'll try to narrow it down by tomorrow.
Thanks for the tip! |
|
Back to top |
|
|
pkdawson Retired Dev
Joined: 16 Jul 2004 Posts: 146 Location: Long Island or Buffalo, NY
|
Posted: Mon Jul 19, 2004 1:07 am Post subject: |
|
|
My results so far:
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
USE="+mmx +sse"
CRASH
CFLAGS="-march=pentium4"
USE="-mmx -sse"
OK
CFLAGS="-march=pentium4"
USE="+mmx +sse"
OK
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
USE="-mmx -sse"
CRASH
CFLAGS="-O2 -march=pentium4"
USE="-mmx -sse"
CRASH
CFLAGS="-O2 -march=pentium3"
USE="-mmx -sse"
OK
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
USE="+mmx +sse"
OK
Conclusion(s) thus far:
- pentium4 and O2 don't mix
I'll keep updating this post until I have enough data to suggest a solution.
Last edited by pkdawson on Mon Jul 19, 2004 3:48 pm; edited 3 times in total |
|
Back to top |
|
|
MikeP Tux's lil' helper
Joined: 27 Feb 2003 Posts: 115 Location: Germany
|
Posted: Mon Jul 19, 2004 2:08 am Post subject: |
|
|
well, i got stability probs too with xorg, gcc3.4.x, nvidia and -march=pentium4 -O2 -fomit-frame-pointer -pipe.
One example is when i start gcalctool X instantly crashes.
The problem was gone when i changed march to pentium3.
Nevertheless now its still a bit unstable, at least since im using the latest 6xxx nvidia drivers.. X tends to hang with 100% cpu usage when i play videos with mplayer quite often for example, though it happened while browsing with firefox too..
To finally get rid of this i changed the X driver to nv and got a perfectly stable system again now. (i don't need 3d most of the time, though yeah it should work..)
as it is more stable with march=pentium3 and worked with gcc3.3.x it sounds like a gcc3.4.x problem, either a bug or compatibility issue :/
Code: | root# emerge info
Portage 2.0.50-r9 (default-x86-1.4, gcc-3.4.1, glibc-2.3.4.20040619-r0, 2.6.7)
=================================================================
System uname: 2.6.7 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acl acpi alsa apm avi berkdb bonobo cdr crypt cups dvb dvd encode foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg kde libg++ libwww mad mikmod mmx motif mpeg mysql ncurses nls nptl oggvorbis opengl pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib" |
|
|
Back to top |
|
|
|