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
please append the output of 'emerge info' and which qt version you are using.
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
segmentation faults during compiling are normally caused by hardware problems like overclocked cpu or bad memory.
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.
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.
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.
which gcc-config and which gcc do you have? does 'find / -name g++ -type f' return anything?
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
fine :) i'll mark as fixed :)