tldr: seemed to be caused by some things build against an older meson back at the days, recompile meson / make sure you have the most recent stable meson; then recompile xorg-proto, libxshmfence and possibly others (just in case, and make sure eveything else is up to date), then re-try qtgui.
--------
Hello
I did updates recently, Qt5.7.x to 5.9.4. On most machines it worked so far (FX, Kabini,...) until I got to my AMD E-350 based notebook. Here qtgui fails to compile (past some early checks?) - no matter what I do.
glibc glib and gcc are up to date to what is stable in amd64. Everything else seemed to compile so far. Moreover, I cleaned and removed ccache from FEATURES and I even tried CFLAGS via command line (CFLAGS="-march=x86_64 -mmmx -msse -msse2 -msse3) to have something very default and probably failsafe. Also chrooting the sdd form another box didn't help, not that I really expected it, but at least the error is thrown faster.
(Also removing previous versions of dev-qt/* didn't improve anything but the calculating dependencies process.)
here is the error message
Code: Select all
Note: Also available for Linux: linux-clang linux-icc
Note: Dropped compiler flags '-pthread' when detecting library 'glib'.
Qt is now configured for building. Just run 'gmake'.
Once everything is built, you must run 'gmake install'.
Qt will be installed into '/usr'.
Prior to reconfiguration, make sure you remove any leftovers from
the previous build.
* Running qt5_qmake in src/gui
* Running qt5_qmake in src/openglextensions
* Running qt5_qmake in src/platformheaders
* Running qt5_qmake in src/platformsupport
* Running qt5_qmake in src/plugins/generic
* Running qt5_qmake in src/plugins/imageformats
* Running qt5_qmake in src/plugins/platforms
* Running qt5_qmake in src/plugins/platforminputcontexts
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-qt/qtgui-5.9.4-r3/work/qtbase-opensource-src-5.9.4 ...
* Running emake in src/gui
make -j2
perl /var/tmp/portage/dev-qt/qtgui-5.9.4-r3/work/qtbase-opensource-src-5.9.4/mkspecs/features/data/unix/findclasslist.pl < QtGui.version.in > QtGui.version
x86_64-pc-linux-gnu-g++ -c -O2 -mtune=btver1 -march=btver1 -mfpmath=sse -O2 -pipe -mpopcnt -mmmx -msse -msse2 -msse3 -mssse3 -msse4a -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -D_REENTRANT -fPIC -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DENABLE_PIXMAN_DRAWHELPERS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_GUI_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -msse4.1 -I. -I../../include -I../../include/QtGui -I../../include/QtGui/5.9.4 -I../../include/QtGui/5.9.4/QtGui -isystem /usr/include/libdrm -isystem /usr/include -isystem /usr/include/qt5/QtCore/5.9.4 -isystem /usr/include/qt5/QtCore/5.9.4/QtCore -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -I.moc -isystem /usr/include/libpng16 -I../../mkspecs/linux-g++ image/qimage_sse4.cpp -o .obj/qimage_sse4.o
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/bits/stl_algo.h:59:0,
from /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/algorithm:62,
from ../../include/QtCore/../../src/corelib/global/qglobal.h:109,
from ../../include/QtCore/qglobal.h:1,
from ../../include/QtGui/../../src/gui/kernel/qtguiglobal.h:43,
from ../../include/QtGui/qtguiglobal.h:1,
from ../../include/QtGui/../../src/gui/image/qimage.h:43,
from ../../include/QtGui/qimage.h:1,
from image/qimage_sse4.cpp:40:
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^
compilation terminated.
make: *** [Makefile:1845: .obj/qimage_sse4.o] Error 1
make: *** Waiting for unfinished jobs....
* ERROR: dev-qt/qtgui-5.9.4-r3::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=dev-qt/qtgui-5.9.4-r3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-qt/qtgui-5.9.4-r3::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-qt/qtgui-5.9.4-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-qt/qtgui-5.9.4-r3/temp/environment'.
* Working directory: '/var/tmp/portage/dev-qt/qtgui-5.9.4-r3/work/qtbase-opensource-src-5.9.4/src/gui'
* S: '/var/tmp/portage/dev-qt/qtgui-5.9.4-r3/work/qtbase-opensource-src-5.9.4'
>>> Failed to emerge dev-qt/qtgui-5.9.4-r3, Log file:
>>> '/var/tmp/portage/dev-qt/qtgui-5.9.4-r3/temp/build.log'
output from emerge --info '=dev-qt/qtgui-5.9.4-r3::gentoo'
Code: Select all
Portage 2.3.24 (python 3.4.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-6.4.0, glibc-2.25-r11, 4.15.12-gentoo-4-default x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-4.15.12-gentoo-4-default-x86_64-AMD_FX-tm-6300_Six-Core_Processor-with-gentoo-2.4.1
KiB Swap: 271356 total, 271356 free
Timestamp of repository gentoo: Wed, 04 Apr 2018 08:00:01 +0000
Head commit of repository gentoo: 6c81a3f14aa41558c51f48dc4907bd6015b604f7
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
ccache version 3.2.4 [disabled]
app-shells/bash: 4.4_p12::gentoo
dev-java/java-config: 2.2.0-r4::gentoo
dev-lang/perl: 5.24.3-r1::gentoo
dev-lang/python: 2.7.14-r1::gentoo, 3.4.5-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo
dev-util/ccache: 3.2.4::gentoo
dev-util/cmake: 3.9.6::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.4.1-r2::gentoo
sys-apps/openrc: 0.34.11::gentoo
sys-apps/sandbox: 2.13::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils: 2.29.1-r1::gentoo
sys-devel/gcc: 6.4.0-r1::gentoo
sys-devel/gcc-config: 1.8-r1::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1::gentoo
sys-kernel/linux-headers: 4.15::gentoo (virtual/os-headers)
sys-libs/glibc: 2.25-r11::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-metamanifest: no
sync-rsync-extra-opts:
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -mtune=btver1 -march=btver1 -mfpmath=sse -O2 -pipe -mpopcnt -mmmx -msse -msse2 -msse3 -mssse3 -msse4a"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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"
CXXFLAGS="-O2 -mtune=btver1 -march=btver1 -mfpmath=sse -O2 -pipe -mpopcnt -mmmx -msse -msse2 -msse3 -mssse3 -msse4a"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --verbose-conflicts --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de en_GB"
MAKEOPTS="-j2"
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 aalib acl acpi alsa amd64 apng bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups cxx dbus declarative dri dts dvd dvdr emboss emf encode exif fam fdformat flac fortran gdbm gif glamor gnutls gpm gtk iconv id3tag idn ipv6 jpeg jpeg2k kipi ladspa lcms ldap libcaca libnotify libsamplerate lm_sensors lzma mad mikmod mng modplug modules mp3 mp4 mpeg multilib ncurses nls nptl offlinehelp ogg opengl openmp openvg pam pango pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt5 readline sdl seccomp secure-delete semantic-desktop smp spell ssl startup-notification svg system-cairo system-icu system-jpeg system-sqlite tcpd theora tiff timidity truetype udev udisks unicode upower usb vdpau vorbis widgets wmf wxwidgets x264 x265 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="intel-hda" 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="braindump flow karbon krita words stage sheets" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 ssse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="*" INPUT_DEVICES="keyboard mouse evdev joystick synaptics wacom v4l roccat_kone roccat_koneplus roccat_konextd roccat_konextdoptical" KERNEL="linux" L10N="en-US en-GB de-DE" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport" LIRC_DEVICES="*" LLVM_TARGETS="AMDGPU BPF X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-2" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_6" QEMU_USER_TARGETS="arm armeb m68k mips mipsel ppc ppc64 ppc64abi32 i386 x86_64" RUBY_TARGETS="ruby22 ruby23" SANE_BACKENDS="*" USERLAND="GNU" VIDEO_CARDS="r600 radeon vesa" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Code: Select all
[ebuild N ] dev-qt/qtgui-5.9.4-r3 USE="dbus egl evdev gif jpeg libinput png udev xcb -accessibility -debug -eglfs (-gles2) -ibus {-test} -tslib -tuio -vnc"
(I did not yet try to remerge gcc-6.4.0-r1, in case something broke there (why should it?), as equery belongs stdlib.h lists it also as part of gcc and the error seemed to relate to it. I might also try gcc-7.3.0 but why did it work on all other machines yet?)





