When emerging qt: In file included from .moc/release-shared/../../previewwidget.h:27, from .moc/release-shared/../../previewframe.h:27, from .moc/release-shared/../../ui_mainwindowbase.h:52, from .moc/release-shared/../../mainwindowbase.h:27, from .moc/release-shared/../../mainwindow.h:27, from .moc/release-shared/moc_mainwindow.cpp:10: .moc/release-shared/../../previewwidgetbase.h:27:34: error: ui_previewwidgetbase.h: No such file or directory .moc/release-shared/../../previewwidgetbase.h:30: error: 'Ui' has not been declared .moc/release-shared/../../previewwidgetbase.h:30: error: expected `{' before 'PreviewWidgetBase' .moc/release-shared/../../previewwidgetbase.h:30: error: invalid function declaration .moc/release-shared/../../previewwidget.h:29: error: invalid use of undefined type 'class PreviewWidgetBase' .moc/release-shared/../../previewwidgetbase.h:30: error: forward declaration of 'class PreviewWidgetBase' .moc/release-shared/../../previewwidget.h:30: warning: 'class PreviewWidget' has virtual functions but non-virtual destructor emerge --info: r0, 2.6.18-mm2 x86_64) ================================================================= System uname: 2.6.18-mm2 x86_64 Dual Core AMD Opteron(tm) Processor 275 Gentoo Base System version 1.12.5 Last Sync: Thu, 26 Oct 2006 19:00:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 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.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=opteron -O3 -ftracer -funit-at-a-time -funswitch-loops -fprefetch-loop-arrays -ggdb -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" 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=opteron -O3 -ftracer -funit-at-a-time -funswitch-loops -fprefetch-loop-arrays -ggdb -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg ccache collision-protect confcache distcc distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userfetch userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US" LINGUAS="en en_US" MAKEOPTS="-j5 -l3" PKGDIR="/var/packages/x86_64-pc-linux-gnu/opteron" PORTAGE_RSYNC_EXTRA_OPTS="--progress" 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" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://10.0.0.2/gentoo-portage" USE="amd64 X a52 aac acl acpi akode alsa amr apm arts asf async audiofile bash-completion berkdb bidi bitmap-fonts bl browserplugin bzip2 cairo caps cdda cddb cdparanoia cdr cli cracklib crypt cscope css cups dbus dga directfb dlloader dri dts dv dvb dvd dvdr dvdread edl elf elibc_glibc emacs emboss encode esd fam fame fbcon ffmpeg firefox flac foomaticdb fortran fuse gcc64 gd gdbm gif gimp gmp gnutls gphoto2 gpm gs gssapi gstreamer gtk gtk2 guile hal howl idn ieee1394 ifp imagemagick imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jbig jce jpeg junit kde kdeenablefinal kerberos kernel_linux kqemu krb4 l7filter lcms lesstif libg++ linguas_en linguas_en_US live lm_sensors logitech-mouse lzo mad matroska mikmod mjpeg mng mod modplug motif mozilla mp3 mpeg mplayer multiuser musepack musicbrainz ncurses new-login nls nolvm1 nptl nptlonly nsplugin odbc offensive ogg oggvorbis openal opengl openntpd oss pam pam_chroot pcre pda pdf perl png postgres ppds pppd python qt3 qt4 quicktime rar rdesktop readline reflection rtc samba sasl sblive scanner screen sdl session shout slp smp sndfile snmp speex spell spl ssl stream subtitles svg syslog tcltk tcpd tetex tga theora threads tidy tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l v4l2 vcd video_cards_nv video_cards_nvidia video_cards_vesa visualization vlm vorbis vorbis-psy wmf x264 xanim xcomposite xine xinerama xml xml2 xorg xosd xpm xprint xscreensaver xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS
Same error without distcc. Changing MAKEOPTS to "-j1" allows the merge. Possibly push to upstream?
You might want to make them aware at qt-bugs@trolltech.com, but they're working more on the 4.2.x series now and it may be fixed there already.
Still a problem in qt-4.2.1: In file included from ./previewwidget.h:27, from ./previewframe.h:27, from .uic/release-shared/ui_mainwindowbase.h:61, from .moc/release-shared/../../mainwindowbase.h:27, from .moc/release-shared/../../mainwindow.h:27, from .moc/release-shared/moc_mainwindow.cpp:10: ./previewwidgetbase.h:27:34: error: ui_previewwidgetbase.h: No such file or directory In file included from ./previewwidget.h:27, from ./previewframe.h:27, from .uic/release-shared/ui_mainwindowbase.h:61, from .moc/release-shared/../../mainwindowbase.h:27, from .moc/release-shared/moc_mainwindowbase.cpp:10: ./previewwidgetbase.h:27:34: error: ui_previewwidgetbase.h: No such file or directory ./previewwidgetbase.h:30: error: 'Ui' has not been declared ./previewwidgetbase.h:30: error: expected `{' before 'PreviewWidgetBase' ./previewwidgetbase.h:30: error: invalid function declaration ./previewwidget.h:29: error: invalid use of undefined type 'class PreviewWidgetBase' ./previewwidgetbase.h:30: error: forward declaration of 'class PreviewWidgetBase' ./previewwidget.h:30: warning: 'class PreviewWidget' has virtual functions but non-virtual destructor make[2]: *** [.obj/release-shared/moc_mainwindow.o] Error 1 make[2]: *** Waiting for unfinished jobs.... ./previewwidgetbase.h:30: error: 'Ui' has not been declared ./previewwidgetbase.h:30: error: expected `{' before 'PreviewWidgetBase' ./previewwidgetbase.h:30: error: invalid function declaration ./previewwidget.h:29: error: invalid use of undefined type 'class PreviewWidgetBase' ./previewwidgetbase.h:30: error: forward declaration of 'class PreviewWidgetBase' ./previewwidget.h:30: warning: 'class PreviewWidget' has virtual functions but non-virtual destructor make[2]: *** [.obj/release-shared/moc_mainwindowbase.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/x11-libs/qt-4.2.1/work/qt-x11-opensource-src-4.2.1/tools/qtconfig' make[1]: *** [sub-qtconfig-all-ordered] Error 2 make[1]: Leaving directory `/var/tmp/portage/x11-libs/qt-4.2.1/work/qt-x11-opensource-src-4.2.1/tools' make: *** [sub-tools-all-ordered] Error 2 make: INTERNAL: Exiting with 6 jobserver tokens available; should be 5! !!! ERROR: x11-libs/qt-4.2.1 failed. Call stack: ebuild.sh, line 1568: Called dyn_compile ebuild.sh, line 937: Called src_compile qt-4.2.1.ebuild, line 199: Called die Also, I've reported this up to qt-bugs at trolltech and I think it's being worked as Issue N138250.
> MAKEOPTS="-j5 -l3" Replying to myself... I'm not sure -l is supported by Gentoo in MAKEOPTS; and in any case, dropping the -l option (but leaving -j5) allows a successful build of qt. I'm going to resolve as invalid, but please reopen if MAKEOPTS containing a -l option is supported by Gentoo. Sorry for the noise. *shamed*