Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14778 - Fails to compile kdebase-3.1, internal error and segmentation fault on qevent.h
Summary: Fails to compile kdebase-3.1, internal error and segmentation fault on qevent.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-30 09:37 UTC by Matt Pandina
Modified: 2003-02-06 10:56 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 Matt Pandina 2003-01-30 09:37:26 UTC
User-Agent:       
Build Identifier: 

When I did an emerge --update --deep world, when it tried to compile
kdebase-3.1, it dies and gives me:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.1/include -I/usr/qt/3/include
-I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor
-Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes
-Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
-Wconversion -DNDEBUG -DNO_DEBUG -O2 -march=pentium3 -O3 -pipe -fno-exceptions
-fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST
-D_GNU_SOURCE  -c -o config.o `test -f 'config.cpp' || echo './'`config.cpp
In file included from /usr/qt/3/include/qobject.h:45,
                 from /usr/qt/3/include/qwidget.h:43,
                 from /usr/qt/3/include/qbutton.h:42,
                 from /usr/qt/3/include/qcheckbox.h:42,
                 from config.cpp:24:
/usr/qt/3/include/qevent.h:262: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
make[2]: *** [config.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/kdebase-3.1/work/kdebase-3.1/kpager'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdebase-3.1/work/kdebase-3.1'
make: *** [all] Error 2

!!! ERROR: kde-base/kdebase-3.1 failed.
!!! Function kde_src_compile, Line 88, Exitcode 2
!!! died running emake, kde_src_compile:make

I am not change the recommended CFLAGS, just: CFLAGS="-march=pentium3 -O3 -pipe"

Reproducible: Always
Steps to Reproduce:
1. emerge rsync
2. emerge --update world (currently using KDE 3.05a)
3. during the compile of kdebase-3.1, I get the error described above

Actual Results:  
Refused to compile because of an internal error

Expected Results:  
Given me a shiny new KDE 3.1 system
Comment 1 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-30 21:25:39 UTC
please append the output of 'emerge info' and which qt version you are using. 
Comment 2 Matt Pandina 2003-01-31 09:40:41 UTC
emerge info:
Portage 2.0.46-r9 (default-x86-1.4, gcc-which: no gcc in (/sbin:/bin:/usr/sbin:/usr/bin)
sh: line 1: -dumpversion: command not found, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.19-gentoo-r10 i686 Intel(R) Pentium(R) III CPU family      1133MHz
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt encode gif gpm jpeg libg++ libwww mikmod mmx mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline arts svga java X sdl tcpd pam ssl perl python esd imlib oggvorbis motif opengl mozilla cdr cups dga -gnome -gtk qt kde samba"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-march=pentium3 -O3 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

qt version:
3.1.0-r1
Comment 3 Hannes Mehnert (RETIRED) gentoo-dev 2003-02-02 18:29:21 UTC
segmentation faults during compiling are normally caused by hardware problems like                                                                            
overclocked cpu or bad memory. 
Comment 4 Dan Armak (RETIRED) gentoo-dev 2003-02-03 11:19:50 UTC
It seems your gcc-config is broken (see the first lines of emerge info). I don't know if that has 
anything to do with this issue, but remerge gcc-config and see if it goes away. If it doesn't, try 
remerging gcc, too. Otherwise it's bound to cause trouble sooner or later. 
Comment 5 Matt Pandina 2003-02-03 13:52:00 UTC
I tried emerge gcc-config and emerge gcc, and I still get:

Portage 2.0.46-r9 (default-x86-1.4, gcc-which: no gcc in (/sbin:/bin:/usr/sbin:/usr/bin)
sh: line 1: -dumpversion: command not found, glibc-2.3.1-r2)

as the first two lines of emerge info.

How is it that I can compile things, but gcc is nowhere to be found?

FWIW, everything else (except openoffice-r1) seems to compile fine for me. It is just kdebase-3.1 that bombs.
Comment 6 Matt Pandina 2003-02-03 15:27:01 UTC
After I re-emerged gcc-config and gcc, It is bombing with this:

/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.1/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -march=pentium3 -O3 -pipe -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -D_GNU_SOURCE  -c -o preview.lo `test -f 'preview.cpp' || echo './'`preview.cpp
In file included from /usr/qt/3/include/qwidget.h:49,
                 from /usr/qt/3/include/qdialog.h:42,
                 from preview.h:14,
                 from preview.cpp:11:
/usr/qt/3/include/qsizepolicy.h:112: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
make[3]: *** [preview.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdebase-3.1/work/kdebase-3.1/kcontrol/css'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdebase-3.1/work/kdebase-3.1/kcontrol'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdebase-3.1/work/kdebase-3.1'
make: *** [all] Error 2

!!! ERROR: kde-base/kdebase-3.1 failed.
!!! Function kde_src_compile, Line 115, Exitcode 2
!!! died running emake, kde_src_compile:make

I tried going to that directory and running make, but g++: command not found.
Comment 7 Hannes Mehnert (RETIRED) gentoo-dev 2003-02-05 17:13:59 UTC
which gcc-config and which gcc do you have? 
does 'find / -name g++ -type f' return anything? 
Comment 8 Matt Pandina 2003-02-06 09:22:41 UTC
I opened up the machine (a 1.2 GHz P3), and discovered that someone had installed PC66 memory. I promptly swapped it out for some nice PC133 RAM, and all of my random compile problems went away.

FWIW: Memtest did not report that there was anything wrong with the memory, I suppose that compiling KDE is a bigger workout than Memtest. ;-)

My gcc issues have been resolved, I will now use `su -' instead of just `su'

Thanks to all of you who have helped me with this problem, it's the support of fellow users that truly makes using Gentoo a wonderful experience ! :-D
Comment 9 Hannes Mehnert (RETIRED) gentoo-dev 2003-02-06 10:56:05 UTC
fine :) i'll mark as fixed :)