Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948832 - emerge www-client/chromium-132.0.6834.83 fails on PPC64: ERROR at //build/config/clang/BUILD.gn:178:11: Assertion failed.
Summary: emerge www-client/chromium-132.0.6834.83 fails on PPC64: ERROR at //build/con...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal major
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-25 18:28 UTC by dmoreno
Modified: 2025-02-13 10:59 UTC (History)
2 users (show)

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


Attachments
Build log (build.log,16.25 KB, text/x-log)
2025-01-25 18:28 UTC, dmoreno
Details
Patch to solve current issue (01-add-ppc64-arch.patch,533 bytes, patch)
2025-01-31 17:17 UTC, dmoreno
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dmoreno 2025-01-25 18:28:55 UTC
Created attachment 917504 [details]
Build log

emerge www-client/chromium-132.0.6834.83 fails on PPC64.

The emerge process is aborted at its early stages with the following error message: 

 * 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" rust_bindgen_root="/usr/" bindgen_libclang_path="/usr/lib/llvm/19/lib64" clang_base_path="/usr/lib/clang/19/" rust_sysroot_absolute="/opt/rust-bin-1.83.0/" rustc_version="1.83.0" 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=false enable_widevine=false use_cups=false use_kerberos=false use_pulseaudio=true use_vaapi=true rtc_use_pipewire=false gtk_version=4 link_pulseaudio=true disable_fieldtrial_testing_config=true 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="ppc64" treat_warnings_as_errors=false fatal_linker_warnings=false v8_use_libm_trig_functions=true enable_nocompile_tests=false enable_freetype=true use_ozone=true ozone_auto_platforms=false ozone_platform_headless=true use_system_minigbm=true use_xkbcommon=true use_qt=false ozone_platform_x11=true ozone_platform_wayland=true ozone_platform="wayland" use_system_libffi=true use_thin_lto=true thin_lto_enable_optimizations=true is_official_build=true is_cfi=false symbol_level=0 chrome_pgo_phase=0 devtools_skip_typecheck=false  out/Release
ERROR at //build/config/clang/BUILD.gn:178:11: Assertion failed.
          assert(false)  # Unhandled cpu type
          ^-----
See //build/config/clang/BUILD.gn:215:1: whence it was called.
clang_lib("compiler_builtins") {
^-------------------------------
See //build/config/BUILDCONFIG.gn:403:5: which caused the file to be included.
    "//build/config/clang:find_bad_constructs",
    ^-----------------------------------------


Reproducible: Always

Steps to Reproduce:
1.emerge =www-client/chromium-132.0.6834.83

Actual Results:  
Emerge fails.

Expected Results:  
Package gets installed on the system.

Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/ppc64le/23.0/systemd, gcc-14, glibc-2.40-r5, 6.6.62-202412201924-ppc64le ppc64le)
=================================================================
System uname: Linux-6.6.62-202412201924-ppc64le-ppc64le-POWER9_-raw-,_altivec_supported-with-glibc2.40
KiB Mem:    83276416 total,   7283776 free
KiB Swap:   33554368 total,  33550272 free
Timestamp of repository gentoo: Sat, 18 Jan 2025 14:33:26 +0000
Head commit of repository gentoo: e6e95c619fc17f8c330477010b2f2d89afa511f4

Timestamp of repository guru: Fri, 17 Jan 2025 14:33:26 +0000
Head commit of repository guru: 1ca117df78bec56d8d3d9f9a1e321fa5db75eea3

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.6::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.5.2::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.11.11_p1::gentoo, 3.12.8_p1::gentoo, 3.13.1_p1::gentoo
dev-lang/rust-bin:         1.81.0-r101::gentoo, 1.82.0-r101::gentoo, 1.83.0::gentoo
llvm-core/clang:           19.1.4::gentoo
llvm-core/lld:             19.1.4::gentoo
llvm-core/llvm:            18.1.8-r6::gentoo, 19.1.4::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-apps/systemd:          256.7::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r5::gentoo
Repositories:

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

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

ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="@FREE"
CBUILD="powerpc64le-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=power9 -ftracer -frename-registers -fweb -flto=4 -fuse-linker-plugin -ftree-vectorize -fno-semantic-interposition"
CHOST="powerpc64le-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -mcpu=power9"
DISTDIR="/var/cache/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 -mcpu=power9"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted 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 -mcpu=power9"
GENTOO_MIRRORS="http://mirrors.aliyun.com/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1,--as-needed -O2 -pipe -mcpu=power9 -ftracer -frename-registers -fweb -flto=4 -fuse-linker-plugin -ftree-vectorize -fno-semantic-interposition"
LEX="reflex"
MAKEOPTS="-j32"
PKGDIR="/var/cache/binpkgs"
PORTAGE_BINHOST="http://binhost.bugzone.org/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes --new-compress"
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/bash"
USE="GNome-keyring X acl activities aio alsa appindicator aqbanking bzip2 calendar chm colord crypt cryptsetup cups dav1d dbus device-mapper djvu drm dvd encode epub exif fftw flac fontconfig gmp gnome gnome-shell gold gtk gtk4 harfbuzz hbci heif http2 iconv idn introspection ipv6 jemalloc jpeg jpeg2k jumbo-build keyring lapack latex lcms libass libproxy lm-sensors lto lzma map marble mp3 musicbrainz nautilus ncurses numa ocamlopt ofx ogg openmp opus pam pcre pdf pgo phonon pie pipewire pkcs11 png ppc64 pulseaudio raw readline savedconfig spell ssl svg system-icu systemd taglib test-rust theora threads tiff tpm truetype udev unicode usb v4l vala vorbis vpx vulkan wayland webp x264 x265 xattr xcb xkb zlib" ADA_TARGET="gcc_14" 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_PPC="altivec vsx vsx2 vsx3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="PowerPC BPF AMDGPU" LUA_SINGLE_TARGET="lua5-3" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31" SANE_BACKENDS="plustek" VIDEO_CARDS="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, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 dmoreno 2025-01-31 17:17:36 UTC
Created attachment 918007 [details, diff]
Patch to solve current issue
Comment 2 dmoreno 2025-01-31 17:18:00 UTC
Please find attached a patch that got me passed the configure phase (I got another error, though, this time during the compile phase).
Comment 3 Matt Jolly gentoo-dev 2025-02-01 07:09:12 UTC
Thanks, I'll get this added to the patch repo. How did you go with the compilation? I can check for an updated patchset at Raptor and pull in any fixes, but if you can provide specifics I can take a look (feel free to log a new ticket to track that!)
Comment 4 dmoreno 2025-02-01 18:36:34 UTC
I'm still struggling with compilation. I've created a new bug report (949199), which I guess will make search and traceability easier. Sorry for flooding you with so many bug reports.
I might try to use a more recent llvm version. Not sure yet.
Comment 5 Matt Jolly gentoo-dev 2025-02-10 10:41:02 UTC
Merging this into 135 and will get the other channels updated as releases come out this week. Also looking into the swiftshader bug that you filed.

Please don't apologise for filing bugs - We want this package to work on PPC64 and the only way that we can make progress with that is by addressing issues as they come up - keep filing!
Comment 6 Larry the Git Cow gentoo-dev 2025-02-13 10:59:13 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72a385017cae2d98eb3327209744bfde14dca1f3

commit 72a385017cae2d98eb3327209744bfde14dca1f3
Author:     Matt Jolly <kangie@gentoo.org>
AuthorDate: 2025-02-13 10:30:29 +0000
Commit:     Matt Jolly <kangie@gentoo.org>
CommitDate: 2025-02-13 10:50:45 +0000

    www-client/chromium: add 133.0.6943.98
    
    Includes the glibc-2.41 patch and updates GN
    to enable PPC via the gentoo patchset.
    
    Raptor Engineering patchset updated and ~ppc64 keyworded.
    
    Bug: https://bugs.gentoo.org/949698
    Bug: https://bugs.gentoo.org/948832
    Bug: https://bugs.gentoo.org/948384
    Bug: https://bugs.gentoo.org/949654
    Signed-off-by: Matt Jolly <kangie@gentoo.org>

 www-client/chromium/Manifest                      |    4 +
 www-client/chromium/chromium-133.0.6943.98.ebuild | 1441 +++++++++++++++++++++
 2 files changed, 1445 insertions(+)

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

commit a5e2e67ba0a676fbcbd56ddbf2fa75aad70170b1
Author:     Matt Jolly <kangie@gentoo.org>
AuthorDate: 2025-02-13 00:23:58 +0000
Commit:     Matt Jolly <kangie@gentoo.org>
CommitDate: 2025-02-13 10:49:24 +0000

    www-client/chromium: add 134.0.6998.15
    
    Includes the glibc-2.41 patch and updates GN
    to enable PPC via the gentoo patchset (for when
    patches are available).
    
    Bug: https://bugs.gentoo.org/948832
    Bug: https://bugs.gentoo.org/948384
    Bug: https://bugs.gentoo.org/949654
    Signed-off-by: Matt Jolly <kangie@gentoo.org>

 www-client/chromium/Manifest                       |    3 +
 www-client/chromium/chromium-134.0.6998.15.ebuild  | 1535 ++++++++++++++++++++
 .../files/chromium-134-map_droppable-glibc.patch   |   35 +
 3 files changed, 1573 insertions(+)