Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914370 - www-client/chromium-117.0.5938.88 fails to compile with dev-util/gn-0.2077
Summary: www-client/chromium-117.0.5938.88 fails to compile with dev-util/gn-0.2077
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-18 05:03 UTC by François Valenduc
Modified: 2023-09-18 17:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,7.44 KB, text/x-log)
2023-09-18 05:13 UTC, François Valenduc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description François Valenduc 2023-09-18 05:03:56 UTC
Compilation of chromium-117.0.5938.88 fails immediately with this error:

>>> Source prepared.
>>> Configuring source in /var/tmp/portage/www-client/chromium-117.0.5938.88/work/chromium-117.0.5938.88 ...
 * Checking whether python3_11 is suitable ...
 *   dev-lang/python:3.11[xml(+)] ...                                                                                                                                                                                                [ ok ]
 *   python_check_deps ...
 *     dev-python/setuptools[python_targets_python3_11(-)] ...                                                                                                                                                                       [ ok ]
 * Using python3.11 to build (via EPYTHON)
 * strip-flags: CFLAGS: changed '-O2 -pipe -march=skylake -mabm --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=8192' to '-O2 -pipe -march=skylake'
 * strip-flags: CXXFLAGS: changed '-O2 -pipe -march=skylake -mabm --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=8192' to '-O2 -pipe -march=skylake'
 * strip-flags: FFLAGS: changed '-O2 -pipe -march=skylake -mabm --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=8192' to '-O2 -pipe -march=skylake'
 * strip-flags: FCFLAGS: changed '-O2 -pipe -march=skylake -mabm --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=8192' to '-O2 -pipe -march=skylake'
 * Configuring Chromium...
gn gen --args= is_clang=false use_lld=false custom_toolchain="//build/toolchain/linux/unbundle:default" host_toolchain="//build/toolchain/linux/unbundle:default" enable_rust=false is_debug=false dcheck_always_on=false dcheck_is_configurable=false is_component_build=false enable_nacl=false use_system_harfbuzz=true enable_hangout_services_extension=true enable_widevine=true use_cups=true use_kerberos=true use_pulseaudio=true use_vaapi=false rtc_use_pipewire=false gtk_version=3 disable_fieldtrial_testing_config=true use_gold=false use_sysroot=false use_custom_libcxx=false enable_pseudolocales=false blink_enable_generated_code_formatting=false proprietary_codecs=true ffmpeg_branding="Chrome" 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 moc_qt5_path="/usr/lib64/qt5/bin" use_qt=true use_qt6=false ozone_platform_x11=true ozone_platform_wayland=false ozone_platform="x11" is_official_build=true use_thin_lto=false thin_lto_enable_optimizations=false is_cfi=false symbol_level=0 chrome_pgo_phase=0  out/Release
ERROR at //third_party/blink/renderer/core/BUILD.gn:1697:14: Assignment had no effect.
  mnemonic = "ELOC_PROTO"
             ^-----------
You set the variable "mnemonic" here and it was unused before it went
out of scope.
See //BUILD.gn:1166:7: which caused the file to be included.
      "//third_party/blink/renderer/core:gen_files_for_web_tests",
      ^----------------------------------------------------------
 * ERROR: www-client/chromium-117.0.5938.88::gentoo failed (configure phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 5122:  Called chromium_configure '0'
 *   environment, line 2428:  Called die
 * The specific snippet of code:
 *       "$@" || die
 *
 * If you need support, post the output of `emerge --info '=www-client/chromium-117.0.5938.88::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-client/chromium-117.0.5938.88::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/www-client/chromium-117.0.5938.88/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/chromium-117.0.5938.88/temp/environment'.
 * Working directory: '/var/tmp/portage/www-client/chromium-117.0.5938.88/work/chromium-117.0.5938.88'
 * S: '/var/tmp/portage/www-client/chromium-117.0.5938.88/work/chromium-117.0.5938.88'

I try to build chromium with the following use flags:

[ebuild     U ~] www-client/chromium-117.0.5938.88:0/stable::gentoo [116.0.5845.187:0/stable::gentoo] USE="X cups hangouts kerberos official (pic) proprietary-codecs pulseaudio qt5 suid system-harfbuzz system-icu system-png system-zstd%* widevine (-component-build) -custom-cflags -debug -gtk4 (-headless) -libcxx -lto -pax-kernel (-pgo) -qt6 -screencast (-selinux) (-system-av1) (-system-ffmpeg) -vaapi -wayland" L10N="fr -af -am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW" 0 KiB


Reproducible: Always




output of emerge --info:

Portage 3.0.49 (python 3.11.5-final-0, default/linux/amd64/17.1/systemd/merged-usr, gcc-12, glibc-2.37-r3, 6.1.53 x86_64)
=================================================================
System uname: Linux-6.1.53-x86_64-Intel-R-_Xeon-R-_CPU_E5-2620_v3_@_2.40GHz-with-glibc2.37
KiB Mem:    65868940 total,  25230464 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 18 Sep 2023 04:46:38 +0000
Head commit of repository gentoo: 0f555cb1ebd5c4b9841bc02dc77249e3730f098e

Timestamp of repository guru: Sat, 16 Sep 2023 09:46:33 +0000
Head commit of repository guru: c2635daa8b5083abc4c5ed7a0f3e42727b1f2398

Timestamp of repository haskell: Thu, 14 Sep 2023 05:49:09 +0000
Head commit of repository haskell: dcdef449103e3ceae78ec6e6bafcffc6a113c69c

Head commit of repository jgenco: b18ad785733f5981b4d3c0e34888e5d3c46cca9b

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
ccache version 4.8.2 [enabled]
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.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo
dev-lang/rust:             1.71.1::gentoo
dev-util/ccache:           4.8.2::gentoo
dev-util/cmake:            3.26.5-r2::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-apps/systemd:          253.6::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo, 13.2.1_p20230826::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.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::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: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    volatile: False
    sync-git-verify-commit-signature: yes

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

haskell
    location: /var/db/repos/haskell
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/haskell.git
    masters: gentoo
    volatile: False

jgenco
    location: /var/db/repos/jgenco
    sync-type: git
    sync-uri: https://github.com/jgenco/jgenco-overlay.git
    masters: gentoo
    volatile: False

scaleway
    location: /usr/local/portage
    masters: gentoo
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf /usr/share/pgadmin4/web"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask y"
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"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live buildsyspkg ccache 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 sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j17 -l18"
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"
SHELL="/bin/zsh"
USE="X acl acpi amd64 apparmor bzip2 cli crypt dri fortran gdbm iconv icu ipv6 java libtirpc multilib ncurses nls nptl opengl openmp pam pcre readline samba seccomp ssl systemd test-rust udev unicode vhosts vim-syntax xattr 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="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sse3 sse4_1 sse4_2 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" INPUT_DEVICES="libinput evdev" KERNEL="linux" L10N="fr" 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="postgres16" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="qxl" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, 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
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-18 05:05:50 UTC
please attach the full build.log.
Comment 2 François Valenduc 2023-09-18 05:08:51 UTC
As I said, compilation fails right away. The full build log is already in the bug. What precedes the "Source prepated" line is the usual decompression of the sources and the application of the patches.
Comment 3 François Valenduc 2023-09-18 05:13:46 UTC
Created attachment 870830 [details]
build log
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-18 05:17:41 UTC
(In reply to François Valenduc from comment #2)
> As I said, compilation fails right away. 

It's built fine for me, but the build.log is the format we expect, and it has the effective USE flags for the build, as well as other information at the start.
Comment 5 Matt Jolly gentoo-dev 2023-09-18 05:36:57 UTC
I'm not sure exactly what's going on here.

You seem to have somehow ended up trying to configure a test target for blink.

That target is seemingly broken, hence the below:

```
ERROR at //third_party/blink/renderer/core/BUILD.gn:1697:14: Assignment had no effect.
  mnemonic = "ELOC_PROTO"
             ^-----------
You set the variable "mnemonic" here and it was unused before it went
out of scope.
```

You shouldn't be going down that codepath though; we don't include any 'test' mechanism for Chromium.

I can't reproduce this issue on my dev machine with identical USE flags...
Comment 6 Matt Jolly gentoo-dev 2023-09-18 05:38:03 UTC
[ebuild   R   ~] www-client/chromium-117.0.5938.88:0/stable::gentoo  USE="X cups hangouts kerberos* official (pic) proprietary-codecs pulseaudio qt5 suid system-harfbuzz system-icu system-png system-zstd widevine* (-component-build) -custom-cflags -debug -gtk4* (-headless) -libcxx -lto -pax-kernel (-pgo) -qt6 -screencast* (-selinux) (-system-av1) (-system-ffmpeg) -vaapi -wayland*" L10N="-af -am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW" 0 KiB
Comment 7 Ionen Wolkens gentoo-dev 2023-09-18 05:57:47 UTC
Haven't tried myself, but have you tried with stable dev-util/gn? This is a stable system and I was looking at [1] and it mentions mnemonic

[1] https://github.com/chromium/chromium/commit/2d9d3c9fdbd972825616e32e25ca6c12b2dadaec
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-18 06:02:47 UTC
(In reply to Ionen Wolkens from comment #7)
> Haven't tried myself, but have you tried with stable dev-util/gn? This is a
> stable system and I was looking at [1] and it mentions mnemonic
> 
> [1]
> https://github.com/chromium/chromium/commit/
> 2d9d3c9fdbd972825616e32e25ca6c12b2dadaec

I was just about to ask about gn version..
Comment 9 François Valenduc 2023-09-18 06:13:24 UTC
I am using the current stable version of gn (0.2077). Should I try with a newer one ?
Comment 10 Matt Jolly gentoo-dev 2023-09-18 06:13:42 UTC
(In reply to Ionen Wolkens from comment #7)
> Haven't tried myself, but have you tried with stable dev-util/gn? This is a
> stable system and I was looking at [1] and it mentions mnemonic
> 

Nailed it. Builds fail with stable gn.

@François Valenduc; you can retry after unmasking a 'testing' (~arch) version of gn.

Longer term, is there a reason _not_ to use the bundled gn?
Comment 11 Larry the Git Cow gentoo-dev 2023-09-18 06:26:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=050682eae3589e969d9adda25c022c7c5e527c5b

commit 050682eae3589e969d9adda25c022c7c5e527c5b
Author:     Matt Jolly <Matt.Jolly@footclan.ninja>
AuthorDate: 2023-09-18 06:22:12 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-18 06:26:13 +0000

    www-client/chromium: update `dev-util/gn` dependency for 117
    
    Closes: https://bugs.gentoo.org/914370
    Signed-off-by: Matt Jolly <Matt.Jolly@footclan.ninja>
    Closes: https://github.com/gentoo/gentoo/pull/32893
    Signed-off-by: Sam James <sam@gentoo.org>

 www-client/chromium/chromium-117.0.5938.88.ebuild | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Comment 12 Ionen Wolkens gentoo-dev 2023-09-18 06:29:03 UTC
(In reply to Matt Jolly from comment #10)
> Longer term, is there a reason _not_ to use the bundled gn?
Perhaps if it handles bootstrapping gn badly for cross-compilation like qtwebengine:6 does. Not that I ever really looked at chromium proper without Qt's cmake wrappers.

Either way, lower bound for gn could be bumped aggressively rather than worry about "lowest that works".
Comment 13 François Valenduc 2023-09-18 17:12:36 UTC
Indeed, it compiles fine with a newer version of gn (0.2114).

Thanks for your help.