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

Bug 19909

Summary: I can't compile kdebase, gcc somehow segfaults.
Product: Gentoo Linux Reporter: Nir Peled <adslfixtalnir>
Component: [OLD] GCC PortingAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED DUPLICATE    
Severity: critical CC: kde
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nir Peled 2003-04-24 23:22:06 UTC
Well. 3 days ago I installed gentoo.
I really like it so far except some problems I'm having.
I was trying to emerge kde and I got this error while compiling kdebase:

URCE  -c -o configdialog.lo `test -f 'configdialog.cpp' || echo
'./'`configdialog.cpp
toplevel.cpp:701: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [toplevel.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/kdebase-3.1.1a/work/kdebase-3.1.1/klipper'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdebase-3.1.1a/work/kdebase-3.1.1'
make: *** [all] Error 2
!!! ERROR: kde-base/kdebase-3.1.1a failed.
!!! Function kde_src_compile, Line 123, Exitcode 2
!!! died running emake, kde_src_compile:mak


That error occoured before and after I compiled gcc.
I just don't know what to do. I also asked the #gentoo team on the freenode
network (IRC), and they stumped, until someone told me it might be a bug.
Could you please check this and maybe even get back to me?

I appreciate it, thanks.

Nir Peled.

Reproducible: Always
Steps to Reproduce:
1. emerge kde
Actual Results:  
URCE  -c -o configdialog.lo `test -f 'configdialog.cpp' || echo
'./'`configdialog.cpp
toplevel.cpp:701: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [toplevel.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/kdebase-3.1.1a/work/kdebase-3.1.1/klipper'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdebase-3.1.1a/work/kdebase-3.1.1'
make: *** [all] Error 2
!!! ERROR: kde-base/kdebase-3.1.1a failed.
!!! Function kde_src_compile, Line 123, Exitcode 2
!!! died running emake, kde_src_compile:mak

Expected Results:  
Work? :)
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-27 07:28:32 UTC
Problems of gcc segfaulting could be because of multiple reasons.

1)  Run memtest86 with all tests and all addresses switched on (in config)

2)  Check that you have at least 250mb of swap, especially when you have less
    then 128mb of ram.

3)  Check for enough disk space.

4)  Check that you do not overclock, or that cpu do not overheat.


Also please include the output of 'emerge  info'
Comment 2 Nir Peled 2003-04-27 08:47:40 UTC
First of all. Thanks for the reply. 
1) I did run memtest86. 
2) 
 
              total       used       free     shared    buffers     cached 
Mem:        385012     236644     148368          0      43852     105640 
-/+ buffers/cache:      87152     297860 
Swap:       489940          0     489940 
 
3) see 2. :) 
4) No, I replaced my fan a month ago and everything is fine. 
 
No one seems to know how to fix that. 
Anyways... here's my emerge info: 
 
System uname: 2.4.20 i686 Pentium III (Coppermine) 
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ 
http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/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 cups jpeg libg++ mikmod mmx mpeg ncurses nls pdflib 
png quicktime spell truetype xml2 xv zlib gdbm berkdb slang readline svga tcltk java 
guile sdl gpm tcpd pam libwww perl python esd imlib oggvorbis qt motif opengl mozilla 
cdr X arts ssl crypt kde encode ethereal flash gd gif gnome gtk xmms ipv6 voodoo3 
-xlm" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-O3 -march=pentium3 -pipe" 
CXXFLAGS="-O3 -march=pentium3 -pipe" 
ACCEPT_KEYWORDS="x86 ~x86" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache" 
 
 
 
 
Comment 3 Garen 2003-04-27 14:42:39 UTC
When the build fails, go back to the directory where it's being built and reproduce the last 
command that failed, except add "-save-temps" to the gcc command set.  That will generate a 
pre-processed .i or .ii file.  Post that here along with the complete command line and your 
CFLAGS.  Other people can then use that to see if it is easily reproducible.  If so, it's a 
compiler bug and you can go move the bug to gcc.  If not, the problem is on your end 
somewhere. 
 
Comment 4 Paul de Vrieze (RETIRED) gentoo-dev 2003-05-07 16:59:02 UTC

*** This bug has been marked as a duplicate of 20600 ***