I've gotten this six times now, on both the above kdebase packages, always at the same command (these are 3.5.6-r1 examples): /bin/sh: line 3: 12194 Segmentation fault /usr/qt/3/bin/uic -L /usr/kde/3.5/lib/kde3/plugins/designer -nounload -t make[4]: *** [main_buttons_widget_ui.cpp] Error 139 make[4]: Leaving directory `/var/tmp/portage/kde-base/kdebase-3.5.6-r1/work/kdebase-3.5.6/khotkeys/kcontrol/ui' make[3]: *** [all-recursive] Error 1 After updating qt (thus uic): /bin/sh: line 3: 9612 Segmentation fault /usr/qt/3/bin/uic -L /usr/kde/3.5/lib/kde3/plugins/designer -nounload -t make[4]: *** [main_buttons_widget_ui.cpp] Error 139 make[4]: Leaving directory `/var/tmp/portage/kde-base/kdebase-3.5.6-r1/work/kdebase-3.5.6/khotkeys/kcontrol/ui' make[3]: *** [all-recursive] Error 1 Googling around, there have been many past cases of uic causing various stuff to segfault on compiling, but I'm not finding a recent incidence of KDE trouble related to it. I've run revdep-rebuild several times. Everything is "system" is up to date (although not on the latest gcc): Portage 2.1.2-r9 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.5-r0, 2.6.14-w4lY i686) ================================================================= System uname: 2.6.14-w4lY i686 AMD Athlon(tm) XP 2500+ Gentoo Base System release 1.12.6 Timestamp of tree: Sun, 11 Feb 2007 23:00:01 +0000 dev-java/java-config: 2.0.31 dev-lang/python: 2.2.3-r6, 2.3.5-r3, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apache2 apm arts berkdb bitmap-fonts cli cracklib crypt cups dlloader dri eds emboss encode esd foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 iconv imlib ipv6 isdnlog jpeg kde libg++ libwww mad mbox midi mikmod motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev vorbis x86 xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv vga vesa fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
It's uic segfaulting. 1) You have silly CFLAGS which could very well be causing all this 2) Who knows what patches you have to your kernel.. 3) You need to update your profile to a 2006.1 profile.. (eselect profile)
Upgrade your toolchain, recompile stuff, use a supported kernel, drop stupid C[XX]FLAGS... http://www.gentoo.org/doc/en/gcc-upgrading.xml If you still have issues then, file a new bug.
Since this was "resolved test-request," and I've done some testing, I'm reopening it. I've cut my flags back to the basics, updated most everything else in world outside of KDE (including the profile), and re-emerged first qt (to have uic emerged with the basic flags), and then attempted kdebase. It still segfaults in the same place: /bin/sh: line 3: 7520 Segmentation fault /usr/qt/3/bin/uic -L /usr/kde/3.5/lib/kde3/plugins/designer -nounload -tr tr2i18n -i main_buttons_widget_ui.h ./main_buttons_widget_ui.ui >main_buttons_widget_ui.cpp.temp This is consistent over three attempts. Now, I have not upgraded gcc past 3.4.6-r2, since going to gcc 4 would require days of rebuilding most everything on the system. If gcc 3.4.6 is no longer supported under Gentoo, I've missed that notice. I also am still running the same kernel, which is nothing more than a stock kernel with the Win4Lin patches. But in 14 years of compiling stuff under Linux I've never seen a compile failure where the kernel was at fault. Have you? An aside on "silly" and "stupid" cflags: my former flags where those which have in the past been generally agreed in the Gentoo forums to be the most sensible and safe for improved performance. Obviously Doug and Jakub, you disagree with that consensus - which is fine, nothing wrong with testing with simpler flags. I can now say for sure it's not the flags. That's a step forward. If you really have cause to suspect the kernel version, I can switch for the purpose of compilation testing. Nothing else has failed among hundreds of compilations under this kernel, so I'll bet that's not it. But I can be wrong. If you really don't like gcc-3.4.6 - well, isn't that still the official version for Gentoo Hardened? Seems to me like current packages should be required to compile cleanly under any of the last several gcc versions. Here's the current emerge --info: Portage 2.1.2.2 (default-linux/x86/2006.1, gcc-3.4.6, glibc-2.5-r0, 2.6.14-w4lY i686) ================================================================= System uname: 2.6.14-w4lY i686 AMD Athlon(tm) XP 2500+ Gentoo Base System release 1.12.9 Timestamp of tree: Tue, 13 Mar 2007 16:00:01 +0000 dev-java/java-config: 1.3.7, 2.0.31 dev-lang/python: 2.2.3-r6, 2.3.5-r3, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr /kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/c onfig /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php4/ext-active/ /etc /php/apache2-php4/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cli-php4/ext-active/ /etc/revdep-rebuild /etc/termi nfo /etc/texmf/web2c" CXXFLAGS="-march=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-a fter --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="alsa berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog libg++ mbox midi ncurses n ls nptl nptlonly pam pcre perl ppds pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts unic ode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGI NS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw mult i null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayra d cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv vga vesa fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_ COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
(In reply to comment #3) > Since this was "resolved test-request," and I've done some testing, I'm > reopening it. We really don't care much unless you can reproduce this w/ gcc-4.1, already told you once to upgrade your toolchain. http://www.gentoo.org/doc/en/gcc-upgrading.xml
Jakub, Please let someone else evaluate this. I know from long experience with you that you "really don't care much" about anything but closing bug reports on any excuse you can find that doesn't involve anyone actually fixing the bugs reported. Or at least answer my specific question: Does Gentoo still support gcc 3.4.6 or not? Because it's still in portage, and everything else in my current "world" builds fine with it except kdebase. So what's the official policy on gcc 3.4.6 support? If the policy is to support it still, then this bug report should be addressed, not shuffled aside.
Please cd to /var/tmp/portage/kde-base/kdebase-3.5.6-r1/work/kdebase-3.5.6/khotkeys/kcontrol/ui and run the uic command line manually. Does it segfault again? (It should.) If it does, please strace it and attach a log to this bug. (And please refrain from attacking other devs.)
Wulf, Appreciate your engaging this. No segfault here, either from just running "uic" there (which just waits), or in running the line that was reported with the segfault in the ebuild: /var/tmp/portage/kde-base/kdebase-3.5.6-r1/work/kdebase-3.5.6/khotkeys/kcontrol/ui # /usr/qt/3/bin/uic -L /usr/kde/3.5/lib/kde3/plugins/designer -nounload -t Qt user interface compiler. uic: Unrecognized option [then the syntax specs] Is there some other way you want that entered? (The other developers were disrespectful first - just saying.)
Sorry, this somehow escaped my attention. Is this still a problem with 3.5.6-r3 or 3.5.7?
I maintain a system at work using GCC 3.4 to build everything and KDE has no problems there. Some CFLAGS applied globally can cause segfaults and with things like this everything that links to the binary segfaulting can also cause issues. You can also get issues if a big compile is causing heating issues or revealing a problem with RAM - I have encountered this once or twice in the past... I have not been able to reproduce your issues on my GCC 3.4 system or my GCC 4.1 systems. I personally would recommend upgrading your toolchain and rebuilding world with safer CFLAGS. It is not enough to just rebuild qt but these issues can be tough to track down. If we cannot replicate them then it makes it very hard to be certain it is not something like a hardware issue or side effect of aggressive CFLAGS. It has been nearly a month since Wulf asked for more details - please reopen if this is still an issue with KDE 3.5.7.