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

Bug 26713

Summary: cannot emerge kdelibs-3.1.3 or 3.1.3-r1, segmentation fault running emake
Product: Gentoo Linux Reporter: kaizar
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED CANTFIX    
Severity: blocker CC: kch
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description kaizar 2003-08-16 06:48:25 UTC
this is the error message i get when i try to emerge kdelibs:
____________________________________________________________________

kdatarequest_impl.cpp: In constructor 
   `Arts::KDataRequest_impl::KDataRequest_impl()':
kdatarequest_impl.cpp:30: 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]: *** [kdatarequest_impl.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/var/tmp/portage/kdelibs-3.1.3-r1/work/kdelibs-3.1.3/arts/kde'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/kdelibs-3.1.3-r1/work/kdelibs-3.1.3/arts'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.1.3-r1/work/kdelibs-3.1.3'
make: *** [all] Error 2

!!! ERROR: kde-base/kdelibs-3.1.3-r1 failed.
!!! Function kde_src_compile, Line 137, Exitcode 2
!!! died running emake, kde_src_compile:make
________________________________________________________

I had the same problem emerging kdelibs even using the source provided by
www.kde.org instead of the one in the portage, and i had the same problem even
without using the emerge command and compiling it manually (with configure,
make, and make install)

Reproducible: Always
Steps to Reproduce:
1.emerge kdelibs


Actual Results:  
the emerge started but after a while crashed saying: 
!!! ERROR: kde-base/kdelibs-3.1.3-r1 failed.
!!! Function kde_src_compile, Line 137, Exitcode 2
!!! died running emake, kde_src_compile:make

Expected Results:  
correctly emerge.

#emerge info

Portage 2.0.48-r7 (default-x86-1.4, gcc-3.2.3, glibc-2.2.5-r2,2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) XP 1700+
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
ftp://mirror.iawnet.sandia.gov/pub/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /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="/usr/local/portage"
USE="x86 apm avi crypt encode foomaticdb kde gnome libg++ libwww mad mikmod mpeg
ncurses nls pdflib quicktime spell truetype xml2 xmms zlib gdbm berkdb slang
readline arts ggi tcltk guile tcpd pam ssl perl python esd imlib gtk qt motif
mozilla cdr X cups radeon ati dvd gtk2 png java gpm sdl opengl gif jpeg mmx sse
3dnow tiff alsa xv vesa oggvorbis svga oss -sis -rage128 -matrox -3dfx -gamma
-i8x0"COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Chris Bruner 2003-08-20 21:18:44 UTC
I had a fail too, but with slightly different results. 
During the link phase: 
 
libtool: link: warning: `-version-info' is ignored for programs 
.libs/kstartupinfo.o: file not recognized: File format not recognized 
collect2: ld returned 1 exit status 
make[3]: *** [libkdecore.la.closure] Error 1 
make[3]: Leaving directory 
`/var/tmp/portage/kdelibs-3.1.3-r1/work/kdelibs-3.1.3                  
/kdecore' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory 
`/var/tmp/portage/kdelibs-3.1.3-r1/work/kdelibs-3.1.3                  
/kdecore' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory 
`/var/tmp/portage/kdelibs-3.1.3-r1/work/kdelibs-3.1.3                  ' 
make: *** [all] Error 2 
 
Comment 2 kaizar 2003-08-21 00:23:00 UTC
up to now i've tried the following gcc optimizations with no results:
1) CFLAGS="-march=athlon-xp -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-loop-opt -frerun-cse-after-loop -falign-functions=4"

2) #CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"

3) #CFLAGS="-march=athlon-xp -O2 -pipe"

4) #CFLAGS="-march=athlon-xp -Os -pipe"

5) #CFLAGS="-mcpu=athlon-xp -O3 -pipe

6) #CFLAGS="-mcpu=athlon-xp -O2 -pipe"

7) #CFLAGS="-mcpu=athlon-xp -Os"

8) #CFLAGS="-mcpu=athlon -O3 -pipe"

9) #CFLAGS="-mcpu=athlon -O2 -pipe"

10) #CFLAGS="-mcpu=athlon -Os"

11) #CFLAGS="-mcpu=i686 -O2 -pipe" (which is the default for my make.global and  the one that made me install the Qt libraries, which had given me compile error too)



Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2003-08-26 07:43:03 UTC
Do you use distcc?  Try changing your makeopts to -j1 and see if that helps out or not. 
 
 
Comment 4 kaizar 2003-08-28 00:30:02 UTC
i don't use distcc. should i change my makeopts anyway? where do i write the -j1 option?
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2003-08-28 06:35:43 UTC
It's in /etc/make.conf as MAKEOPTS 
 
 
Comment 6 kaizar 2003-09-03 05:48:15 UTC
i tried with
CFLAGS="-mcpu=i686 -O2 -pipe"
and 
MAKEOPTS="-j1"

but it returned this error
test -f 'slavebase.cpp' || echo './'`slavebase.cpp

Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
...
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2003-10-02 08:49:44 UTC
Dunno what to say here...if you're getting it even outside of portage then
it must be a gcc problem.  Try upgrading?