>>> Configuring source in /var/tmp/portage/www-client/chromium-113.0.5672.63/work/chromium-113.0.5672.63 ... * Checking whether python3_11 is suitable ... * >=dev-lang/python-3.11.1-r1:3.11[xml(+)] ... [ ok ] * python_check_deps ... * dev-python/setuptools[python_targets_python3_11(-)] ... [ ok ] * Using python3.11 to build (via EPYTHON) * strip-flags: FFLAGS: changed '-O2 -pipe -march=native -flto=8 -fuse-linker-plugin -ggdb3' to '-O2 -pipe -march=native -ggdb3' * strip-flags: FCFLAGS: changed '-O2 -pipe -march=native -flto=8 -fuse-linker-plugin -ggdb3' to '-O2 -pipe -march=native -ggdb3' * Configuring Chromium... gn gen --args= is_clang=true clang_use_chrome_plugins=false use_lld=true custom_toolchain="//build/toolchain/linux/unbundle:default" host_toolchain="//build/toolchain/linux/unbundle:default" is_debug=false dcheck_always_on=false dcheck_is_configurable=false is_component_build=false enable_nacl=false use_system_harfbuzz=true use_gnome_keyring=false enable_hangout_services_extension=true enable_widevine=false use_cups=true use_kerberos=false use_pulseaudio=false use_vaapi=true rtc_use_pipewire=false gtk_version=3 disable_fieldtrial_testing_config=true use_gold=false use_sysroot=false use_custom_libcxx=true enable_pseudolocales=false blink_enable_generated_code_formatting=false proprietary_codecs=false ffmpeg_branding="Chromium" google_api_key="AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc" target_cpu="x64" treat_warnings_as_errors=false fatal_linker_warnings=false v8_use_libm_trig_functions=true icu_use_data_file=false use_ozone=true ozone_auto_platforms=false ozone_platform_headless=true use_system_libdrm=true use_system_minigbm=true use_xkbcommon=true use_qt=false ozone_platform_x11=true ozone_platform_wayland=false ozone_platform="x11" is_official_build=true use_thin_lto=true thin_lto_enable_optimizations=true is_cfi=false symbol_level=0 chrome_pgo_phase=0 out/Release ERROR at //build/config/compiler/BUILD.gn:1407:22: Script returned non-zero exit code. clang_revision = exec_script("//tools/clang/scripts/update.py", ^---------- Current dir: /var/tmp/portage/www-client/chromium-113.0.5672.63/work/chromium-113.0.5672.63/out/Release/ Command: python3.11 /var/tmp/portage/www-client/chromium-113.0.5672.63/work/chromium-113.0.5672.63/tools/clang/scripts/update.py --print-revision --verify-version=17 Returned 1 and printed out: The expected clang version is llvmorg-17-init-4759-g547e3456-1 but the actual version is Did you run "gclient sync"? See //build/config/BUILDCONFIG.gn:333:3: which caused the file to be included. "//build/config/compiler:afdo", ^----------------------------- * ERROR: www-client/chromium-113.0.5672.63::gentoo failed (configure phase): * (no error message) Portage 3.0.47 (python 3.11.3-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.37-r2, 6.2.13-gentoo-x86_64 x86_64) ================================================================= System uname: Linux-6.2.13-gentoo-x86_64-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-glibc2.37 KiB Mem: 65745864 total, 12494224 free KiB Swap: 20971516 total, 20971516 free sh bash 5.2_p15-r2 ld GNU ld (Gentoo 2.40 p4) 2.40.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p15-r2::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.36.1-r1::gentoo dev-lang/python: 3.10.11::gentoo, 3.11.3::gentoo dev-lang/rust: 1.69.0-r1::gentoo dev-util/cmake: 3.26.3::gentoo dev-util/meson: 1.1.0::gentoo sys-apps/baselayout: 2.13-r1::gentoo sys-apps/openrc: 0.47.1::gentoo sys-apps/sandbox: 2.30-r1::gentoo sys-devel/autoconf: 2.13-r8::gentoo, 2.71-r6::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.40-r4::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 15.0.7-r1::gentoo, 16.0.3::gentoo sys-devel/gcc: 12.2.1_p20230428-r1::gentoo, 13.1.0-r1::gentoo sys-devel/gcc-config: 2.10::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 15.0.7::gentoo, 16.0.3::gentoo sys-devel/llvm: 15.0.7::gentoo, 16.0.3::gentoo sys-devel/make: 4.4.1::gentoo sys-kernel/linux-headers: 6.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.37-r2::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 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 libglvnd libtirpc lto minizip multilib ncurses nls nptl 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_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 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 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" 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="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="radeon r600 radeonsi amdgpu" 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, 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, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Same here. lto or libcxx or pgo (anything that require llvm/clang) trigger that error.
Created attachment 861215 [details, diff] Disable the test This gets things working for me
*** Bug 905867 has been marked as a duplicate of this bug. ***
(In reply to Yuki N. from comment #1) > Same here. lto or libcxx or pgo (anything that require llvm/clang) trigger > that error. Happened for me as well: The expected clang version is llvmorg-17-init-4759-g547e3456-1 but the actual version is Did you run "gclient sync"? The installed version is clang is 16.0.3, 17.x is currently masked. As can be seen in the script output above, the actual version is shown as an empty string: https://github.com/chromium/chromium/blob/113.0.5672.63/tools/clang/scripts/update.py#L360 The stamp file seems to be "third_party/llvm-build/Release+Asserts/cr_build_revision" in the source tree: https://github.com/chromium/chromium/blob/113.0.5672.63/tools/clang/scripts/update.py#L54 And it's indeed contains only a newline: # hexdump -C /var/tmp/portage/www-client/chromium-113.0.5672.63/work/chromium-113.0.5672.63/third_party/llvm-build/Release+Asserts/cr_build_revision 00000000 0a |.| 00000001
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36756f98fbabfc24deb746ac7574380a99191959 commit 36756f98fbabfc24deb746ac7574380a99191959 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2023-05-07 18:21:55 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2023-05-07 18:21:55 +0000 www-client/chromium: update compiler patch Should fix gn failure with clang. Closes: https://bugs.gentoo.org/905798 Signed-off-by: Mike Gilbert <floppym@gentoo.org> .../chromium/files/chromium-113-compiler.patch | 50 +++++++++++++++++----- 1 file changed, 39 insertions(+), 11 deletions(-)