When emerging x11-libs/qt-3.3.8b qt fails with the following error. Compiling it without the doc-useflag makes it compile just fine. USE="cups doc* ipv6 opengl sqlite xinerama -debug -examples (-firebird) -immqt -immqt-bc -mysql -nas -nis -odbc -postgres" are the use-flags being used upon failure. x86_64-pc-linux-gnu-g++ -c -pipe -fno-exceptions -w -march=athlon64 -O2 -pipe -fno-strict-aliasing -D_REENTRANT -DQT_INTERNAL_NETWORK -DQT_INTERNAL_XML -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/var/tmp/portage/x11-libs/qt-3.3.8b-r2/work/qt-x11-free-3.3.8b/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I../../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/moc_mainwindow.o .moc/release-shared-mt/moc_mainwindow.cpp x86_64-pc-linux-gnu-g++ -c -pipe -fno-exceptions -w -march=athlon64 -O2 -pipe -fno-strict-aliasing -D_REENTRANT -DQT_INTERNAL_NETWORK -DQT_INTERNAL_XML -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/var/tmp/portage/x11-libs/qt-3.3.8b-r2/work/qt-x11-free-3.3.8b/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I../../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/mainwindow.o mainwindow.cpp In file included from mainwindow.cpp:46: helpdialogimpl.h:37:24: error: helpdialog.h: No such file or directory In file included from mainwindow.cpp:46: helpdialogimpl.h:91: error: expected class-name before ���{��� token In file included from mainwindow.cpp:48: mainwindow.ui.h: In member function ���virtual void MainWindow::init()���: mainwindow.ui.h:82: error: no matching function for call to ���QDockWindow::setWidget(HelpDialog*&)��� ../../include/qdockwindow.h:97: note: candidates are: virtual void QDockWindow::setWidget(QWidget*) mainwindow.ui.h: In member function ���virtual void MainWindow::setup()���: mainwindow.ui.h:130: error: no matching function for call to ���MainWindow::connect(QAction*&, const char [13], HelpDialog*&, const char [15])��� ../../include/qobject.h:119: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*) ../../include/qobject.h:229: note: bool QObject::connect(const QObject*, const char*, const char*) const mainwindow.ui.h:132: error: no matching function for call to ���MainWindow::connect(HelpDialog*&, const char [28], MainWindow* const, const char [28])��� ../../include/qobject.h:119: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*) ../../include/qobject.h:229: note: bool QObject::connect(const QObject*, const char*, const char*) const mainwindow.ui.h:134: error: no matching function for call to ���MainWindow::connect(HelpDialog*&, const char [54], MainWindow* const, const char [53])��� ../../include/qobject.h:119: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*) ../../include/qobject.h:229: note: bool QObject::connect(const QObject*, const char*, const char*) const mainwindow.ui.h:156: error: no matching function for call to ���QAccel::connectItem(int, HelpDialog*&, const char [18])��� ../../include/qaccel.h:76: note: candidates are: bool QAccel::connectItem(int, const QObject*, const char*) mainwindow.ui.h:158: error: no matching function for call to ���QAccel::connectItem(int, HelpDialog*&, const char [15])��� ../../include/qaccel.h:76: note: candidates are: bool QAccel::connectItem(int, const QObject*, const char*) mainwindow.ui.h:160: error: no matching function for call to ���QAccel::connectItem(int, HelpDialog*&, const char [19])��� ../../include/qaccel.h:76: note: candidates are: bool QAccel::connectItem(int, const QObject*, const char*) mainwindow.ui.h:162: error: no matching function for call to ���QAccel::connectItem(int, HelpDialog*&, const char [16])��� ../../include/qaccel.h:76: note: candidates are: bool QAccel::connectItem(int, const QObject*, const char*) mainwindow.ui.h:168: error: ���class HelpDialog��� has no member named ���tabWidget��� mainwindow.ui.h: In member function ���virtual void MainWindow::saveSettings()���: mainwindow.ui.h:582: error: ���class HelpDialog��� has no member named ���tabWidget��� make[2]: *** [.obj/release-shared-mt/mainwindow.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/x11-libs/qt-3.3.8b-r2/work/qt-x11-free-3.3.8b/tools/assistant' make[1]: *** [sub-assistant] Error 2 make[1]: Leaving directory `/var/tmp/portage/x11-libs/qt-3.3.8b-r2/work/qt-x11-free-3.3.8b/tools' make: *** [sub-tools] Error 2 make: INTERNAL: Exiting with 9 jobserver tokens available; should be 8! * ERROR: x11-libs/qt-3.3.8b-r2 failed: * (no error message) * * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2887: Called die * The specific snippet of code: * emake sub-tools || die; * * If you need support, post the output of 'emerge --info =x11-libs/qt-3.3.8b-r2', * the complete build log and the output of 'emerge -pqv =x11-libs/qt-3.3.8b-r2'. * The complete build log is located at '/var/tmp/portage/x11-libs/qt-3.3.8b-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-libs/qt-3.3.8b-r2/temp/environment'. * S: '/var/tmp/portage/x11-libs/qt-3.3.8b-r2/work/qt-x11-free-3.3.8b' Reproducible: Always $ emerge --info Portage 2.2_rc49 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r3 x86_64) ================================================================= System uname: Linux-2.6.31-gentoo-r3-x86_64-AMD_Athlon-tm-_64_Processor_2800+-with-gentoo-2.0.0 Timestamp of tree: Sun, 15 Nov 2009 22:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.5.4-r3, 2.6.4 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.5.2-r2 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -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/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs=3 --load-average=3" FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch webrsync-gpg" GENTOO_MIRRORS="http://gentoo.localhost.net.ar/ http://gentoo.osuosl.org/ http://gentoo.mirrors.hoobly.com/" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="de en" MAKEOPTS="-j8 --load-average=5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--delete-after --exclude='/media-libs/imlib2'" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/science /usr/portage/local/layman/java-overlay /usr/portage/local/layman/sunrise /usr/portage/local/layman/x11 /usr/portage/local/mine /usr/portage/local/layman/openmoko/trunk/openmoko-target" SYNC="rsync://10.2.3.4/gentoo-portage" USE="3dnow 3dnowext X a52 aac aalib accessibility acl acpi aim alsa amd amd64 amr amrnb amrwb ansi aotuv avahi bash-completion berkdb bidi binary-drivers blender-game bluetooth boost branding bzip2 cairo calendar caps cdio cdparanoia cdr cegui cleartype cli consolekit cracklib crypt css cups curl cursors daap dbus de_tvtoday devil dga dia directfb disk-partition divx dmraid doc dri dts dv dvb dvd dvdr enca encode esd exif fam fame fat fbcon fbsplash ffmpeg fftw firefox flac fluidsynth fmod fontconfig foomaticdb fortran freetype ftp fuse gcj gd gdbm ggi gif gimp gimpprint ginac git glitz glsa glut gmedia gnokii gnome gnomecanvas gnutls gphoto2 gpm graphviz gre gs gstreamer gtk hal hbci hddtemp hdri hpn http ical iconv icq icu id3 id3tag idn imagemagick imlib injection inkjar ipv6 irmc jabber jack java javascript jbig jce jikes jingle jpeg jpeg2k kde kpathsea latex ldap libass libcaca libffi libnotify libsamplerate libv4l2 live logitech-mouse lzma lzo mad madwifi maps matroska mdnsresponder-compat mikmod mime mixer mjpeg mmap mmx mmxext mng modplug modules moonlight mp2 mp3 mpeg mplayer msn mudflap multilib musepack music musicbrainz nano-syntax ncurses network nls nntp nodrm nptl nptlonly nsplugin ntfs octave offensive ofx ogg openexr opengl openmp oscar pam parse-clocks passwordsave pcre pdf perl php physfs plotutils pmu png postscript ppds pppd prediction print python qt3support qt4 quicktime rar readline realmedia reflection reiser4 reiserfs rle rss rtc samba schroedinger sdk sdl session skins sms sndfile sockets speex spell spl sql sqlite srt sse sse2 ssl startup-notification stk stream subtitles subversion svg svgz symlink syncml sysfs syslog tcpd templates tga themes theora threads tidy tiff timestats transparency trayicon truetype tv_check type1 unicode usb v4l v4l2 vamp vcd video videos vim-syntax vim-with-x vlm vorbis vst webdav wifi wma wmf wmp wxwindows x264 xanim xcb xcomposite xfs xhtml xinerama xml xmlwriter xorg xosd xpm xscreensaver xulrunner xv xvid xvmc yahoo zip zlib zvbi" ALSA_CARDS="ca0106" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Disable ccache and try with MAKEOPTS=-j1
qt-3 is masked for removal