Merging package fails with error: ``` x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘--quiet’; did you mean ‘-quiet’? x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘--quiet’; did you mean ‘-quiet’? ninja: build stopped: subcommand failed. ``` Reproducible: Always Steps to Reproduce: 1. Have sys-devel/gcc-12.3.1_p20230526 emerged 2. Emerge dev-qt/qtwebengine-5.15.10_p20230623 Actual Results: Emerge fails at source file obj/QtWebEngineCore/accessibility_activation_observer.o , step [23962/24172] Expected Results: Emerge succeeds ## 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.1.19-gentoo x86_64) ================================================================= System uname: Linux-6.1.19-gentoo-x86_64-AMD_Ryzen_7_7700X_8-Core_Processor-with-glibc2.37 KiB Mem: 64964092 total, 32790000 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Wed, 12 Jul 2023 18:30:01 +0000 Head commit of repository gentoo: 8cb5483f0ef5ea115748f8db5545a77aca4fcdcf Timestamp of repository steam-overlay: Sun, 02 Jul 2023 15:32:30 +0000 Head commit of repository steam-overlay: 301e948a8983d54430c42621a58c8c9ccdc6231c sh bash 5.1_p16-r6 ld GNU ld (Gentoo 2.39 p6) 2.39.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.9.17::gentoo, 3.10.12::gentoo, 3.11.4::gentoo dev-lang/rust: 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.39-r5::gentoo, 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: /extension/usr_portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: True sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: 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 x-portage location: /usr/local/portage masters: gentoo priority: 0 volatile: True ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE PUEL dlj-1.1 AdobeFlash Oracle-BCLA-JavaSE AdobeFlash-10.3 AdobeFlash-11.x RAR unRAR linux-fw-redistributable no-source-code free-noncomm MSttfEULA freedist MPEG-4 linux-firmware FESTIVAL sun-bcla-jms XMAME" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=athlon64" 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 /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" CXXFLAGS="-O2 -pipe -march=athlon64" DISTDIR="/usr/portage/distfiles" 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-live 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 splitdebug 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.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" LINGUAS="en de" 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="/extension/tmp_portage" SHELL="/bin/bash" USE="X a52 aac acl acpi activities alsa amd64 apng arts audiofile bluetooth branding browserplugin bzip2 cairo cdaudio cdda cdr clang cli crypt cups dbus declarative dri dssi dts dv dvd dvdr dvdread elogind encode exif expat ffmpeg firefox flac fontconfig fortran frei0r gd gdbm geoip gif gimp gimpprint gles1 gles2 gpm gtk gui hal hddtemp iconv icu ipv6 jabber jack java javascript jingle jpeg jpeg2k kde kwallet ladspa lame lcms libass libnotify libsamplerate libtirpc live lm_sensors lua mad melt midi mmx mng modplug mp3 mp4 mpeg mtp multilib mysql ncurses network nls noamazon nptl nsplugin ntfsprogs ogg openal opencl openexr opengl openmp opus pam pango pcre pdf perl php pipewire plasma plotutils png policykit ppds pulseaudio python qml qt3support qt5 quicktime readline ruby samba sane sbsms screencast sdl seccomp semantic-desktop sndfile soprano sound soundtouch sox spell split-usr sql sqlite sse sse2 ssl startup-notification subversion svg system-sqlite test-rust theora threads tiff timidity tk truetype udev udisks unicode upower usb vamp video visualization vnc vorbis vpx vulkan wayland webp widgets win32codecs wma wxwidgets wxwindows x264 xattr xcb xft xml xulrunner 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" 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" INPUT_DEVICES="evdev joystick keyboard mouse aiptek" KERNEL="linux" L10N="en de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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 ruby21" 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, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ## emerge -pqv '=dev-qt/qtwebengine-5.15.10_p20230623::gentoo' [ebuild U ] dev-qt/qtwebengine-5.15.10_p20230623 [5.15.9_p20230421] USE="alsa jumbo-build pulseaudio screencast* system-icu widgets -bindist -debug -designer -geolocation -kerberos -test" ## build logs (truncated since too large for pastebin) https://pastebin.com/UdYgqnWG
Please compress the build log (using gzip or xz, etc) and attach it to this bug. Then change the bug status to UNCONFIRMED.
Created attachment 865524 [details] build.log compressed
Im seeing this. Im also running into 903573 with clang so Im unable to compile qtwebengine at all.
Created attachment 865981 [details] build.log
I haven't tried, but recently I realized that qmake remembers what it was built with (clang or gcc). It then calls g++ or clang++ (aka based on what it was built with, ignoring CC/CXX) for detection stuff leading to [-native-symlinks] issues, and then *will* respect CXX for the compilation itself with the qmake eclass settings. My "guess" would be that if you build qtcore with clang, and then try to build qtwebengine with gcc, you'll run into this because it thinks it's using clang when it's not.
(In reply to Ionen Wolkens from comment #5) > I haven't tried Well, someone in #gentoo just told me that rebuilding qtcore sorted this out for them. So that's likely it.
(In reply to Ionen Wolkens from comment #6) > (In reply to Ionen Wolkens from comment #5) > > I haven't tried > Well, someone in #gentoo just told me that rebuilding qtcore sorted this out > for them. So that's likely it. * rebuilding with gcc
I tried emerging qtcore then qtwebengine to see if it helps but the emerge of qtwebengine still fails at the same place. So the problem I see is not related to qtcore/qtwebengine being build with different compilers unless this is hidden somewhere and can't be fixed with regular emerging.
Can this bug be increased in priority? I'm up to over 100 packages blocked to be merged due to this problem here. The longer I (and others) can't update their GenToo installation the higher the chances for conflicts and breaking rendering updating night impossible in the future.
(In reply to Plüss Roland from comment #9) > (and others) I'm currently not aware of anyone else being affected by this. I was misled by the clang comment (which does affect others with a similar unrecognized option issue), but I do not see where (in your case) this --quiet is coming from. Are you setting a --quiet somewhere in /etc/portage or your environment? I don't see it in emerge --info but it could be coming from somewhere I can't see. Feels kind of like there could be a file (maybe in /etc/portage/env or something else) on your system for qtwebengine that's overriding C*FLAGS. Aka in the build.log there's: 'QMAKE_CFLAGS=-w --quiet' This is set by qmake-utils.eclass: QMAKE_CFLAGS="${CFLAGS}" So doesn't quite add up how CFLAGS translated to "-w --quiet".
You are right. I found something in env. Looks like in the past I needed to apply a performance fix. The comment reads "Adding --quiet to the emerge command will speed this up a lot.". Looks like they changed something so this old performance trick got in the way. I'll try building without it and let you know if this helps.
Looks like this solved the problem. The issue can be closed.
Nice, glad it's sorted. No problem with passing --quiet to emerge if wanted, but I'm assuming the option ended up where it shouldn't.