[8576/58204] x86_64-pc-linux-gnu-clang++ -MMD -MF obj/third_party/rnnoise/rnn_vad/rnn_vad_weights.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -DCR_LIBCXX_REVISION=28aa23ffb4c7344914a5b4ac7169f12e5a12333f -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I../../buildtools/third_party/libc++ -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wno-invalid-offsetof -Wno-vla-extension -Wno-thread-safety-reference-return -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -flto=thin -fsplit-lto-unit -fwhole-program-vtables -fcomplete-member-pointers -no-canonical-prefixes -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-c++11-narrowing-const-reference -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -nostdinc++ -isystem../../third_party/libc++/src/include -isystem../../third_party/libc++abi/src/include -fvisibility-inlines-hidden -O2 -pipe -march=native -Wno-unknown-warning-option -c ../../third_party/rnnoise/src/rnn_vad_weights.cc -o obj/third_party/rnnoise/rnn_vad/rnn_vad_weights.o [8577/58204] touch obj/third_party/rnnoise/rnn_vad.stamp [8578/58204] "python3.11" "../../build/rust/rustc_wrapper.py" --rustc=../../../../../../../../../usr/lib/rust/1.74.1//bin/rustc --depfile=obj/third_party/rust/font_types/v0_4/lib/libfont_types_lib.rlib.d --rsp=obj/third_party/rust/font_types/v0_4/lib/libfont_types_lib.rlib.rsp -- -Clinker="x86_64-pc-linux-gnu-clang++" --crate-name font_types ../../third_party/rust/chromium_crates_io/vendor/font-types-0.4.2/src/lib.rs --crate-type rlib --cfg=feature=\"std\" -Cmetadata=font_types-0.4 --edition=2021 -Cforce-unwind-tables=no -Crelocation-model=pic -Zsplit-lto-unit -Clinker-plugin-lto=yes -Coverflow-checks=on -Cdefault-linker-libraries --color=always --target=x86_64-unknown-linux-gnu -Ccodegen-units=1 -Clinker-plugin-lto=yes --cap-lints=allow -Dunsafe_op_in_unsafe_fn --sysroot=prebuilt_rustc_sysroot --emit=dep-info=obj/third_party/rust/font_types/v0_4/lib/libfont_types_lib.rlib.d,link -o obj/third_party/rust/font_types/v0_4/lib/libfont_types_lib.rlib LDFLAGS RUSTENV OUT_DIR=../../../../../../out/Release/gen/third_party/rust/font_types/v0_4/lib CARGO_PKG_VERSION=0.4.2 CARGO_PKG_NAME=font-types CARGO_PKG_DESCRIPTION=Scalar\ types\ used\ in\ fonts. CARGO_MANIFEST_DIR=../../third_party/rust/font_types/v0_4/lib/crate FAILED: obj/third_party/rust/font_types/v0_4/lib/libfont_types_lib.rlib "python3.11" "../../build/rust/rustc_wrapper.py" --rustc=../../../../../../../../../usr/lib/rust/1.74.1//bin/rustc --depfile=obj/third_party/rust/font_types/v0_4/lib/libfont_types_lib.rlib.d --rsp=obj/third_party/rust/font_types/v0_4/lib/libfont_types_lib.rlib.rsp -- -Clinker="x86_64-pc-linux-gnu-clang++" --crate-name font_types ../../third_party/rust/chromium_crates_io/vendor/font-types-0.4.2/src/lib.rs --crate-type rlib --cfg=feature=\"std\" -Cmetadata=font_types-0.4 --edition=2021 -Cforce-unwind-tables=no -Crelocation-model=pic -Zsplit-lto-unit -Clinker-plugin-lto=yes -Coverflow-checks=on -Cdefault-linker-libraries --color=always --target=x86_64-unknown-linux-gnu -Ccodegen-units=1 -Clinker-plugin-lto=yes --cap-lints=allow -Dunsafe_op_in_unsafe_fn --sysroot=prebuilt_rustc_sysroot --emit=dep-info=obj/third_party/rust/font_types/v0_4/lib/libfont_types_lib.rlib.d,link -o obj/third_party/rust/font_types/v0_4/lib/libfont_types_lib.rlib LDFLAGS RUSTENV OUT_DIR=../../../../../../out/Release/gen/third_party/rust/font_types/v0_4/lib CARGO_PKG_VERSION=0.4.2 CARGO_PKG_NAME=font-types CARGO_PKG_DESCRIPTION=Scalar\ types\ used\ in\ fonts. CARGO_MANIFEST_DIR=../../third_party/rust/font_types/v0_4/lib/crate error: the option `Z` is only accepted on the nightly compiler help: consider switching to a nightly toolchain: `rustup default nightly` note: selecting a toolchain with `+toolchain` arguments require a rustup proxy; see <https://rust-lang.github.io/rustup/concepts/index.html> note: for more information about Rust's stability policy, see <https://doc.rust-lang.org/book/appendix-07-nightly-rust.html#unstable-features> error: 1 nightly option were parsed [8579/58204] "python3.11" "../../build/rust/rustc_wrapper.py" --rustc=../../../../../../../../../usr/lib/rust/1.74.1//bin/rustc --depfile=obj/third_party/rust/qr_code/v2/lib/libqr_code_lib.rlib.d --rsp=obj/third_party/rust/qr_code/v2/lib/libqr_code_lib.rlib.rsp -- -Clinker="x86_64-pc-linux-gnu-clang++" --crate-name qr_code ../../third_party/rust/chromium_crates_io/vendor/qr_code-2.0.0/src/lib.rs --crate-type rlib -Cmetadata=qr_code-2 --edition=2018 -Cforce-unwind-tables=no -Crelocation-model=pic -Zsplit-lto-unit -Clinker-plugin-lto=yes -Coverflow-checks=on -Cdefault-linker-libraries --color=always --target=x86_64-unknown-linux-gnu -Ccodegen-units=1 -Clinker-plugin-lto=yes --cap-lints=allow -Dunsafe_op_in_unsafe_fn --sysroot=prebuilt_rustc_sysroot --emit=dep-info=obj/third_party/rust/qr_code/v2/lib/libqr_code_lib.rlib.d,link -o obj/third_party/rust/qr_code/v2/lib/libqr_code_lib.rlib LDFLAGS RUSTENV OUT_DIR=../../../../../../out/Release/gen/third_party/rust/qr_code/v2/lib CARGO_PKG_AUTHORS=kennytm\ \<kennytm@gmail.com\>,\ Riccardo\ Casatta\ \<riccardo.casatta@gmail.com\> CARGO_PKG_VERSION=2.0.0 CARGO_PKG_NAME=qr_code CARGO_PKG_DESCRIPTION=QR\ code\ encoder\ in\ Rust,\ support\ structured\ append\ \(data\ in\ multiple\ qrcodes\) CARGO_MANIFEST_DIR=../../third_party/rust/qr_code/v2/lib/crate FAILED: obj/third_party/rust/qr_code/v2/lib/libqr_code_lib.rlib "python3.11" "../../build/rust/rustc_wrapper.py" --rustc=../../../../../../../../../usr/lib/rust/1.74.1//bin/rustc --depfile=obj/third_party/rust/qr_code/v2/lib/libqr_code_lib.rlib.d --rsp=obj/third_party/rust/qr_code/v2/lib/libqr_code_lib.rlib.rsp -- -Clinker="x86_64-pc-linux-gnu-clang++" --crate-name qr_code ../../third_party/rust/chromium_crates_io/vendor/qr_code-2.0.0/src/lib.rs --crate-type rlib -Cmetadata=qr_code-2 --edition=2018 -Cforce-unwind-tables=no -Crelocation-model=pic -Zsplit-lto-unit -Clinker-plugin-lto=yes -Coverflow-checks=on -Cdefault-linker-libraries --color=always --target=x86_64-unknown-linux-gnu -Ccodegen-units=1 -Clinker-plugin-lto=yes --cap-lints=allow -Dunsafe_op_in_unsafe_fn --sysroot=prebuilt_rustc_sysroot --emit=dep-info=obj/third_party/rust/qr_code/v2/lib/libqr_code_lib.rlib.d,link -o obj/third_party/rust/qr_code/v2/lib/libqr_code_lib.rlib LDFLAGS RUSTENV OUT_DIR=../../../../../../out/Release/gen/third_party/rust/qr_code/v2/lib CARGO_PKG_AUTHORS=kennytm\ \<kennytm@gmail.com\>,\ Riccardo\ Casatta\ \<riccardo.casatta@gmail.com\> CARGO_PKG_VERSION=2.0.0 CARGO_PKG_NAME=qr_code CARGO_PKG_DESCRIPTION=QR\ code\ encoder\ in\ Rust,\ support\ structured\ append\ \(data\ in\ multiple\ qrcodes\) CARGO_MANIFEST_DIR=../../third_party/rust/qr_code/v2/lib/crate error: the option `Z` is only accepted on the nightly compiler help: consider switching to a nightly toolchain: `rustup default nightly` note: selecting a toolchain with `+toolchain` arguments require a rustup proxy; see <https://rust-lang.github.io/rustup/concepts/index.html> note: for more information about Rust's stability policy, see <https://doc.rust-lang.org/book/appendix-07-nightly-rust.html#unstable-features> error: 1 nightly option were parsed [...] ninja: build stopped: subcommand failed. * ERROR: www-client/chromium-122.0.6261.6::gentoo failed (compile phase): * ninja -v -j24 -l24 -C out/Release chrome chromedriver chrome_sandbox failed Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.38-r9, 6.6.2-gentoo-x86_64 x86_64) ================================================================= System uname: Linux-6.6.2-gentoo-x86_64-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-glibc2.38 KiB Mem: 65755708 total, 29514540 free KiB Swap: 0 total, 0 free sh bash 5.2_p26 ld GNU ld (Gentoo 2.41 p5) 2.41.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p26::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo dev-build/automake: 1.16.5-r1::gentoo dev-build/cmake: 3.28.1-r1::gentoo dev-build/libtool: 2.4.7-r2::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.3.1-r1::gentoo dev-lang/perl: 5.38.2-r1::gentoo dev-lang/python: 3.11.7::gentoo, 3.12.1_p1::gentoo dev-lang/rust: 1.74.1::gentoo sys-apps/baselayout: 2.14-r1::gentoo sys-apps/openrc: 0.53::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/binutils: 2.41-r5::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 17.0.6::gentoo sys-devel/gcc: 12.3.1_p20240112::gentoo, 13.2.1_p20240113-r1::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 17.0.6::gentoo sys-devel/llvm: 17.0.6::gentoo sys-kernel/linux-headers: 6.7::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r9::gentoo Repositories: gentoo location: /home/me/code/gentoo sync-type: git sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: True ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -flto=8 -fuse-linker-plugin -ggdb3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt" 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="-O2 -pipe -march=native -flto=8 -fuse-linker-plugin -ggdb3" DISTDIR="/chroot/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 -march=native -flto=8 -fuse-linker-plugin -ggdb3" 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 pkgdir-index-trusted 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 -march=native -flto=8 -fuse-linker-plugin -ggdb3" GENTOO_MIRRORS="http://distfiles.gentoo.org" INSTALL_MASK="/etc/X11/xinit/xinitrc.d/80-dbus /usr/bin/dbus-launch" LANG="C.UTF8" LDFLAGS="-O2 -flto=8" LEX="flex" 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" RUSTFLAGS="-C target-cpu=native" SHELL="/bin/bash" USE="X acl alsa amd64 apng bzip2 cli crypt cups dri ffmpeg fortran gdbm glamor gmp gpo iconv icu ipv6 lapack libtirpc lto minizip multilib ncurses nls opencl opengl openmp pam pcre pgo readline seccomp split-usr sqlite ssl system-llvm test-rust truetype udev unicode vdpau vulkan xattr xvmc zlib" ABI_X86="64 32" ADA_TARGET="gnat_2021" AMDGPU_TARGETS="gfx803" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha 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 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" VIDEO_CARDS="radeon r600 radeonsi amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Full build.log please.
Created attachment 883642 [details] build log
I hit the same problem with dev-lang/rust-1.74.1. Adding RUSTC_BOOTSTRAP=1 to the ebuild made www-client/chromium-122.0.6261.6[system-toolchain] build successfully, see the attached example.
Created attachment 883655 [details, diff] ebuild patch
Maciej, how is your system rust built? Are you using `USE=system-llvm`? I haven't hit this yet, but I'm trying to repro.
Patch fixes problem for me. At my setup I'm using only: 'lto profiler' for rust. No 'system-llvm'.
> Maciej, how is your system rust built? Are you using `USE=system-llvm`? > dev-lang/rust-1.74.1:stable/1.74::gentoo USE="lto profiler system-llvm" (rest of USE flags are disabled) I don't think it's system-llvm related though - it's well known that stable Rust compiler versions don't allow "Z" options without RUSTC_BOOTSTRAP.
> it's well known that stable Rust compiler versions don't allow "Z" options without RUSTC_BOOTSTRAP. And yet I can't reproduce this issue on multiple machines. Something is weird here (We did hit this during 121 stablisation though, so it's definitely real). Could you please try with the new 121 release, 121.0.6167.139, or with 122.0.6261.6-r1 and let me know if you still hit the issue? I tidied up a lot of the system-toolchain/google-toolchain stuff over the last week. It's entirely possible that in some of the USE=`system-toolchain` shuffling I missed a step that would set that envvar as part of the GN build. If it's still not working I'll dig deep into GN over the weekend and see what I can work out - I'm loathe to cargo cult an additional rust variable rather than work out why this is (seemingly?) working on most machines.
> Could you please try with the new 121 release, 121.0.6167.139, or with 122.0.6261.6-r1 and let me know if you still hit the issue? I am also affected and I just tried 122.0.6261.6-r1 and still hit the issue.
Created attachment 883862 [details] build log (122.0.6261.6-r1)
*** Bug 923265 has been marked as a duplicate of this bug. ***
(In reply to Benedikt Ziemons from comment #9) > > Could you please try with the new 121 release, 121.0.6167.139, or with 122.0.6261.6-r1 and let me know if you still hit the issue? > > I am also affected and I just tried 122.0.6261.6-r1 and still hit the issue. Hm. Does USE="-lto" make any difference? It seems to be a common factor based on the logs we have currently. I'm going to kick off a build myself but it's bedtime-ish here.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95313c187c3dfcf8964cd9a4b1b827fab2ba619b commit 95313c187c3dfcf8964cd9a4b1b827fab2ba619b Author: Matt Jolly <Matt.Jolly@footclan.ninja> AuthorDate: 2024-01-31 22:01:29 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-01-31 22:04:45 +0000 www-client/chromium: fix broken LTO builds Closes: https://bugs.gentoo.org/923032 Signed-off-by: Matt Jolly <Matt.Jolly@footclan.ninja> Closes: https://github.com/gentoo/gentoo/pull/35122 Signed-off-by: Sam James <sam@gentoo.org> www-client/chromium/Manifest | 4 ++-- www-client/chromium/chromium-121.0.6167.139.ebuild | 2 +- www-client/chromium/chromium-122.0.6261.6-r1.ebuild | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
*** Bug 923297 has been marked as a duplicate of this bug. ***