Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 529398 - =dev-qt/qthelp-4.8.6-r1[compat] tools/assistant/compat/lib/qassistantclient.h:49:49: fatal error: QtAssistant/qassistantclient_global.h: No such file or directory
Summary: =dev-qt/qthelp-4.8.6-r1[compat] tools/assistant/compat/lib/qassistantclient.h...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 530048 540362 (view as bug list)
Depends on:
Blocks: qt-4.8.6-stable
  Show dependency tree
 
Reported: 2014-11-15 23:13 UTC by Manuel Rüger (RETIRED)
Modified: 2015-05-06 22:35 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Latest build.log as requested (build.log,873.45 KB, text/plain)
2014-11-26 22:44 UTC, Andreas Proteus
Details
build.log (build.log,861.80 KB, text/x-log)
2014-12-14 15:07 UTC, Juergen Rose
Details
qthelp_lynx2.log (qthelp_lynx2.log,854 bytes, text/x-log)
2014-12-14 15:32 UTC, Juergen Rose
Details
qthelp_impala.log (qthelp_impala.log,900 bytes, text/x-log)
2014-12-14 15:33 UTC, Juergen Rose
Details
qthelp-4.8.6-r2-ok.log.gz (qthelp-4.8.6-r2-ok.log.gz,29.24 KB, application/octet-stream)
2015-03-03 00:39 UTC, Fabio Rossi
Details
qthelp-4.8.6-r2-fail.log.gz (qthelp-4.8.6-r2-fail.log.gz,33.07 KB, application/octet-stream)
2015-03-03 00:40 UTC, Fabio Rossi
Details
/etc/env.d/45qt3 (45qt3,149 bytes, text/plain)
2015-05-06 15:26 UTC, Nikoli
Details
/etc/env.d/50qtdir3 (50qtdir3,16 bytes, text/plain)
2015-05-06 15:27 UTC, Nikoli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Rüger (RETIRED) gentoo-dev 2014-11-15 23:13:27 UTC
* Package:    dev-qt/qthelp-4.8.6-r1
 * Repository: gentoo
 * Maintainer: qt@gentoo.org
 * Upstream:   https://bugreports.qt-project.org/
 * USE:        abi_x86_32 abi_x86_64 amd64 compat elibc_glibc exceptions kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox


 * Running emake in tools/assistant/compat/lib
make -j5 -l4 
x86_64-pc-linux-gnu-g++ -c -march=native -O2 -pipe -fPIC -Wall -W -D_REENTRANT -fPIC -DQT_ASSISTANT_CLIENT_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/mkspecs/linux-g++ -I/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib -I../../../../include/QtCore -I../../../../include/QtNetwork -I../../../../include/QtGui -I../../../../include -I.moc/release-shared -I. -o .obj/release-shared/qassistantclient.o /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib/qassistantclient.cpp
/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64/bin/moc -DQT_ASSISTANT_CLIENT_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/mkspecs/linux-g++ -I/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib -I../../../../include/QtCore -I../../../../include/QtNetwork -I../../../../include/QtGui -I../../../../include -I.moc/release-shared -I. /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib/qassistantclient.h -o .moc/release-shared/moc_qassistantclient.cpp
x86_64-pc-linux-gnu-g++ -c -march=native -O2 -pipe -fPIC -Wall -W -D_REENTRANT -fPIC -DQT_ASSISTANT_CLIENT_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/mkspecs/linux-g++ -I/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib -I../../../../include/QtCore -I../../../../include/QtNetwork -I../../../../include/QtGui -I../../../../include -I.moc/release-shared -I. -o .obj/release-shared/moc_qassistantclient.o .moc/release-shared/moc_qassistantclient.cpp
In file included from /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib/qassistantclient.cpp:42:0:
/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib/qassistantclient.h:49:49: fatal error: QtAssistant/qassistantclient_global.h: No such file or directory
 #include <QtAssistant/qassistantclient_global.h>
                                                 ^
compilation terminated.
Makefile:523: recipe for target '.obj/release-shared/qassistantclient.o' failed
make: *** [.obj/release-shared/qassistantclient.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from .moc/release-shared/moc_qassistantclient.cpp:9:0:
.moc/release-shared/../../../../../../../qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib/qassistantclient.h:49:49: fatal error: QtAssistant/qassistantclient_global.h: No such file or directory
 #include <QtAssistant/qassistantclient_global.h>
                                                 ^
compilation terminated.
Makefile:526: recipe for target '.obj/release-shared/moc_qassistantclient.o' failed
make: *** [.obj/release-shared/moc_qassistantclient.o] Error 1
 * ERROR: dev-qt/qthelp-4.8.6-r1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-qt/qthelp-4.8.6-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-qt/qthelp-4.8.6-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64/tools/assistant/compat/lib'
 * S: '/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6'


emerge --info 
Portage 2.2.14 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.3, glibc-2.19-r1, 3.17.3-gentoo x86_64)
=================================================================
System uname: Linux-3.17.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-3517U_CPU_@_1.90GHz-with-gentoo-2.2
KiB Mem:    10187152 total,   3621132 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 15 Nov 2014 22:15:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.12.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.3-r1, 4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo local-overlay kde steam-overlay mrueg ruby
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.1/conf /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/lib/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --jobs=4 --load-average=4"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -l4"
PKGDIR="/var/lib/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-4"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/lib/portage/tree"
PORTDIR_OVERLAY="/var/lib/portage/local-tree /var/lib/layman/kde /var/lib/layman/steam /var/lib/layman/mrueg /var/lib/layman/ruby"
USE="X a52 aac acl acpi alsa amd64 avx bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr clang cli connection-sharing consolekit cracklib crypt cryptsetup css ctype cups curl cxx dbus declarative djvu dpi dri dts dv dvb dvd dvdr ebook emboss encode epub exif extra fam ffmpeg firefox flac fontconfig fortran ftp g3dvl gdbm gif gimp glamor gnuplot gphoto2 gpm graphviz gtk gui gzip hddtemp iconv imagemagick ipv6 java jpeg kde kipi lastfm latex lcms ldap libass libnotify logrotate lzma lzo mad matroska mime mmx mng modules mp3 mp4 mpeg mpi mplayer multilib ncurses nepomuk networkmanager nfs nfsv41 nls nptl nsplugin ntfs ntp ogg opengl openmp openvpn pam pango pcre pdf perl phonon plasma plotutils png policykit ppds prediction pstricks pulseaudio python qt3support qt4 quicktime raw rdesktop readline rss ruby samba scanner science sdl semantic-desktop session sound spell sqlite sse sse2 sse3 sse4 sse4_1 sse4a ssl ssse3 startup-notification subversion svg symlink syslog taglib tcpd tex4ht theora threads tiff truetype udev udisks unicode upower usb uxa vaapi vcd vim-syntax vlc vnc vorbis wavpack webkit wifi wxwidgets x264 x265 xattr xcb xcomposite xine xinerama xml xscreensaver xv xvid xvmc zip zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC, USE_PYTHON
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2014-11-16 04:01:39 UTC
syncqt doesn't know anything about the QtAssistant compat headers, thus it doesn't copy them from ${S} to ${BUILD_DIR} where the build system expects to find them.
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2014-11-16 04:07:14 UTC
  16 Nov 2014; Davide Pesavento <pesa@gentoo.org> qthelp-4.8.6-r1.ebuild:
  Fix build of QtAssistantClient compat library (bug 529398). Fix assistant.prf
  installation. Fix docompress on prefix.
Comment 3 Juergen Rose 2014-11-22 06:56:39 UTC
I have the same issue.
Comment 4 Juergen Rose 2014-11-22 07:00:34 UTC
(In reply to Davide Pesavento from comment #2)
>   16 Nov 2014; Davide Pesavento <pesa@gentoo.org> qthelp-4.8.6-r1.ebuild:
>   Fix build of QtAssistantClient compat library (bug 529398). Fix
> assistant.prf
>   installation. Fix docompress on prefix.

Where is the fix?
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2014-11-22 13:38:30 UTC
qthelp-4.8.6-r1 works for me. Did you sync?
Comment 6 Juergen Rose 2014-11-23 07:15:18 UTC
(In reply to Davide Pesavento from comment #5)
> qthelp-4.8.6-r1 works for me. Did you sync?

I sync every day.

root@lynx2:/root(8)# MAKEOPTS=-j1 emerge -uvDN world
...
 #include "../../tools/assistant/compat/lib/qassistantclient_global.h"
                                                                      ^
compilation terminated.
Makefile:519: recipe for target '.obj/release-shared/qassistantclient.o' failed
make: *** [.obj/release-shared/qassistantclient.o] Error 1
 * ERROR: dev-qt/qthelp-4.8.6-r1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-qt/qthelp-4.8.6-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-qt/qthelp-4.8.6-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64/tools/assistant/compat/lib'
 * S: '/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6'

>>> Failed to emerge dev-qt/qthelp-4.8.6-r1, Log file:

>>>  '/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/temp/build.log'
root@lynx2:/root(9)# emerge -pvD qthelp

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-qt/qthelp-4.8.6-r1:4  USE="compat doc exceptions (-aqua) -debug -pch" ABI_X86="(64) -32 (-x32)" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

dev-qt/designer:4

  (dev-qt/designer-4.8.6-r1:4/4::gentoo, ebuild scheduled for merge) conflicts with
    ~dev-qt/designer-4.8.5[-aqua,-debug] required by (dev-qt/qtdemo-4.8.5-r1:4/4::gentoo, installed)
    ^                ^^^^^              

root@lynx2:/root(10)# ll /usr/portage/dev-qt/qthelp/qthelp-4.8.6-r1.ebuild 
-rw-r--r-- 1 root root 3262 Nov 16 05:31 /usr/portage/dev-qt/qthelp/qthelp-4.8.6-r1.ebuild
Comment 7 Juergen Rose 2014-11-23 08:46:02 UTC
BTW, I suppose, that I have the fixed ebuild:

root@lynx2:/root(15)# grep -U2 cp /usr/portage/dev-qt/qthelp/qthelp-4.8.6-r1.ebuild 
        if use compat; then
                # syncqt knows nothing about these headers (bug 529398)
                cp -pr "${WORKDIR}"/QtAssistant "${BUILD_DIR}"/include || die
        fi
}

And I find qassistantclient_global.h three times under /var/tmp/portage/dev-qt/qthelp-4.8.6-r1:

root@lynx2:/root(13)# find /var/tmp/portage/dev-qt/qthelp-4.8.6-r1 -name qassistantclient_global.h -ls
401755    4 -rwxr-xr-x   1 portage  portage      2399 Jun 18  2010 /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib/qassistantclient_global.h
540382    4 -rw-r--r--   1 portage  portage        70 Jun  2  2010 /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/QtAssistant/qassistantclient_global.h
803076    4 -rw-r--r--   1 portage  portage        70 Jun  2  2010 /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64/include/QtAssistant/qassistantclient_global.h
root@lynx2:/root(14)# grep -U3 cp /usr/portage/dev-qt/qthelp/qthelp-4.8.6-r1.ebuild 


But there is not any /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64/.../tools/assistant/compat/lib/qassistantclient_global.h .


Maybe a line qt-everywhere-opensource-src-4.8.6/tools
cp -pr "${WORKDIR}"/qt-everywhere-opensource-src-4.8.6/tools "${BUILD_DIR}"/include
should be added to qthelp-4.8.6-r1.ebuild?
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2014-11-23 22:21:29 UTC
Reopening.
Comment 9 Davide Pesavento (RETIRED) gentoo-dev 2014-11-23 22:21:56 UTC
*** Bug 530048 has been marked as a duplicate of this bug. ***
Comment 10 Davide Pesavento (RETIRED) gentoo-dev 2014-11-26 18:27:35 UTC
I had deleted a line from src_unpack while debugging the original issue, and then forgot to put it back when I committed the fix.

Let me know if it works now, as I still cannot reproduce it (no idea why).
Comment 11 Andreas Proteus 2014-11-26 22:12:32 UTC
Unfortunately the problem is still there.
Comment 12 Davide Pesavento (RETIRED) gentoo-dev 2014-11-26 22:22:43 UTC
I need a full build.log of the failure with the *current* qthelp-4.8.6-r1
Comment 13 Andreas Proteus 2014-11-26 22:44:40 UTC
Created attachment 390372 [details]
Latest build.log as requested
Comment 14 Juergen Rose 2014-11-27 18:54:39 UTC
I can emerge dev-qt/qthelp-4.8.6-r1, if the compat USE flag is not set and it fails, if it is set. On the other hand 'emerge -uvDN world' fails, if the compat USE flag is not set:

root@lynx2:/usr/local/portage/dev-qt(77)# emerge --update --newuse --deep --with-bdeps=y @world
Calculating dependencies... done!
[ebuild   R    ] dev-qt/qthelp-4.8.6-r1  USE="compat*" 
[ebuild     U  ] dev-qt/assistant-4.8.6-r1 [4.8.5] ABI_X86="(64%*) -32% (-x32)" 
...
[ebuild     U  ] dev-util/devhelp-3.12.1-r1 [3.12.1] PYTHON_SINGLE_TARGET="-python3_4%" PYTHON_TARGETS="-python3_4%" 

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:
...
The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by sci-visualization/qtiplot-0.9.8.9-r2
# required by @selected
# required by @world (argument)
>=dev-qt/qthelp-4.8.6-r1:4 compat
Comment 15 Juergen Rose 2014-11-28 10:01:49 UTC
(In reply to Juergen Rose from comment #14)
> I can emerge dev-qt/qthelp-4.8.6-r1, if the compat USE flag is not set and
> it fails, if it is set. On the other hand 'emerge -uvDN world' fails, if the
> compat USE flag is not set:
> 
> root@lynx2:/usr/local/portage/dev-qt(77)# emerge --update --newuse --deep
> --with-bdeps=y @world
> Calculating dependencies... done!
> [ebuild   R    ] dev-qt/qthelp-4.8.6-r1  USE="compat*" 
> [ebuild     U  ] dev-qt/assistant-4.8.6-r1 [4.8.5] ABI_X86="(64%*) -32%
> (-x32)" 
> ...
> [ebuild     U  ] dev-util/devhelp-3.12.1-r1 [3.12.1]
> PYTHON_SINGLE_TARGET="-python3_4%" PYTHON_TARGETS="-python3_4%" 
> 
> WARNING: One or more updates/rebuilds have been skipped due to a dependency
> conflict:
> ...
> The following USE changes are necessary to proceed:
>  (see "package.use" in the portage(5) man page for more details)
> # required by sci-visualization/qtiplot-0.9.8.9-r2
> # required by @selected
> # required by @world (argument)
> >=dev-qt/qthelp-4.8.6-r1:4 compat

Uninstalling qtiplot enables me to run 'emerge -uvDN world'.
Comment 16 Juergen Rose 2014-12-10 11:50:46 UTC
On some systems I can qthelp-4.8.6-r1, even if the compat USE flag is set:

root@caiman:/root(5)# emerge -pv1 qthelp

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-qt/qthelp-4.8.6-r1:4  USE="compat doc exceptions (-aqua) -debug -pch" ABI_X86="(64) -32 (-x32)" 0 KiB


root@caiman:/root(8)# genlop -t qthelp | tail

     Mon Oct 21 04:53:14 2013 >>> dev-qt/qthelp-4.8.5-r2
       merge time: 3 minutes and 56 seconds.

     Thu Nov 20 05:52:45 2014 >>> dev-qt/qthelp-4.8.6-r1
       merge time: 3 minutes and 11 seconds.

     Wed Dec 10 12:34:38 2014 >>> dev-qt/qthelp-4.8.6-r1
       merge time: 3 minutes and 6 seconds.


At lynx2 it is still failing with compat USE flag:

...
In file included from .moc/release-shared/../../../../../../../qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib/qassistantclient.h:49:0,
                 from .moc/release-shared/moc_qassistantclient.cpp:9:
../../../../include/QtAssistant/qassistantclient_global.h:1:70: fatal error: ../../tools/assistant/compat/lib/qassistantclient_global.h: No such file or directory
 #include "../../tools/assistant/compat/lib/qassistantclient_global.h"
                                                                      ^
compilation terminated.
Makefile:526: recipe for target '.obj/release-shared/moc_qassistantclient.o' failed
...
root@lynx2:/usr/local/portage/dev-qt(109)# emerge -pv1 qthelp

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-qt/qthelp-4.8.6-r1:4  USE="compat* doc exceptions (-aqua) -debug -pch" ABI_X86="(64) -32 (-x32)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB


Any hint is appreciated.
Comment 17 Juergen Rose 2014-12-10 12:34:05 UTC
The differences I found at lynx2 and caiman are:

At caiman the kde USE flag is not set and qt-5 packages are not installed.
At lynx2 the kde USE flag is set and qt-5 packages are installed.
The kde USE flag is relevant for qtdemo and PyQt4.
Comment 18 Juergen Rose 2014-12-14 15:07:14 UTC
Created attachment 391698 [details]
build.log

It still fails on lynx2.


root@lynx2:/root(47)# emerge --info '=dev-qt/qthelp-4.8.6-r1::gentoo'
Portage 2.2.15 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.3, glibc-2.20, 3.18.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.0-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-2.2
KiB Mem:     3972432 total,   1001744 free
KiB Swap:   12582908 total,  11448608 free
Timestamp of tree: Sun, 14 Dec 2014 03:00:01 +0000
sh bash 4.3_p30-r1
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.3_p30-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r3
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r4, 1.10.3-r1, 1.11.6-r1, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.20
Repositories: gentoo x11 sage-on-gentoo science tlp sunrise x-portage g-cpan g-octave
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA NVIDIA-CUDA Nero-AAC-EULA GIMPS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
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 /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5.6/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=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage_lynx2"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/sage-on-gentoo /var/lib/layman/science /var/lib/layman/tlp /var/lib/layman/sunrise /usr/local/portage /var/lib/cpan /var/lib/g-octave"
USE="64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 ao apache2 apng applet archive armadillo arpack asf aspell atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boost branding bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli cmake colord cracklib crypt css cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx fuse g3dvl garmin gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp git glade glamor glib glpk gml gmp gnome gnome-keyring gnome-online-accounts gnome-print gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile hdaps hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3tag ide imagemagick imap inotify introspection ipod ipv6 irda ithreads jabber jadetex java jbig jit john jpeg jpeg2k kate kde kdepim kdrive kerberos keymap kpathsea kvm ladspa lame lapack laptop latex lcms ldap lensfun libffi libkms libnotify libsamplerate libsecret lirc live lua lzma lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mkl mmx mmxext mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mplayer mtp multilib multimedia musepack musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking nfs nls nntp nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ofa ogdi ogg openexr opengl openmp openvg pam pango pcre pda pdf pdl2 perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds preview-latex proj projectm pstricks pulseaudio python python-bindings q32 qemu qhull qt3support qt4 quicktime raw readline reiserfs reports rle romio rpc rrdcgi rrdtool sage samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap socialweb sockets sound soup sox speex spell sql sqlite sse sse2 ssl ssse3 startup-notification stlport subtitles subversion sudo suexec svg svm swig systemd szip t1lib tcl tcpd tex tex4ht texmacs theora thesaurus thinkpad threads thunderbird tidy tiff tk tools truetype udev udisks unicode upower usb utempter v4l vaapi vala valgrind vdpau video virt-network virtualbox visio vorbis vpx vtk wav webdav webdav-serf webkit wifi wmf wxwidgets x264 xa xattr xcb xetex xext xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zvbi" ABI_X86="64" ALSA_CARDS="intel8x0" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DVB_CARDS="usb-wt220u" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev synaptics void" KERNEL="linux" LCD_DEVICES="cfontz hd44780 mtxorb ncurses X lcd2usb lcdlinux png usblcd" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de fr ru" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel displaylink" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-qt/qthelp-4.8.6-r1 was built with the following:
USE="doc exceptions (-aqua) -compat -debug -pch" ABI_X86="64 -32 -x32"



root@lynx2:/root(48)# emerge -pqv '=dev-qt/qthelp-4.8.6-r1::gentoo'
[ebuild   R   ] dev-qt/qthelp-4.8.6-r1  USE="compat* doc exceptions (-aqua) -debug -pch" ABI_X86="(64) -32 (-x32)" 



 In between I found an other system ("impala") with the same USE flags but other CFLAGS ("lynx2": CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer", "impala": CFLAGS="-march=amdfam10 -O2 -pipe"), where 'qthelp-4.8.6-r1' works.


Even if I run 'MAKEOPTS=-j1 emerge -v1 qthelp', the order of creation of directories differs on both systems:

lynx2:
=================================================
...
mkdir /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64/include
mkdir /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64/include/Qt
mkdir /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64/include/QtGui
header created for /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/src/gui/image/qbitmap.h (2)
...

impala:
==================================================
...
mkdir /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64/include
mkdir /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64/include/Qt
mkdir /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64/include/QtDBus
mkdir /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64/include/QtDBus/private
header created for /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/src/dbus/qdbus_symbols_p.h (1)
...

Therefore it is not so easy to compare the build.log files. At least on lynx2, the failing command is:
x86_64-pc-linux-gnu-g++ -c -march=native -O2 -pipe -fomit-frame-pointer -fPIC -Wall -W -D_REENTRANT -fPIC -DQT_ASSISTANT_CLIENT_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib -I../../../../include/QtCore -I../../../../include/QtNetwork -I../../../../include/QtGui -I../../../../include -I.moc/release-shared -I. -o .obj/release-shared/qassistantclient.o /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib/qassistantclient.cpp
In file included from /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib/qassistantclient.h:49:0,
                 from /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib/qassistantclient.cpp:42:
../../../../include/QtAssistant/qassistantclient_global.h:1:70: fatal error: ../../tools/assistant/compat/lib/qassistantclient_global.h: No such file or directory
 #include "../../tools/assistant/compat/lib/qassistantclient_global.h"
                                                                      ^


while I see on "impala":
x86_64-pc-linux-gnu-g++ -c -march=amdfam10 -O2 -pipe -fPIC -Wall -W -D_REENTRANT -fPIC -DQT_ASSISTANT_CLIENT_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/mkspecs/linux-g++ -I/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib -I../../../../include/QtCore -I../../../../include/QtNetwork -I../../../../include/QtGui -I../../../../include -I.moc/release-shared -I. -o .obj/release-shared/qassistantclient.o /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib/qassistantclient.cpp
/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64/bin/moc -DQT_ASSISTANT_CLIENT_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/mkspecs/linux-g++ -I/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib -I../../../../include/QtCore -I../../../../include/QtNetwork -I../../../../include/QtGui -I../../../../include -I.moc/release-shared -I. /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib/qassistantclient.h -o .moc/release-shared/moc_qassistantclient.cpp
x86_64-pc-linux-gnu-g++ -c -march=amdfam10 -O2 -pipe -fPIC -Wall -W -D_REENTRANT -fPIC -DQT_ASSISTANT_CLIENT_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/mkspecs/linux-g++ -I/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib -I../../../../include/QtCore -I../../../../include/QtNetwork -I../../../../include/QtGui -I../../../../include -I.moc/release-shared -I. -o .obj/release-shared/moc_qassistantclient.o .moc/release-shared/moc_qassistantclient.cpp
Comment 19 Juergen Rose 2014-12-14 15:30:38 UTC
I splitted the failing command on "lynx2" and the succesfull comand on "impala" over several lines an wrote the result in two files:

qthelp_lynx2.log qthelp_impala.log .

I will attach these files. If I compare these files, I see different include arguments of gcc:

rose@impala:/home/rose(51)$ diff qthelp_lynx2.log qthelp_impala.log
2c2
< -march=native -O2 -pipe -fomit-frame-pointer -fPIC
---
> -march=amdfam10 -O2 -pipe -fPIC
9c9
< -I/usr/share/qt4/mkspecs/linux-g++
---
> -I/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/mkspecs/linux-g++


The qassistantclient_global.h are now again at:

root@lynx2:/root(14)# find /var/tmp/portage/dev-qt/qthelp-4.8.6-r1/ -name qassistantclient_global.h
/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/include/QtAssistant/qassistantclient_global.h
/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6/tools/assistant/compat/lib/qassistantclient_global.h
/var/tmp/portage/dev-qt/qthelp-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64/include/QtAssistant/qassistantclient_global.h
Comment 20 Juergen Rose 2014-12-14 15:32:17 UTC
Created attachment 391702 [details]
qthelp_lynx2.log
Comment 21 Juergen Rose 2014-12-14 15:33:02 UTC
Created attachment 391704 [details]
qthelp_impala.log
Comment 22 Juergen Rose 2015-01-01 15:50:36 UTC
I found an old /etc/env.d/45qt3 (from 2008) and a rather new /etc/profile.csh (from Sep 2014), both containing entries "/usr/qt/3/lib64". I do not have a /usr/qt directory. After deleting these two files and unmerging all qt packages the next 'emerge -uvDN world' also emerges  qthelp-4.8.6-r1.
Comment 23 Davide Pesavento (RETIRED) gentoo-dev 2015-01-02 16:23:33 UTC
This gets weirder every day... why would a non-existent dir cause such an error? What was the content of /etc/env.d/45qt3 exactly?
Comment 24 Justin Lecher (RETIRED) gentoo-dev 2015-01-08 07:44:28 UTC
Could this get fixed, please?

Although the compat header are copied the do not get installed.
Comment 25 Justin Lecher (RETIRED) gentoo-dev 2015-01-25 15:56:59 UTC
Any progress here?
Comment 26 Davide Pesavento (RETIRED) gentoo-dev 2015-01-25 16:18:57 UTC
Failure to install compat headers has nothing to do with the original bug report. Please open a separate bug.

Notice however that the whole USE=compat stuff is functionality that upstream has *removed* from official Qt releases *years* ago. Only a couple of packages in tree still depend on it. Honestly I'd prefer dropping this crap from the qthelp ebuild than wasting my time trying to fix it.
Comment 27 Justin Lecher (RETIRED) gentoo-dev 2015-01-25 18:20:42 UTC
I added a fix to install the compat headers. perhaps this also fixes this issue

*qthelp-4.8.6-r2 (25 Jan 2015)
+
+  25 Jan 2015; Justin Lecher <jlec@gentoo.org> +qthelp-4.8.6-r2.ebuild,
+  +files/qthelp-4.8.6-fix-compat.patch, metadata.xml:
+  Install compat headers
+
Comment 28 Davide Pesavento (RETIRED) gentoo-dev 2015-01-26 02:35:34 UTC
Posting the patch here for review before committing would have been nice. Especially since you're not a member of the qt team. (btw, you messed up the indentation in metadata.xml with your commit, not sure why)

Where does the patch come from?
Comment 29 Justin Lecher (RETIRED) gentoo-dev 2015-01-26 07:17:52 UTC
(In reply to Davide Pesavento from comment #28)
> Posting the patch here for review before committing would have been nice.

As you said, my problem was a different one, so I didn't saw any need to post it in this bug.

> Especially since you're not a member of the qt team. (btw, you messed up the
> indentation in metadata.xml with your commit, not sure why)

oh, I am sorry for this. Didn't intend to mess it up

> 
> Where does the patch come from?

Created it myself. The buildsystem had problem with the multilib build, as it was looking in the wrong location for the headers .pri file, which was why the headers did not got installed.
Comment 30 Davide Pesavento (RETIRED) gentoo-dev 2015-01-26 13:39:00 UTC
(In reply to Justin Lecher from comment #29)
> (In reply to Davide Pesavento from comment #28)
> > Posting the patch here for review before committing would have been nice.
> 
> As you said, my problem was a different one, so I didn't saw any need to
> post it in this bug.
> 

Yeah well, "here" as in "bugzilla", more specifically on the new bug you should've opened (or a mail to qt@ would have been fine too).

> > Especially since you're not a member of the qt team. (btw, you messed up the
> > indentation in metadata.xml with your commit, not sure why)
> 
> oh, I am sorry for this. Didn't intend to mess it up
> 
> > 
> > Where does the patch come from?
> 
> Created it myself. The buildsystem had problem with the multilib build, as
> it was looking in the wrong location for the headers .pri file, which was
> why the headers did not got installed.

Awesome. If it works for you I'm perfectly happy with it. Thanks.
Comment 31 Davide Pesavento (RETIRED) gentoo-dev 2015-01-26 13:42:51 UTC
As far as the original bug is concerned, I'm going to close as WFM, as per comment #22.
Comment 32 Davide Pesavento (RETIRED) gentoo-dev 2015-02-17 18:11:00 UTC
*** Bug 540362 has been marked as a duplicate of this bug. ***
Comment 33 Fabio Rossi 2015-02-17 21:01:57 UTC
The problem is in the ebuild, if I use the 4.8.5-r2 ebuild to compile version 4.8.6, qthelp is build correctly.
Comment 34 Davide Pesavento (RETIRED) gentoo-dev 2015-02-17 22:21:05 UTC
Please check if you have any qt3 entries in /etc/env.d/* or /etc/profile*
Comment 35 Fabio Rossi 2015-02-18 09:27:34 UTC
(In reply to Davide Pesavento from comment #34)
> Please check if you have any qt3 entries in /etc/env.d/* or /etc/profile*

Yes, I have because I installed qt-meta:3 from overlay. Anyway even with the qt3 entries in /etc/env.d/*, qthelp-4.8.6[compat] compiles fine with the ebuild from version 4.8.5.

I have seen that the ebuild for qthelp-4.8.6 has been migrated to multilib, there should be some issue with that and the way qthelp[compat] is built.
Comment 36 Davide Pesavento (RETIRED) gentoo-dev 2015-02-28 14:15:43 UTC
Well, reopening... but as I already said I'm currently unable to reproduce, so someone affected needs to dig deeper and find the root cause.
Comment 37 Fabio Rossi 2015-03-02 23:18:35 UTC
(In reply to Davide Pesavento from comment #36)
> Well, reopening... but as I already said I'm currently unable to reproduce,
> so someone affected needs to dig deeper and find the root cause.

If you think it might be useful I can post the build logs of qthelp-4.8.6[compat] compiled with the original ebuild and with one derived from version 4.8.5
Comment 38 Davide Pesavento (RETIRED) gentoo-dev 2015-03-02 23:43:53 UTC
Yes please, although I'm not sure if diffing them will result it something sensible...
Comment 39 Fabio Rossi 2015-03-03 00:39:49 UTC
Created attachment 397912 [details]
qthelp-4.8.6-r2-ok.log.gz
Comment 40 Fabio Rossi 2015-03-03 00:40:18 UTC
Created attachment 397914 [details]
qthelp-4.8.6-r2-fail.log.gz
Comment 41 Michael Palimaka (kensington) gentoo-dev 2015-03-22 14:23:00 UTC
(In reply to Fabio Rossi from comment #35)
> qthelp-4.8.6[compat] compiles fine with the ebuild from version 4.8.5.

@multilib, any ideas of where to start looking then?
Comment 42 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-03-22 14:33:05 UTC
I suggest you start by comparing the headers installed by both versions.
Comment 43 Michael Palimaka (kensington) gentoo-dev 2015-05-06 15:00:49 UTC
Could someone please attach their Qt3 /etc/env.d/* entries?
Comment 44 Nikoli 2015-05-06 15:26:36 UTC
Created attachment 402762 [details]
/etc/env.d/45qt3
Comment 45 Nikoli 2015-05-06 15:27:16 UTC
Created attachment 402764 [details]
/etc/env.d/50qtdir3
Comment 46 Michael Palimaka (kensington) gentoo-dev 2015-05-06 17:34:00 UTC
I can consistently reproduce by setting QMAKESPEC="linux-g++" in the environment (which is indeed part of the qt3 env files).
Comment 47 Davide Pesavento (RETIRED) gentoo-dev 2015-05-06 20:29:24 UTC
(In reply to Michael Palimaka (kensington) from comment #46)
> I can consistently reproduce by setting QMAKESPEC="linux-g++" in the
> environment (which is indeed part of the qt3 env files).

Thanks. I can reproduce, finally.

And I know what's causing it. The root cause is that syncqt doesn't know anything about the compat headers, as I had already realized in comment #1. However, simply copying the headers from ${S} to the build dir, as I did at the time (comment #2), is not enough because some paths end up being wrong.

The real fix is to actually teach syncqt how to handle the QtAssistant compat module, so that the forwarding headers are properly generated. This should also make Justin's patch in -r2 unnecessary.

The reason it worked until now, and the reason why QMAKESPEC breaks it, is purely accidental. The INCPATH
  -I/tmp/portage/dev-qt/qthelp-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6/mkspecs/linux-g++
in the Makefile made the relative #include path resolvable to the correct header file (by chance!). With QMAKESPEC=linux-g++, the INCPATH becomes
  -I/usr/share/qt4/mkspecs/linux-g++
therefore the relative inclusion stops working.
Comment 48 Davide Pesavento (RETIRED) gentoo-dev 2015-05-06 22:35:38 UTC
Fixed in cvs. Thanks a lot everyone!