Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 595486 - lxqt-base/lxqt-config-0.10.0 compilation failure : qiconloader_p.h not found
Summary: lxqt-base/lxqt-config-0.10.0 compilation failure : qiconloader_p.h not found
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LxQt maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-29 01:52 UTC by orionbelt2
Modified: 2017-04-22 00:11 UTC (History)
2 users (show)

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


Attachments
Build log (build.log,303.33 KB, text/x-log)
2016-09-29 01:52 UTC, orionbelt2
Details
Hack to allow for a successful compilation. (lxqt-config-0.10.0-build-hack-595486.patch,971 bytes, patch)
2016-10-01 10:02 UTC, Chiitoo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description orionbelt2 2016-09-29 01:52:15 UTC
Created attachment 448390 [details]
Build log

Compilation fails:

/var/tmp/portage/lxqt-base/lxqt-config-0.10.0/work/lxqt-config-0.10.0/lxqt-config-appearance/iconthemeconfig.cpp:38:41: fatal error: private/qtxdg/qiconloader_p.h: No such file or directory
 #include <private/qtxdg/qiconloader_p.h>
                                         ^
compilation terminated.


# emerge -pqv '=lxqt-base/lxqt-config-0.10.0::gentoo'
[ebuild  N    ] lxqt-base/lxqt-config-0.10.0


# emerge --info '=lxqt-base/lxqt-config-0.10.0::gentoo'
Portage 2.3.0 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.22-r4, 4.4.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.6-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:     6115716 total,   1701992 free
KiB Swap:    3780592 total,   3366608 free
Timestamp of repository gentoo: Wed, 28 Sep 2016 09:15:01 +0000
sh bash 4.3_p46-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p46-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21.7::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=core2 -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=core2 -O2 -pipe"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/                 ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/                 rsync://ftp.snt.utwente.nl/gentoo/                 http://mirrors.linuxant.fr/distfiles.gentoo.org/                 http://de-mirror.org/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -l7"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm hardened iconv ipv6 jpeg kde kipi kpathsea lcms ldap libnotify mad midi mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon pic plasma png policykit ppds pulseaudio qml qt3support qt4 qt5 readline sdl seccomp session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vdpau vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zlib" 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="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" 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="evdev" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau vesa" XFCE_PLUGINS="clock" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 orionbelt2 2016-09-29 13:17:54 UTC
The problem seems to be with line:

#include <private/qtxdg/qiconloader_p.h>

which appears in two files:

/var/tmp/portage/lxqt-base/lxqt-config-0.10.0/work/lxqt-config-0.10.0/lxqt-config-appearance/iconthemeconfig.cpp

and

/var/tmp/portage/lxqt-base/lxqt-config-0.10.0/work/lxqt-config-0.10.0/lxqt-config-appearance/iconthemeinfo.cpp

Using "locate qiconloader_p", i found only these two instances of this file:

/usr/include/qt4/QtGui/private/qiconloader_p.h
/usr/include/qt5/QtGui/5.6.1/QtGui/private/qiconloader_p.h

For this project we need qt5, but /usr/include/qt5/QtGui/5.6.1/QtGui/ is not included in the -isystem parameters of the build, only /usr/include/qt5/QtGui is. And, there is no qtxdg. I altered the #include line to make it:

#include <5.6.1/QtGui/private/qiconloader_p.h>

but it did not work: Now it was complaining about the next line "using namespace QtXdg;", saying that it is not a namespace-name, so it's probably not reading the right header file...

I also tried:

#include <private/xdgiconloader/xdgiconloader_p.h>

from dev-libs/libqtxdg (to satisfy the qtxdg part...) but it didn't work either.

So it must be something more serious. I hope someone can look into it soon...
Comment 2 Chiitoo gentoo-dev 2016-10-01 10:02:44 UTC
Created attachment 448680 [details, diff]
Hack to allow for a successful compilation.

Removing the namespace and 'qtxdg' from includes in the two files allows for a successful compilation, but I have no idea what it might (most likely will?) break.  :]
Comment 3 Richard Nespithal (rndevfx) 2016-10-04 13:48:53 UTC
It fails with =dev-libs/libqtxdg-2.0.0 but works fine with =dev-libs/libqtxdg-1.3.0
Comment 4 orionbelt2 2016-10-04 20:55:16 UTC
I followed Chiitoo's suggestion, and the build was completed successfully. I have been running LXQt for more than a day now without having seen any obvious malfunction due to removing the namespace and the includes.

But if it works with dev-libs/libqtxdg-1.3.0 as Richard Nespithal pointed out, perhaps 1.3.0 should become stable? 

Note that libqtxdg is not included among the packages that must be keyworded on Gentoo's LXQt instructions page:

https://wiki.gentoo.org/wiki/LXQt

but portage asks so since there's no stable version.
Comment 5 Chiitoo gentoo-dev 2016-10-04 21:20:35 UTC
Version 0.11.0 seems like it might fix this properly (and it's getting into Portage little by little now).

Here's one of the particular commits that make me think so:

https://github.com/lxde/lxqt-config/commit/304d5e55800c7a8d77585b739e6a36ec20b99102
Comment 6 Michael Palimaka (kensington) gentoo-dev 2016-10-29 13:55:18 UTC
0.11.0 in tree now
Comment 7 orionbelt2 2017-04-21 23:57:05 UTC
The original bug seems to have vanished, but compilation of lxqt-base/lxqt-config-0.11.0 now fails for me due to another header file:

cd /var/tmp/portage/lxqt-base/lxqt-config-0.11.0/work/lxqt-config-0.11.0_build/lxqt-config-appearance && /usr/bin/x86_64-pc-linux-gnu-g++ -DLXQT_DATA_DIR=\"/usr/share\" -DLXQT_ETC_XDG_DIR=\"/etc/xdg\" -DLXQT_GRAPHICS_DIR=\"/usr/share/lxqt/graphics\" -DLXQT_RELATIVE_SHARE_DIR=\"lxqt\" -DLXQT_RELATIVE_SHARE_TRANSLATIONS_DIR=\"lxqt/translations\" -DLXQT_SHARE_DIR=\"/usr/share/lxqt\" -DLXQT_SHARE_TRANSLATIONS_DIR=\"/usr/share/lxqt/translations\" -DLXQT_VERSION=\"0.11.0\" -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_XML_LIB -I/var/tmp/portage/lxqt-base/lxqt-config-0.11.0/work/lxqt-config-0.11.0_build/lxqt-config-appearance -I/var/tmp/portage/lxqt-base/lxqt-config-0.11.0/work/lxqt-config-0.11.0/lxqt-config-appearance -I/var/tmp/portage/lxqt-base/lxqt-config-0.11.0/work/lxqt-config-0.11.0_build/lxqt-config-appearance/lxqt-config-appearance_autogen/include -I/usr/include/qt5/QtGui/5.7.1 -I/usr/include/qt5/QtGui/5.7.1/QtGui -I/usr/include/qt5/QtCore/5.7.1 -I/usr/include/qt5/QtCore/5.7.1/QtCore -I/var/tmp/portage/lxqt-base/lxqt-config-0.11.0/work/lxqt-config-0.11.0/lxqt-config-appearance/../liblxqt-config-cursor -I/var/tmp/portage/lxqt-base/lxqt-config-0.11.0/work/lxqt-config-0.11.0_build/lxqt-config-appearance/../liblxqt-config-cursor -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtX11Extras -isystem /usr/include/qt5/QtXml -isystem /usr/include/lxqt -isystem /usr/include/lxqt/LXQt -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5 -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5xdg -isystem /usr/include/qt5xdgiconloader -isystem /usr/include/qt5xdgiconloader/2.0.0 -isystem /usr/include/qt5/QtSvg   -DNDEBUG -march=core2 -O2 -pipe -fno-exceptions -Wall -std=c++11 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden   -fPIC -std=gnu++11 -o CMakeFiles/lxqt-config-appearance.dir/iconthemeconfig.cpp.o -c /var/tmp/portage/lxqt-base/lxqt-config-0.11.0/work/lxqt-config-0.11.0/lxqt-config-appearance/iconthemeconfig.cpp
In file included from /var/tmp/portage/lxqt-base/lxqt-config-0.11.0/work/lxqt-config-0.11.0/lxqt-config-appearance/main.cpp:37:0:
/var/tmp/portage/lxqt-base/lxqt-config-0.11.0/work/lxqt-config-0.11.0/lxqt-config-appearance/../liblxqt-config-cursor/selectwnd.h:26:26: fatal error: ui_selectwnd.h: No such file or directory
compilation terminated.

Using "locate" and an explicit search in /usr/include i fail to find any file named ui_selectwnd.h .

[ PS: I don't know if i should have created a new bug report... ]
Comment 8 Chiitoo gentoo-dev 2017-04-22 00:11:18 UTC
Well if this isn't a coincidence, I don't know what is.  :]

Just 40 minutes or so ago, I created a pull request here:

https://github.com/gentoo/gentoo/pull/4463

I haven't tested with 0.11.0, but the error seems very similar, if not identical to what the patch I added to 'lxqt-base/lxqt-config' there fixes, so you could give that a try.

And yeah, a new bug would probably have been more appropriate, since this doesn't seem like exactly the same issue (then again, I would probably not have noticed the new bug, but I did notice this one due to CC).  :]