emerging dev-qt/qtlocation-5.15.10 fails; build log ends with numerous warnings like: g++: error: unrecognized command-line option ‘-Winconsistent-missing-override’ Reproducible: Always emerge --info Portage 3.0.49 (python 3.11.4-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-12, glibc-2.37-r3, 6.4.3-git x86_64) ================================================================= System uname: Linux-6.4.3-git-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.37 KiB Mem: 32780356 total, 28030484 free KiB Swap: 146483180 total, 146483180 free Timestamp of repository gentoo: Fri, 14 Jul 2023 01:45:01 +0000 Head commit of repository gentoo: f7168bc03a4a43c546e44bd3cc569b50ab021a99 Timestamp of repository Pauls: Thu, 04 Feb 2021 19:40:45 +0000 Timestamp of repository steam-overlay: Wed, 24 Feb 2021 15:55:35 +0000 Head commit of repository steam-overlay: 01ea47ce41b53b47958e557262eeb7faf85575f2 sh dash 0.5.12 ld GNU ld (Gentoo 2.40 p5) 2.40.0 ccache version 4.8.2 [disabled] app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r6::gentoo dev-java/java-config: 2.3.1-r1::gentoo dev-lang/perl: 5.36.1-r2::gentoo dev-lang/python: 3.11.4::gentoo dev-lang/rust-bin: 1.69.0-r1::gentoo dev-util/ccache: 4.8.2::gentoo dev-util/cmake: 3.26.4-r1::gentoo dev-util/meson: 1.1.1::gentoo sys-apps/baselayout: 2.13-r1::gentoo sys-apps/openrc: 0.46::gentoo sys-apps/sandbox: 2.32::gentoo sys-devel/autoconf: 2.13-r7::gentoo, 2.71-r6::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.40-r5::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 15.0.7-r1::gentoo, 16.0.5::gentoo sys-devel/gcc: 12.3.1_p20230526::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 15.0.7::gentoo, 16.0.5::gentoo sys-devel/llvm: 15.0.7-r3::gentoo, 16.0.5::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.37-r3::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.uk.gentoo.org/gentoo-portage/ priority: -1000 volatile: False sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes Pauls location: /usr/local/overlay masters: gentoo volatile: True steam-overlay location: /var/db/repos/steam-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/steam-overlay.git masters: gentoo volatile: False crossdev location: /var/db/repos/localrepo-crossdev masters: gentoo priority: 10 volatile: False ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x" AR="llvm-ar" CBUILD="x86_64-pc-linux-gnu" CC="clang" CFLAGS="-march=bdver4 -mtune=znver3 -mno-fma4 -mno-lwp -mno-tbm -mno-xop -mno-xsaves -O2" 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" CXX="clang++" CXXFLAGS="-march=bdver4 -mtune=znver3 -mno-fma4 -mno-lwp -mno-tbm -mno-xop -mno-xsaves -O2" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--ask --jobs=15 --load-average 31 --quiet-build y --buildpkg-exclude 'sys-kernel/*-sources games-simulation/flightgear-data media-video/v4l2loopback */*-bin'" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://www.mirrorservice.org/sites/distfiles.gentoo.org/" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=mold -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed" LEX="flex" LINGUAS="en_GB en en_US" MAKEOPTS="-j32 -l31" NM="llvm-nm" PKGDIR="/var/cache/binpkgs" 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" RANLIB="llvm-ranlib" RUSTFLAGS="-C target-cpu=bdver4 -C target-feature=-fma4 -C target-feature=-lwp -C target-feature=-tbm -C target-feature=-xop -C target-feature=-xsaves" SHELL="/bin/bash" USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cleartype cli cmake corefonts crypt cups dbus declarative dri dts dvb dvd dvdr elogind encode exif ffmpeg flac fontconfig fortran gdbm gif glibc-omitfp gpm gstremer gtk gui iconv icu id3 id3tag ieee1394 ipv6 java joystick jpeg kde kwallet lcms libnotify libtirpc lm-sensors mad mdadm midi mmx mmxext mng mp3 mp4 mpeg multilib mysql ncurses nls nptl nsplugin ogg opencl opengl openh264 openmp orc pam pango pcre pdf pipewire plasma png policykit popcnt ppds printsupport pulseaudio qml qt5 readline reports screencast sdl seccomp sndfile sound spell split-usr sql sse sse2 sse3 sse4a ssl startup-notification suid svg test-rust threads tiff truetype udev udisks unicode usb v4l vaapi vdpau vorbis vpx vulkan wallpapers wayland widgets wxwidgets x264 xattr xcb xcomposite xft xine xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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="karbon sheets words" CAMERAS="sony ptp2 directory" 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 greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 emu" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-GB en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="wiki-publisher" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" SANE_BACKENDS="snapscan net" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, ARFLAGS, AS, ASFLAGS, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Created attachment 865710 [details] The full build log, tarred and feathered
I also couldn't get dev-qt/qtwebengine-5.15.10_p20230623 to compile with gcc, with AFAIR similar error messages, but I don't have the build log any more (drat), and am not keen to spend an hour recreating it!
Comment on attachment 865710 [details] The full build log, tarred and feathered In the future, don't use tar to archive single files. Just compress the file directly using gzip instead.
Your emerge --info has CXX="clang++", but your build log shows "g++". I wonder if this problem is caused by building some Qt components with clang, and others with GCC.
This is likely a duplicate of bug 829940. The comments on that bug allude to the issue being caused by building qtcore and qtpositioning with different compilers.
Sorry for the mixup. FWIW, I could get qtlocation to compile with neither gcc (it threw the messages about invalid flags, all of which were for clang) not clang (treating out-of-range enums as errors not warnings.). You may be right about mixing gcc and clang - I converted to using clang almost everywhere (a very few packages won't), but have done it incrementally - i.e. I've not done "-emerge -e", just changed the necessary environment variables such as CFLAGS as per the wiki item, and let it all filter through. That said, all the Qt packages were being updated in the same emerge, so they are all clanged All that said, I found I didn't actually want qtlocation - it appeared via dependencies for marble, and it and qtpositioning are optional there, so I removed it/them, and lo an behold, no need for qtlocation! The exact same problem holds for me with everybody's favourite qtwebengine. That's got a patch that works for me - see: https://bugs.gentoo.org/903573 I can't do without qtwebengine, try as I might! I wish the package designers just used the system browser setting (firefox for me), rather than building it in. Or maybe qtwebengine should just be a wrapper to the system browser rather a browser in its own right. But who are we to complain?!
Yeah, in particular, you need at least qtcore and other qt stuff built with the same compiler.
I'just moved to clang and been hit by this bug: I cannot compile qtlocation with neither gcc nor clang, despite the fact that I pretty much recompile all qt with clang (using something along the lines of emerge --emptytree kate). Any hint?
(In reply to manu from comment #8) Please create a new bug report with a build log and emerge --info. If it turns out to be the same issue we can always close it.
Done: https://bugs.gentoo.org/930058