Created attachment 546798 [details] build.log In file included from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:94: /usr/include/linux/stat.h:18:8: error: redefinition of ‘struct statx_timestamp’ struct statx_timestamp { ^~~~~~~~~~~~~~~ In file included from /usr/include/sys/stat.h:446, from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/mkspecs/linux-g++/qplatformdefs.h:75, from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:42: /usr/include/bits/statx.h:25:8: note: previous definition of ‘struct statx_timestamp’ struct statx_timestamp ^~~~~~~~~~~~~~~ In file included from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:94: /usr/include/linux/stat.h:61:8: error: redefinition of ‘struct statx’ struct statx { ^~~~~ In file included from /usr/include/sys/stat.h:446, from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/mkspecs/linux-g++/qplatformdefs.h:75, from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:42: /usr/include/bits/statx.h:36:8: note: previous definition of ‘struct statx’ struct statx ^~~~~ /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:110:12: error: ‘int renameat2(int, const char*, int, const char*, unsigned int)’ was declared ‘extern’ and later ‘static’ [-fpermissive] static int renameat2(int oldfd, const char *oldpath, int newfd, const char *newpath, unsigned flags) ^~~~~~~~~ In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/cstdio:42, from /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/ext/string_conversions.h:43, from /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/bits/basic_string.h:6391, from /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/string:52, from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/include/QtCore/../../src/corelib/tools/qbytearray.h:52, from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/include/QtCore/qbytearray.h:1, from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/include/QtCore/../../src/corelib/tools/qstring.h:49, from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/include/QtCore/qstring.h:1, from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/include/QtCore/../../src/corelib/io/qiodevice.h:50, from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/include/QtCore/qiodevice.h:1, from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/include/QtCore/../../src/corelib/io/qfiledevice.h:43, from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/include/QtCore/qfiledevice.h:1, from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/src/corelib/io/qfile.h:44, from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_p.h:54, from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:43: /usr/include/stdio.h:164:12: note: previous declaration of ‘int renameat2(int, const char*, int, const char*, unsigned int)’ extern int renameat2 (int __oldfd, const char *__old, int __newfd, ^~~~~~~~~ /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:115:12: error: ‘int statx(int, const char*, int, unsigned int, statx*)’ was declared ‘extern’ and later ‘static’ [-fpermissive] static int statx(int dirfd, const char *pathname, int flag, unsigned mask, struct statx *statxbuf) ^~~~~ In file included from /usr/include/sys/stat.h:446, from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/mkspecs/linux-g++/qplatformdefs.h:75, from /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:42: /usr/include/bits/statx.h:87:5: note: previous declaration of ‘int statx(int, const char*, int, unsigned int, statx*)’ int statx (int __dirfd, const char *__restrict __path, int __flags, ^~~~~ x86_64-pc-linux-gnu-g++ -c -o qlibraryinfo.o -O3 -march=native -pipe -std=c++11 -ffunction-sections -I/var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/qmake -I/var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/qmake/library -I/var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/qmake/generators -I/var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/qmake/generators/unix -I/var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/qmake/generators/win32 -I/var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/qmake/generators/mac -I/var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/include -I/var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/include/QtCore -I/var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/include/QtCore/5.11.1 -I/var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/include/QtCore/5.11.1/QtCore -I../src/corelib/global -I/var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/mkspecs/linux-g++ -DQT_VERSION_STR=\"5.11.1\" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=11 -DQT_VERSION_PATCH=1 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH -DQT_BUILD_QMAKE_BOOTSTRAP /var/tmp/portage/dev-qt/qtcore-5.11.1-r1/work/qtbase-everywhere-src-5.11.1/src/corelib/global/qlibraryinfo.cpp gmake: *** [Makefile:422: qfilesystemengine_unix.o] Error 1 gmake: *** Waiting for unfinished jobs....
Hm, builds here fine. Can you please add the `emerge --info` and the `qfile -v /usr/include/linux/stat.h` output?
It's happening on 3 machines, but they're all similar setups Portage 2.3.49 (python 3.6.6-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-8.2.0, glibc-2.28, 4.19.0-rc1-agd5f+ x86_64) ================================================================= System uname: Linux-4.19.0-rc1-agd5f+-x86_64-AMD_Ryzen_5_2400G_with_Radeon_Vega_Graphics-with-gentoo-2.6 KiB Mem: 31786340 total, 19524256 free KiB Swap: 0 total, 0 free Head commit of repository gentoo: da990630621fbb8ab58c17da2a04a04b4a30d162 Head commit of repository FireBurn: d3d7d95c7050bd524799c58d929c3778c4753301 Head commit of repository gamerlay: c4bf54dcf5d6ce68622a493fa51c35c3f3fc215a Head commit of repository kde: fee3efe35286fc7856b0a5abb69b858c5f7a977e Timestamp of repository qt: Thu, 13 Sep 2018 10:43:53 +0000 Head commit of repository qt: d69ebbe19f65ebdc672f33a07b54ae073f3cef80 Timestamp of repository steam-overlay: Sun, 09 Sep 2018 22:04:02 +0000 Head commit of repository steam-overlay: bfaeca36fcfab9c96d135309163981e952d9a1cf sh bash 4.4_p23 ld GNU gold (Gentoo 2.31.1 p1 2.31.1) 1.16 app-shells/bash: 4.4_p23::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.26.2::gentoo dev-lang/python: 2.7.15::gentoo, 3.6.6::gentoo dev-util/cmake: 3.12.2::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.16.1-r1::gentoo sys-devel/binutils: 2.31.1::gentoo sys-devel/gcc: 8.2.0-r2::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers) sys-libs/glibc: 2.28::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo/gentoo priority: -1000 FireBurn location: /var/db/repos/FireBurn sync-type: git sync-uri: https://github.com/gentoo-mirror/FireBurn.git masters: gentoo gamerlay location: /var/db/repos/gamerlay sync-type: git sync-uri: https://github.com/gentoo-mirror/gamerlay.git masters: gentoo kde location: /var/db/repos/kde sync-type: git sync-uri: https://github.com/gentoo-mirror/kde.git masters: gentoo qt location: /var/db/repos/qt sync-type: git sync-uri: https://github.com/gentoo-mirror/qt.git masters: gentoo steam-overlay location: /var/db/repos/steam-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/steam-overlay.git masters: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -march=native -pipe" 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 /usr/share/themes/oxygen-gtk/gtk-3.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="-O3 -march=native -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask-write --with-bdeps y --complete-graph y --keep-going" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" 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="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" LINGUAS="en_GB en" MAKEOPTS="-j8" 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 aacs acl acpi activities adobe-cff aio alsa amd64 amr apng berkdb bidi bluetooth bluray branding brightness-control bzip2 cairo cdr chm classic cleartype_hinting cli connection-sharing crypt cups custom-cflags custom-optimization cxx d3d9 dbus declarative dri dri3 drm dts dvdr ebook egl emboss encode evdev exif fam ffmpeg flac flash fortran gbm gdbm gif glamor gles gles1 gnutls gold googledrive gpm graphite gstreamer gtk gtkstyle harfbuzz hidpi hotwording http2 hwaccel iconv icu inotify ipv6 ithreads jpeg kipi kwallet lcms ldap libass libdrm libinput libkms libnotify libtirpc llvm lm_sensors lto lzma lzo mad mng modules mp3 mp4 mpeg mpris mpx mtp multilib ncurses networkmanager nls nptl nsplugin ogg openal opengl openmp openssl opus pam pango pba pcre pcre16 pdf pdfimport phonon plasma png policykit postproc ppds proprietary-codecs pulseaudio qml qrcode qt5 readline samba seccomp secure-delete shenandoah sndfile spell ssl staging startup-notification steamfonts steamruntime streaming svg sync-plugin-portage system-cairo system-harfbuzz system-jpeg system-libevent system-libvpx system-sqlite systemd sysv-utils tcpd theora threads thumbnail tiff touchpad trayicon truetype udev udisks unicode upower usb user-session v4l vaapi vdpau video vorbis vpx vulkan wayland wayland-compositor webp widevine widgets wifi winbind x264 x265 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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 access_compat" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics libinput" KERNEL="linux" L10N="en-GB en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6 python2_7" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi amdgpu" 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_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS One uses -O2 -march=native and a 4.18 gentoo kernel
sys-kernel/linux-headers-4.17 (/usr/include/linux/stat.h)
I had a feeling... sys-libs/glibc: 2.28 ...and it rang true. :] I'm not certain it is to be blamed, but that's going to be my personal favourite for the main suspect at this time.
Definitely seems 'glibc-2.28' related now that josef64 via IRC reminded me about this. What that made me remember, is that I had seen something at least similar before [1], and looking at it now, it seems rather identical. 1. https://forums.gentoo.org/viewtopic-p-8260396.html#8260396
https://code.qt.io/cgit/qt/qtbase.git/commit/?id=25feee4e061b99edab79503d81f5bd045c6c8e3d
*** Bug 666322 has been marked as a duplicate of this bug. ***
Fixed upstream: https://github.com/qt/qtbase/commit/25feee4e061b99edab79503d81f5bd045c6c8e3d#diff-e061e747264146cf47a86b371e512348
Yeah downloading https://github.com/qt/qtbase/commit/25feee4e061b99edab79503d81f5bd045c6c8e3d.patch and popping it in /etc/portage/patches/dev-qt/qtcore git it compiling for me
This should be fixed with the addition of dev-qt/qtcore-5.11.2, please re-open if otherwise.