# emerge -pqv '=www-client/chromium-120.0.6099.56::gentoo' [ebuild N ] www-client/chromium-120.0.6099.56 USE="X cups gtk4 hangouts kerberos official proprietary-codecs pulseaudio qt5 screencast system-harfbuzz system-icu system-png system-zstd wayland -custom-cflags -debug (-headless) -libcxx -lto -pax-kernel (-pgo) (-qt6) (-selinux) -vaapi (-widevine)" L10N="he ru -af -am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW" # emerge --info '=www-client/chromium-120.0.6099.56::gentoo' Portage 3.0.55 (python 3.12.0-final-0, default/linux/arm64/17.0/desktop/gnome/systemd/merged-usr, gcc-13, glibc-2.38-r7, 6.6.3-gentoo-arm64 aarch64) ================================================================= System Settings ================================================================= System uname: Linux-6.6.3-gentoo-arm64-aarch64-with-glibc2.38 KiB Mem: 32817360 total, 8488560 free KiB Swap: 8388604 total, 8388092 free Timestamp of repository gentoo: Thu, 30 Nov 2023 11:00:01 +0000 Head commit of repository gentoo: 61a35184b24adb0b422a7e9c53840fe21fa84b27 Timestamp of repository EmilienMottet: Mon, 27 Nov 2023 11:17:06 +0000 Head commit of repository EmilienMottet: 488b2f8eb103d862e5917dbd7453a4d64a11640f Timestamp of repository HomeAssistantRepository: Fri, 24 Nov 2023 19:01:54 +0000 Head commit of repository HomeAssistantRepository: c9bf0ad5b90915cc2a7ac82c6d885082f0080116 Timestamp of repository darkelf: Mon, 13 Nov 2023 22:45:37 +0000 Head commit of repository darkelf: 0bd04c60084ab7425ec0beade82258725f8e32cc Timestamp of repository guru: Thu, 30 Nov 2023 10:46:51 +0000 Head commit of repository guru: 75dc77190799b5c473765254f5721e603852b879 Timestamp of repository inode64-overlay: Wed, 29 Nov 2023 12:16:49 +0000 Head commit of repository inode64-overlay: d9d25dfabceb72345b5824f3c2912970eb95a5bd Timestamp of repository kde: Wed, 29 Nov 2023 20:33:55 +0000 Head commit of repository kde: aacc71fdeb6fa7d8a4ab1a22a59053722c9884ec Timestamp of repository pentoo: Thu, 30 Nov 2023 05:31:41 +0000 Head commit of repository pentoo: 9630c38786aa7f65fa80f0a6f47453a3823dd1f6 sh bash 5.2_p21 ld GNU ld (Gentoo 2.41 p2) 2.41.0 ccache version 4.8.3 [enabled] app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p21::gentoo dev-java/java-config: 2.3.3-r1::gentoo dev-lang/perl: 5.38.2::gentoo dev-lang/python: 3.10.13::gentoo, 3.11.6::gentoo, 3.12.0_p1::gentoo dev-lang/rust: 1.73.0::gentoo dev-lang/rust-bin: 1.73.0::gentoo dev-util/ccache: 4.8.3::gentoo dev-util/cmake: 3.27.9::gentoo dev-util/meson: 1.3.0::gentoo sys-apps/baselayout: 2.14-r1::gentoo sys-apps/sandbox: 2.38::gentoo sys-apps/systemd: 254.7::gentoo sys-devel/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.41-r2::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo sys-devel/gcc: 12.3.1_p20230825::gentoo, 13.2.1_p20231014::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 17.0.6::gentoo sys-devel/llvm: 14.0.6-r4::gentoo, 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r7::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: EmilienMottet location: /var/db/repos/EmilienMottet sync-type: git sync-uri: https://github.com/gentoo-mirror/EmilienMottet.git masters: gentoo volatile: False HomeAssistantRepository location: /var/db/repos/HomeAssistantRepository sync-type: git sync-uri: https://github.com/gentoo-mirror/HomeAssistantRepository.git masters: gentoo volatile: False darkelf location: /var/db/repos/darkelf sync-type: git sync-uri: https://github.com/gentoo-mirror/darkelf.git masters: gentoo volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False inode64-overlay location: /var/db/repos/inode64-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/inode64-overlay.git masters: gentoo volatile: False kde location: /var/db/repos/kde sync-type: git sync-uri: https://github.com/gentoo-mirror/kde.git masters: gentoo volatile: False pentoo location: /var/db/repos/pentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/pentoo.git masters: gentoo volatile: False Binary Repositories: gentoobinhost priority: 1 sync-uri: https://gentoo.osuosl.org/releases/arm64/binpackages/17.0/arm64 ACCEPT_KEYWORDS="arm64 ~arm64" ACCEPT_LICENSE="* -@EULA geekbench Microsoft-vscode TeamViewer Vivaldi" CBUILD="aarch64-unknown-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" CHOST="aarch64-unknown-linux-gnu" CONFIG_PROTECT="/etc /opt/zookeeper-bin/conf /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/apache2-php8.2/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/php/phpdbg-php8.2/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="-march=native -O2 -pipe -fomit-frame-pointer" 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="-march=native -O2 -pipe -fomit-frame-pointer" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache 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 strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr" FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" GENTOO_MIRRORS="https://mirror.isoc.org.il/pub/gentoo/ https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/" LANG="en_US.utf8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j6" 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/bash" USE="X a52 aac accessibility acl acpi alsa arm64 audit bash-completion berkdb bidi bluetooth branding brotli btrfs bzip2 cairo cdda cdr cli colord crypt cryptsetup cups curl dbus designer device-mapper doc dri dts dvdr eds emacs encode evdev evo examples exif experimental ffmpeg flac fortran fuse gamepad gdbm gif git gmp gnome gnome-keyring gnome-online-accounts gnome-shell gnutls go gpg gpm gstreamer gtk gtk-doc gui hscolour html http iconv icu idn introspection iodbc ipv6 jack java jemalloc joystick jpeg json kde kerberos keyring lcms ldap libnotify libtirpc lua lvm lz4 lzma lzo mad man mbedtls mng mongodb mp3 mp4 mpeg multimedia mysql nas nautilus ncurses netlink network networkmanager nfs nls nptl nss odbc offensive ogg opengl openmp openssl pam pango pcap pcre pdf perl pkcs11 plasma plugins png policykit postgres ppds pulseaudio python qml qt5 readline redis samba sasl screencast sdl seccomp semantic-desktop snmp sound source speech spell sqlite ssl startup-notification svg symlink sysprof systemd tcl telemetry test-rust threads tiff tk tools tracker truetype udev udisks unicode upower usb utils v4l vala vim-syntax vnc vorbis vulkan wayland webengine webkit webp wxwidgets x264 xattr xcb xft xinerama xml xv xvid yaml zeroconf zip zlib zsh-completion zstd" 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 stage" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v8" 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="evdev joystick libinput" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_11 python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="virgl" 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, 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
Created attachment 875953 [details] build.log
[31mFAILED: [0mchrome_sandbox "python3.11" "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome_sandbox" -- aarch64-unknown-linux-gnu-clang++ -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-mllvm,-enable-machine-outliner=never -no-canonical-prefixes -rdynamic -Wl,-z,defs -Wl,--as-needed -nostdlib++ -pie -Wl,--disable-new-dtags -Wl,-O1 -Wl,--as-needed -o "./chrome_sandbox" -Wl,--start-group @"./chrome_sandbox.rsp" -Wl,--end-group -ldl -lpthread -lrt /usr/bin/aarch64-unknown-linux-gnu-ld.bfd: unrecognised emulation mode: llvm Supported emulations: aarch64linux aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb aarch64linuxb aarch64linux32 aarch64linux32b armelfb_linux_eabi armelf_linux_eabi aarch64-unknown-linux-gnu-clang++: error: linker command failed with exit code 1 (use -v to see invocation)
(In reply to Alfred Wingate from comment #2) > [31mFAILED: [0mchrome_sandbox > "python3.11" "../../build/toolchain/gcc_link_wrapper.py" > --output="./chrome_sandbox" -- aarch64-unknown-linux-gnu-clang++ > -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now > -Wl,-mllvm,-enable-machine-outliner=never -no-canonical-prefixes -rdynamic > -Wl,-z,defs -Wl,--as-needed -nostdlib++ -pie -Wl,--disable-new-dtags -Wl,-O1 > -Wl,--as-needed -o "./chrome_sandbox" -Wl,--start-group > @"./chrome_sandbox.rsp" -Wl,--end-group -ldl -lpthread -lrt > /usr/bin/aarch64-unknown-linux-gnu-ld.bfd: unrecognised emulation mode: llvm > Supported emulations: aarch64linux aarch64elf aarch64elf32 aarch64elf32b > aarch64elfb armelf armelfb aarch64linuxb aarch64linux32 aarch64linux32b > armelfb_linux_eabi armelf_linux_eabi > aarch64-unknown-linux-gnu-clang++: error: linker command failed with exit > code 1 (use -v to see invocation) Need to check if enable-machine-outliner has an equivalent for GCC or if it's really necessary. It looks like just an optimisation but curious as ot why they added it (was it a hack for atomics or something)?
same with www-client/chromium-120.0.6099.62
Created attachment 878104 [details] build.log
is there any fix for it? www-client/chromium-119.0.6045.199 is the last installable version on arm64
We should be able to just patch this out: https://chromium.googlesource.com/chromium/src.git/+/refs/heads/main/build/config/compiler/BUILD.gn#1483.
Created attachment 879369 [details, diff] chromium-arm64.patch Please try this (untested).
(In reply to Sam James from comment #8) > Created attachment 879369 [details, diff] [details, diff] > chromium-arm64.patch > > Please try this (untested). now it fails on final steps: [58783/58783] "python3.11" "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome" -- aarch64-unknown-linux-gnu-clang++ -Wl,--version-script=../../build/linux/chrome.map -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -no-canonical-prefixes -rdynamic -Wl,-z,defs -Wl,--as-needed -nostdlib++ -pie -Wl,--disable-new-dtags -Wl,-O1 -Wl,--as-needed -o "./chrome" -Wl,--start-group @"./chrome.rsp" -Wl,--end-group -ldl -lpthread -lrt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -licui18n -licuuc -licudata -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -ldbus-1 -latk-1.0 -latk-bridge-2.0 -lcups -lgio-2.0 -lfontconfig -latomic -lz -lresolv -lzstd -lexpat -lpng16 -lwebp -lwebpdemux -lwebpmux -lfreetype -ljpeg -lharfbuzz-subset -lharfbuzz -ldrm -lxcb -lxkbcommon -latspi -lopenh264 -lm -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrender -lXrandr -lXtst -lgbm -lEGL -lXi -lpci -lffi -lpangocairo-1.0 -lpango-1.0 -lcairo -lasound -lFLAC -lxml2 -lminizip -lxslt -lxshmfence -lstdc++ FAILED: chrome "python3.11" "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome" -- aarch64-unknown-linux-gnu-clang++ -Wl,--version-script=../../build/linux/chrome.map -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -no-canonical-prefixes -rdynamic -Wl,-z,defs -Wl,--as-needed -nostdlib++ -pie -Wl,--disable-new-dtags -Wl,-O1 -Wl,--as-needed -o "./chrome" -Wl,--start-group @"./chrome.rsp" -Wl,--end-group -ldl -lpthread -lrt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -licui18n -licuuc -licudata -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -ldbus-1 -latk-1.0 -latk-bridge-2.0 -lcups -lgio-2.0 -lfontconfig -latomic -lz -lresolv -lzstd -lexpat -lpng16 -lwebp -lwebpdemux -lwebpmux -lfreetype -ljpeg -lharfbuzz-subset -lharfbuzz -ldrm -lxcb -lxkbcommon -latspi -lopenh264 -lm -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrender -lXrandr -lXtst -lgbm -lEGL -lXi -lpci -lffi -lpangocairo-1.0 -lpango-1.0 -lcairo -lasound -lFLAC -lxml2 -lminizip -lxslt -lxshmfence -lstdc++ obj/third_party/blink/renderer/core/core/array_buffer_contents.o: in function `void* partition_alloc::PartitionRoot::Alloc<(partition_alloc::internal::AllocFlags)15>(unsigned long, char const*)': array_buffer_contents.cc:(.text._ZN15partition_alloc13PartitionRoot5AllocILNS_8internal10AllocFlagsE15EEEPvmPKc[_ZN15partition_alloc13PartitionRoot5AllocILNS_8internal10AllocFlagsE15EEEPvmPKc]+0x290): relocation truncated to fit: R_AARCH64_CALL26 against symbol `partition_alloc::internal::RemaskPointerInternal(void*)' defined in .text section in obj/base/allocator/partition_allocator/src/partition_alloc/allocator_core/tagging.o obj/third_party/blink/renderer/core/core/array_buffer_contents.o: in function `void* partition_alloc::PartitionRoot::Alloc<(partition_alloc::internal::AllocFlags)13>(unsigned long, char const*)': array_buffer_contents.cc:(.text._ZN15partition_alloc13PartitionRoot5AllocILNS_8internal10AllocFlagsE13EEEPvmPKc[_ZN15partition_alloc13PartitionRoot5AllocILNS_8internal10AllocFlagsE13EEEPvmPKc]+0x298): relocation truncated to fit: R_AARCH64_CALL26 against symbol `partition_alloc::internal::RemaskPointerInternal(void*)' defined in .text section in obj/base/allocator/partition_allocator/src/partition_alloc/allocator_core/tagging.o obj/third_party/blink/renderer/platform/platform/parkable_string.o: in function `blink::ParkableStringImpl::CompressInBackground(std::__Cr::unique_ptr<blink::BackgroundTaskParams, std::__Cr::default_delete<blink::BackgroundTaskParams> >)': parkable_string.cc:(.text+0x198c): relocation truncated to fit: R_AARCH64_CALL26 against symbol `partition_alloc::internal::RemaskPointerInternal(void*)' defined in .text section in obj/base/allocator/partition_allocator/src/partition_alloc/allocator_core/tagging.o obj/third_party/blink/renderer/platform/platform/skia_utils.o: in function `blink::TryAllocateSkData(unsigned long)': skia_utils.cc:(.text+0xa08): relocation truncated to fit: R_AARCH64_CALL26 against symbol `partition_alloc::internal::RemaskPointerInternal(void*)' defined in .text section in obj/base/allocator/partition_allocator/src/partition_alloc/allocator_core/tagging.o aarch64-unknown-linux-gnu-clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. * ERROR: www-client/chromium-120.0.6099.109::gentoo failed (compile phase): * ninja -v -j6 -l0 -C out/Release chrome chromedriver chrome_sandbox failed * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 4784: Called chromium_compile * environment, line 1756: Called eninja '-C' 'out/Release' 'chrome' 'chromedriver' 'chrome_sandbox' * environment, line 2333: Called die * The specific snippet of code: * "$@" || die -n "${*} failed"
compressed build.log is 1.4M, unable to attach it
(In reply to Leonid Kopylov from comment #9) > (In reply to Sam James from comment #8) > > Created attachment 879369 [details, diff] [details, diff] [details, diff] > > chromium-arm64.patch > > > > Please try this (untested). > > now it fails on final steps: > > [...] > obj/third_party/blink/renderer/core/core/array_buffer_contents.o: in > function `void* > partition_alloc::PartitionRoot::Alloc<(partition_alloc::internal:: > AllocFlags)15>(unsigned long, char const*)': > array_buffer_contents.cc:(.text. > _ZN15partition_alloc13PartitionRoot5AllocILNS_8internal10AllocFlagsE15EEEPvmP > Kc[_ZN15partition_alloc13PartitionRoot5AllocILNS_8internal10AllocFlagsE15EEEP > vmPKc]+0x290): relocation truncated to fit: R_AARCH64_CALL26 against symbol > `partition_alloc::internal::RemaskPointerInternal(void*)' defined in .text > [...] Ugh, ok. Can you try adding -fuse-ld=lld to CFLAGS/CXXFLAGS/LDFLAGS for Chromium? (Not giving up on bfd working, but let's try this first.) (In reply to Leonid Kopylov from comment #10) > compressed build.log is 1.4M, unable to attach it Try ansifilter then xz -9e?
(In reply to Sam James from comment #11) > (In reply to Leonid Kopylov from comment #9) > > (In reply to Sam James from comment #8) > > > Created attachment 879369 [details, diff] [details, diff] [details, diff] [details, diff] > > > chromium-arm64.patch > > > > > > Please try this (untested). > > > > now it fails on final steps: > > > > [...] > > obj/third_party/blink/renderer/core/core/array_buffer_contents.o: in > > function `void* > > partition_alloc::PartitionRoot::Alloc<(partition_alloc::internal:: > > AllocFlags)15>(unsigned long, char const*)': > > array_buffer_contents.cc:(.text. > > _ZN15partition_alloc13PartitionRoot5AllocILNS_8internal10AllocFlagsE15EEEPvmP > > Kc[_ZN15partition_alloc13PartitionRoot5AllocILNS_8internal10AllocFlagsE15EEEP > > vmPKc]+0x290): relocation truncated to fit: R_AARCH64_CALL26 against symbol > > `partition_alloc::internal::RemaskPointerInternal(void*)' defined in .text > > [...] > > Ugh, ok. Can you try adding -fuse-ld=lld to CFLAGS/CXXFLAGS/LDFLAGS for > Chromium? (Not giving up on bfd working, but let's try this first.) > > (In reply to Leonid Kopylov from comment #10) > > compressed build.log is 1.4M, unable to attach it > > Try ansifilter then xz -9e? same failure with -fuse-ld=lld: [58783/58783] "python3.11" "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome" -- aarch64-unknown-linux-gnu-clang++ -Wl,--version-script=../../build/linux/chrome.map -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -no-canonical-prefixes -rdynamic -Wl,-z,defs -Wl,--as-needed -nostdlib++ -pie -Wl,--disable-new-dtags -Wl,-O1 -Wl,--as-needed -o "./chrome" -Wl,--start-group @"./chrome.rsp" -Wl,--end-group -ldl -lpthread -lrt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -licui18n -licuuc -licudata -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -ldbus-1 -latk-1.0 -latk-bridge-2.0 -lcups -lgio-2.0 -lfontconfig -latomic -lz -lresolv -lzstd -lexpat -lpng16 -lwebp -lwebpdemux -lwebpmux -lfreetype -ljpeg -lharfbuzz-subset -lharfbuzz -ldrm -lxcb -lxkbcommon -latspi -lopenh264 -lm -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrender -lXrandr -lXtst -lgbm -lEGL -lXi -lpci -lffi -lpangocairo-1.0 -lpango-1.0 -lcairo -lasound -lFLAC -lxml2 -lminizip -lxslt -lxshmfence -lstdc++ FAILED: chrome "python3.11" "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome" -- aarch64-unknown-linux-gnu-clang++ -Wl,--version-script=../../build/linux/chrome.map -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -no-canonical-prefixes -rdynamic -Wl,-z,defs -Wl,--as-needed -nostdlib++ -pie -Wl,--disable-new-dtags -Wl,-O1 -Wl,--as-needed -o "./chrome" -Wl,--start-group @"./chrome.rsp" -Wl,--end-group -ldl -lpthread -lrt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -licui18n -licuuc -licudata -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -ldbus-1 -latk-1.0 -latk-bridge-2.0 -lcups -lgio-2.0 -lfontconfig -latomic -lz -lresolv -lzstd -lexpat -lpng16 -lwebp -lwebpdemux -lwebpmux -lfreetype -ljpeg -lharfbuzz-subset -lharfbuzz -ldrm -lxcb -lxkbcommon -latspi -lopenh264 -lm -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrender -lXrandr -lXtst -lgbm -lEGL -lXi -lpci -lffi -lpangocairo-1.0 -lpango-1.0 -lcairo -lasound -lFLAC -lxml2 -lminizip -lxslt -lxshmfence -lstdc++ obj/third_party/blink/renderer/core/core/array_buffer_contents.o: in function `void* partition_alloc::PartitionRoot::Alloc<(partition_alloc::internal::AllocFlags)15>(unsigned long, char const*)': array_buffer_contents.cc:(.text._ZN15partition_alloc13PartitionRoot5AllocILNS_8internal10AllocFlagsE15EEEPvmPKc[_ZN15partition_alloc13PartitionRoot5AllocILNS_8internal10AllocFlagsE15EEEPvmPKc]+0x290): relocation truncated to fit: R_AARCH64_CALL26 against symbol `partition_alloc::internal::RemaskPointerInternal(void*)' defined in .text section in obj/base/allocator/partition_allocator/src/partition_alloc/allocator_core/tagging.o obj/third_party/blink/renderer/core/core/array_buffer_contents.o: in function `void* partition_alloc::PartitionRoot::Alloc<(partition_alloc::internal::AllocFlags)13>(unsigned long, char const*)': array_buffer_contents.cc:(.text._ZN15partition_alloc13PartitionRoot5AllocILNS_8internal10AllocFlagsE13EEEPvmPKc[_ZN15partition_alloc13PartitionRoot5AllocILNS_8internal10AllocFlagsE13EEEPvmPKc]+0x298): relocation truncated to fit: R_AARCH64_CALL26 against symbol `partition_alloc::internal::RemaskPointerInternal(void*)' defined in .text section in obj/base/allocator/partition_allocator/src/partition_alloc/allocator_core/tagging.o obj/third_party/blink/renderer/platform/platform/parkable_string.o: in function `blink::ParkableStringImpl::CompressInBackground(std::__Cr::unique_ptr<blink::BackgroundTaskParams, std::__Cr::default_delete<blink::BackgroundTaskParams> >)': parkable_string.cc:(.text+0x198c): relocation truncated to fit: R_AARCH64_CALL26 against symbol `partition_alloc::internal::RemaskPointerInternal(void*)' defined in .text section in obj/base/allocator/partition_allocator/src/partition_alloc/allocator_core/tagging.o obj/third_party/blink/renderer/platform/platform/skia_utils.o: in function `blink::TryAllocateSkData(unsigned long)': skia_utils.cc:(.text+0xa08): relocation truncated to fit: R_AARCH64_CALL26 against symbol `partition_alloc::internal::RemaskPointerInternal(void*)' defined in .text section in obj/base/allocator/partition_allocator/src/partition_alloc/allocator_core/tagging.o aarch64-unknown-linux-gnu-clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. * ERROR: www-client/chromium-120.0.6099.109::gentoo failed (compile phase): * ninja -v -j6 -l0 -C out/Release chrome chromedriver chrome_sandbox failed * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 4772: Called chromium_compile * environment, line 1751: Called eninja '-C' 'out/Release' 'chrome' 'chromedriver' 'chrome_sandbox' * environment, line 2328: Called die * The specific snippet of code: * "$@" || die -n "${*} failed" * * If you need support, post the output of `emerge --info '=www-client/chromium-120.0.6099.109::gentoo'`, * the complete build log and the output of `emerge -pqv '=www-client/chromium-120.0.6099.109::gentoo'`. * * You have enabled ccache. Please try disabling ccache * before reporting a bug. * * * MemTotal: 32817360 kB * SwapTotal: 8388604 kB * * The complete build log is located at '/var/tmp/notmpfs/portage/www-client/chromium-120.0.6099.109/temp/build.log'. * The ebuild environment file is located at '/var/tmp/notmpfs/portage/www-client/chromium-120.0.6099.109/temp/environment'. * Working directory: '/var/tmp/notmpfs/portage/www-client/chromium-120.0.6099.109/work/chromium-120.0.6099.109' * S: '/var/tmp/notmpfs/portage/www-client/chromium-120.0.6099.109/work/chromium-120.0.6099.109'
with xz -9e - it's 1.2M
Can you try with lld *without* the patch?
Created attachment 880030 [details] build.log
# emerge --info =www-client/chromium-120.0.6099.109 Portage 3.0.58 (python 3.12.1-final-0, default/linux/arm64/17.0/desktop/gnome/systemd/merged-usr, gcc-13, glibc-2.38-r7, 6.6.7-gentoo-arm64 aarch64) ================================================================= System Settings ================================================================= System uname: Linux-6.6.7-gentoo-arm64-aarch64-with-glibc2.38 KiB Mem: 32817360 total, 11089628 free KiB Swap: 8388604 total, 8387324 free Timestamp of repository gentoo: Tue, 19 Dec 2023 04:30:01 +0000 Head commit of repository gentoo: b1d9a6f3f518ec3d93ff0c80d53a055dd18f5bf0 Timestamp of repository EmilienMottet: Sun, 17 Dec 2023 11:32:25 +0000 Head commit of repository EmilienMottet: 45e66de45342bea10f5fb9dac9f7a5dc6feff178 Timestamp of repository HomeAssistantRepository: Sun, 17 Dec 2023 17:46:55 +0000 Head commit of repository HomeAssistantRepository: 211a1ca9f6b440dcb95bd80536496f569631ad38 Timestamp of repository darkelf: Mon, 13 Nov 2023 22:45:37 +0000 Head commit of repository darkelf: 0bd04c60084ab7425ec0beade82258725f8e32cc Timestamp of repository guru: Mon, 18 Dec 2023 17:31:56 +0000 Head commit of repository guru: 880ae23adccaa79f99afc5e189a45534944a5b1a Timestamp of repository inode64-overlay: Mon, 18 Dec 2023 10:16:47 +0000 Head commit of repository inode64-overlay: 9cd5e8aecbfdf9bab3cd8671dabd62655db02ec4 Timestamp of repository kde: Mon, 18 Dec 2023 22:46:55 +0000 Head commit of repository kde: 0a939d77399d0528767850eca210d06745ade696 Timestamp of repository pentoo: Sun, 17 Dec 2023 11:32:11 +0000 Head commit of repository pentoo: 9d3ab88e5dc7e53fcc9c046d63bc9e9500212c6b sh bash 5.2_p21-r1 ld GNU ld (Gentoo 2.41 p4) 2.41.0 ccache version 4.8.3 [enabled] app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p21-r1::gentoo dev-java/java-config: 2.3.3-r1::gentoo dev-lang/perl: 5.38.2-r1::gentoo dev-lang/python: 3.10.13::gentoo, 3.11.7::gentoo, 3.12.1::gentoo dev-lang/rust: 1.74.1::gentoo dev-lang/rust-bin: 1.74.1::gentoo dev-util/ccache: 4.8.3::gentoo dev-util/cmake: 3.28.1::gentoo dev-util/meson: 1.3.0-r2::gentoo sys-apps/baselayout: 2.14-r1::gentoo sys-apps/sandbox: 2.38::gentoo sys-apps/systemd: 255.1::gentoo sys-devel/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.41-r3::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo sys-devel/gcc: 12.3.1_p20231215::gentoo, 13.2.1_p20231216::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 17.0.6::gentoo sys-devel/llvm: 14.0.6-r4::gentoo, 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r7::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes EmilienMottet location: /var/db/repos/EmilienMottet sync-type: git sync-uri: https://github.com/gentoo-mirror/EmilienMottet.git masters: gentoo volatile: False HomeAssistantRepository location: /var/db/repos/HomeAssistantRepository sync-type: git sync-uri: https://github.com/gentoo-mirror/HomeAssistantRepository.git masters: gentoo volatile: False darkelf location: /var/db/repos/darkelf sync-type: git sync-uri: https://github.com/gentoo-mirror/darkelf.git masters: gentoo volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False inode64-overlay location: /var/db/repos/inode64-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/inode64-overlay.git masters: gentoo volatile: False kde location: /var/db/repos/kde sync-type: git sync-uri: https://github.com/gentoo-mirror/kde.git masters: gentoo volatile: False pentoo location: /var/db/repos/pentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/pentoo.git masters: gentoo volatile: False Binary Repositories: gentoobinhost priority: 1 sync-uri: https://gentoo.osuosl.org/releases/arm64/binpackages/17.0/arm64 ACCEPT_KEYWORDS="arm64 ~arm64" ACCEPT_LICENSE="* -@EULA geekbench Microsoft-vscode TeamViewer Vivaldi" CBUILD="aarch64-unknown-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" CHOST="aarch64-unknown-linux-gnu" CONFIG_PROTECT="/etc /opt/zookeeper-bin/conf /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/apache2-php8.2/ext-active/ /etc/php/apache2-php8.3/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/php/phpdbg-php8.3/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="-march=native -O2 -pipe -fomit-frame-pointer" 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="-march=native -O2 -pipe -fomit-frame-pointer" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache 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 strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr" FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" GENTOO_MIRRORS="https://mirror.isoc.org.il/pub/gentoo/ https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/" LANG="en_US.utf8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j6" 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/bash" USE="X a52 aac accessibility acl acpi alsa arm64 audit bash-completion berkdb bidi bluetooth branding brotli btrfs bzip2 cairo cdda cdr cli colord crypt cryptsetup cups curl dbus designer device-mapper doc dri dts dvdr eds emacs encode evdev evo examples exif experimental ffmpeg flac fortran fuse gamepad gdbm gif git gmp gnome gnome-keyring gnome-online-accounts gnome-shell gnutls go gpg gpm gstreamer gtk gtk-doc gui hscolour html http iconv icu idn introspection iodbc ipv6 jack java jemalloc joystick jpeg json kde kerberos keyring lcms ldap libnotify libtirpc lua lvm lz4 lzma lzo mad man mbedtls mng mongodb mp3 mp4 mpeg multimedia mysql nas nautilus ncurses netlink network networkmanager nfs nls nptl nss odbc offensive ogg opengl openmp openssl pam pango pcap pcre pdf perl pkcs11 plasma plugins png policykit postgres ppds pulseaudio python qml qt5 readline redis samba sasl screencast sdl seccomp semantic-desktop snmp sound source speech spell sqlite ssl startup-notification svg symlink sysprof systemd tcl telemetry test-rust threads tiff tk tools tracker truetype udev udisks unicode upower usb utils v4l vala vim-syntax vnc vorbis vulkan wayland webengine webkit webp wxwidgets x264 xattr xcb xft xinerama xml xv xvid yaml zeroconf zip zlib zsh-completion zstd" ADA_TARGET="gnat_2021" 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 stage" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v8" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev joystick libinput" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_11 python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="virgl" 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, 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
Are you sure you used lld there? It doesn't seem to be in CFLAGS or CXXFLAGS or LDFLAGS(?).
(In reply to Sam James from comment #17) > Are you sure you used lld there? It doesn't seem to be in CFLAGS or CXXFLAGS > or LDFLAGS(?). here is beginning of merging: # emerge chromium Calculating dependencies... done! Dependency resolution took 2.09 s (backtrack: 0/20). >>> Verifying ebuild manifests >>> Running pre-merge checks for www-client/chromium-120.0.6099.109 * Checking for at least 4 GiB RAM ... [ ok ] * Checking for at least 19 GiB disk space at "/var/tmp/notmpfs/portage/www-client/chromium-120.0.6099.109/temp" ... [ ok ] >>> Emerging (1 of 1) www-client/chromium-120.0.6099.109::gentoo * chromium-120.0.6099.109.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ] * chromium-patches-120.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ] * Checking for at least 4 GiB RAM ... [ ok ] * Checking for at least 19 GiB disk space at "/var/tmp/notmpfs/portage/www-client/chromium-120.0.6099.109/temp" ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 6.6.7-gentoo-arm64 * Checking for suitable kernel configuration options ... [ ok ] >>> Unpacking source... >>> Unpacking chromium-120.0.6099.109.tar.xz to /var/tmp/notmpfs/portage/www-client/chromium-120.0.6099.109/work >>> Unpacking chromium-patches-120.tar.bz2 to /var/tmp/notmpfs/portage/www-client/chromium-120.0.6099.109/work >>> Source unpacked in /var/tmp/notmpfs/portage/www-client/chromium-120.0.6099.109/work >>> Preparing source in /var/tmp/notmpfs/portage/www-client/chromium-120.0.6099.109/work/chromium-120.0.6099.109 ... * 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 PYTHON_COMPAT iteration) * Applying patches from /var/tmp/notmpfs/portage/www-client/chromium-120.0.6099.109/work/chromium-patches-120 ... * chromium-114-ruy-include.patch ... [ ok ] * chromium-117-material-color-include.patch ... [ ok ] * chromium-117-system-zstd.patch ... patching file build/linux/unbundle/replace_gn_files.py Hunk #1 succeeded at 79 with fuzz 1 (offset 5 lines). patching file build/linux/unbundle/zstd.gn [ ok ] * chromium-119-at-spi-variable-consumption.patch ... [ ok ] * chromium-119-clang16.patch ... [ ok ] * chromium-120-chromedriver-string.patch ... [ ok ] * chromium-120-compiler.patch ... [ ok ] * chromium-120-incomplete-type.patch ... [ ok ] * chromium-120-iwyu.patch ... [ ok ] * chromium-120-std-nullptr_t.patch ... [ ok ] * Applying chromium-cross-compile.patch ... [ ok ] * Applying chromium-use-oauth2-client-switches-as-default.patch ... [ ok ] * Applying chromium-108-EnumTable-crash.patch ... [ ok ] * Applying chromium-109-system-zlib.patch ... [ ok ] * Applying chromium-111-InkDropHost-crash.patch ... [ ok ] * Applying chromium-119.0.6045.159-icu-74.patch ... [ ok ] * Unbundling third-party libraries ... >>> Source prepared. >>> Configuring source in /var/tmp/notmpfs/portage/www-client/chromium-120.0.6099.109/work/chromium-120.0.6099.109 ... * 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 -fomit-frame-pointer' to '-O2 -pipe' * strip-flags: CXXFLAGS: changed '-O2 -pipe -fomit-frame-pointer' to '-O2 -pipe' * strip-flags: FFLAGS: changed '-O2 -pipe -fomit-frame-pointer -fuse-ld=lld' to '-O2 -pipe -fuse-ld=lld' * strip-flags: FCFLAGS: changed '-O2 -pipe -fomit-frame-pointer -fuse-ld=lld' to '-O2 -pipe -fuse-ld=lld' * Configuring Chromium ...
Your output has: * strip-flags: CFLAGS: changed '-O2 -pipe -fomit-frame-pointer' to '-O2 -pipe' * strip-flags: CXXFLAGS: changed '-O2 -pipe -fomit-frame-pointer' to '-O2 -pipe' so -fuse-ld=lld isn't there to begin with.
(In reply to Sam James from comment #19) > Your output has: > * strip-flags: CFLAGS: changed '-O2 -pipe -fomit-frame-pointer' to '-O2 > -pipe' > * strip-flags: CXXFLAGS: changed '-O2 -pipe -fomit-frame-pointer' to '-O2 > -pipe' > > so -fuse-ld=lld isn't there to begin with. this is what i have in: /etc/portage/package.env: www-client/chromium no-march-lld.conf /etc/portage/env/no-march-lld.conf: COMMON_FLAGS="-O2 -pipe -fomit-frame-pointer -fuse-ld=lld" CFLAGS="${COMMON_FLAGS}" CXXFLAGS="${COMMON_FLAGS}" FCFLAGS="${COMMON_FLAGS}" FFLAGS="${COMMON_FLAGS}"
i changed it now globally in make.conf # emerge -pqv '=www-client/chromium-120.0.6099.109::gentoo' [ebuild N ] www-client/chromium-120.0.6099.109 USE="X cups gtk4 hangouts kerberos official proprietary-codecs pulseaudio qt5 screencast system-harfbuzz system-icu system-png system-zstd wayland -custom-cflags -debug (-headless) -libcxx -lto -pax-kernel (-pgo) (-qt6) (-selinux) -vaapi (-widevine)" L10N="he ru -af -am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW" # emerge --info '=www-client/chromium-120.0.6099.109::gentoo' Portage 3.0.58 (python 3.12.1-final-0, default/linux/arm64/17.0/desktop/gnome/systemd/merged-usr, gcc-13, glibc-2.38-r7, 6.6.7-gentoo-arm64 aarch64) ================================================================= System Settings ================================================================= System uname: Linux-6.6.7-gentoo-arm64-aarch64-with-glibc2.38 KiB Mem: 32817360 total, 11000624 free KiB Swap: 8388604 total, 8381180 free Timestamp of repository gentoo: Wed, 20 Dec 2023 09:30:01 +0000 Head commit of repository gentoo: 1679fb06825f3c454d1b487b4673d334009e5532 Timestamp of repository EmilienMottet: Sun, 17 Dec 2023 11:32:25 +0000 Head commit of repository EmilienMottet: 45e66de45342bea10f5fb9dac9f7a5dc6feff178 Timestamp of repository HomeAssistantRepository: Sun, 17 Dec 2023 17:46:55 +0000 Head commit of repository HomeAssistantRepository: 211a1ca9f6b440dcb95bd80536496f569631ad38 Timestamp of repository darkelf: Mon, 13 Nov 2023 22:45:37 +0000 Head commit of repository darkelf: 0bd04c60084ab7425ec0beade82258725f8e32cc Timestamp of repository guru: Wed, 20 Dec 2023 09:16:43 +0000 Head commit of repository guru: 5b43dae4c014c0ccff3475d8593004e2d16f2de9 Timestamp of repository inode64-overlay: Tue, 19 Dec 2023 11:16:51 +0000 Head commit of repository inode64-overlay: b09c715a5e260db080d91373e541dbea601be2f6 Timestamp of repository kde: Tue, 19 Dec 2023 22:31:54 +0000 Head commit of repository kde: ec83323d0dd4ec03dbf8eb79cc6c8afe73d4e9c9 Timestamp of repository pentoo: Sun, 17 Dec 2023 11:32:11 +0000 Head commit of repository pentoo: 4e80dffa30169aeb9bae4ff43aadd16ee504d2b0 sh bash 5.2_p21-r1 ld GNU ld (Gentoo 2.41 p4) 2.41.0 ccache version 4.8.3 [enabled] app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p21-r1::gentoo dev-java/java-config: 2.3.3-r1::gentoo dev-lang/perl: 5.38.2-r1::gentoo dev-lang/python: 3.10.13::gentoo, 3.11.7::gentoo, 3.12.1::gentoo dev-lang/rust: 1.74.1::gentoo dev-lang/rust-bin: 1.74.1::gentoo dev-util/ccache: 4.8.3::gentoo dev-util/cmake: 3.28.1::gentoo dev-util/meson: 1.3.0-r2::gentoo sys-apps/baselayout: 2.14-r1::gentoo sys-apps/sandbox: 2.38::gentoo sys-apps/systemd: 255.1::gentoo sys-devel/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.41-r3::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo sys-devel/gcc: 12.3.1_p20231215::gentoo, 13.2.1_p20231216::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 17.0.6::gentoo sys-devel/llvm: 14.0.6-r4::gentoo, 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r7::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes EmilienMottet location: /var/db/repos/EmilienMottet sync-type: git sync-uri: https://github.com/gentoo-mirror/EmilienMottet.git masters: gentoo volatile: False HomeAssistantRepository location: /var/db/repos/HomeAssistantRepository sync-type: git sync-uri: https://github.com/gentoo-mirror/HomeAssistantRepository.git masters: gentoo volatile: False darkelf location: /var/db/repos/darkelf sync-type: git sync-uri: https://github.com/gentoo-mirror/darkelf.git masters: gentoo volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False inode64-overlay location: /var/db/repos/inode64-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/inode64-overlay.git masters: gentoo volatile: False kde location: /var/db/repos/kde sync-type: git sync-uri: https://github.com/gentoo-mirror/kde.git masters: gentoo volatile: False pentoo location: /var/db/repos/pentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/pentoo.git masters: gentoo volatile: False Binary Repositories: gentoobinhost priority: 1 sync-uri: https://gentoo.osuosl.org/releases/arm64/binpackages/17.0/arm64 ACCEPT_KEYWORDS="arm64 ~arm64" ACCEPT_LICENSE="* -@EULA geekbench Microsoft-vscode TeamViewer Vivaldi" CBUILD="aarch64-unknown-linux-gnu" CFLAGS="-O2 -pipe -fomit-frame-pointer -fuse-ld=lld" CHOST="aarch64-unknown-linux-gnu" CONFIG_PROTECT="/etc /opt/zookeeper-bin/conf /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/apache2-php8.2/ext-active/ /etc/php/apache2-php8.3/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/php/phpdbg-php8.3/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 -fomit-frame-pointer -fuse-ld=lld" 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 -fomit-frame-pointer -fuse-ld=lld" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache 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 strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr" FFLAGS="-O2 -pipe -fomit-frame-pointer -fuse-ld=lld" GENTOO_MIRRORS="https://mirror.isoc.org.il/pub/gentoo/ https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/" LANG="en_US.utf8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j6" 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/bash" USE="X a52 aac accessibility acl acpi alsa arm64 audit bash-completion berkdb bidi bluetooth branding brotli btrfs bzip2 cairo cdda cdr cli colord crypt cryptsetup cups curl dbus designer device-mapper doc dri dts dvdr eds emacs encode evdev evo examples exif experimental ffmpeg flac fortran fuse gamepad gdbm gif git gmp gnome gnome-keyring gnome-online-accounts gnome-shell gnutls go gpg gpm gstreamer gtk gtk-doc gui hscolour html http iconv icu idn introspection iodbc ipv6 jack java jemalloc joystick jpeg json kde kerberos keyring lcms ldap libnotify libtirpc lua lvm lz4 lzma lzo mad man mbedtls mng mongodb mp3 mp4 mpeg multimedia mysql nas nautilus ncurses netlink network networkmanager nfs nls nptl nss odbc offensive ogg opengl openmp openssl pam pango pcap pcre pdf perl pkcs11 plasma plugins png policykit postgres ppds pulseaudio python qml qt5 readline redis samba sasl screencast sdl seccomp semantic-desktop snmp sound source speech spell sqlite ssl startup-notification svg symlink sysprof systemd tcl telemetry test-rust threads tiff tk tools tracker truetype udev udisks unicode upower usb utils v4l vala vim-syntax vnc vorbis vulkan wayland webengine webkit webp wxwidgets x264 xattr xcb xft xinerama xml xv xvid yaml zeroconf zip zlib zsh-completion zstd" ADA_TARGET="gnat_2021" 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 stage" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v8" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev joystick libinput" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_11 python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="virgl" 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, 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
Created attachment 880152 [details] build.log
# grep COMMON /etc/portage/make.conf COMMON_FLAGS="-O2 -pipe -fomit-frame-pointer -fuse-ld=lld" CFLAGS="${COMMON_FLAGS}" CXXFLAGS="${COMMON_FLAGS}" FCFLAGS="${COMMON_FLAGS}" FFLAGS="${COMMON_FLAGS}"
Do you have some other /etc/portage/package.env or /etc/portage/env file clobbering CFLAGS and CXXFLAGS?
(In reply to Sam James from comment #24) > Do you have some other /etc/portage/package.env or /etc/portage/env file > clobbering CFLAGS and CXXFLAGS? in last step i removed the file completely
what about: CFLAGS="-O2 -fuse-ld=lld" CXXFLAGS="-O2 -fuse-ld=lld" emerge -v1 chromium?
Created attachment 880153 [details] build.log
still fails, now it shows clearly in logs -fuse-ld=lld
try: CFLAGS="-O2 -fuse-ld=lld" CXXFLAGS="-O2 -fuse-ld=lld" LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=lld" emerge -v1 chromium
Created attachment 880154 [details] build.log.xz
seems now another error
(In reply to Leonid Kopylov from comment #31) > seems now another error Try: CFLAGS="-O2 -fuse-ld=lld" CXXFLAGS="-O2 -fuse-ld=lld" LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=lld -Wl,--undefined-version"
(In reply to Sam James from comment #32) > (In reply to Leonid Kopylov from comment #31) > > seems now another error > > Try: > > CFLAGS="-O2 -fuse-ld=lld" CXXFLAGS="-O2 -fuse-ld=lld" LDFLAGS="-Wl,-O1 > -Wl,--as-needed -fuse-ld=lld -Wl,--undefined-version" Success!! # emerge chromium -pvq [ebuild R ] www-client/chromium-120.0.6099.109 USE="X cups gtk4 hangouts kerberos official proprietary-codecs pulseaudio qt5 screencast system-harfbuzz system-icu system-png system-zstd wayland -custom-cflags -debug (-headless) -libcxx -lto -pax-kernel (-pgo) (-qt6) (-selinux) -vaapi (-widevine)" L10N="he ru -af -am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW"
it's without above patch
(In reply to Sam James from comment #32) > (In reply to Leonid Kopylov from comment #31) > > seems now another error > > Try: > > CFLAGS="-O2 -fuse-ld=lld" CXXFLAGS="-O2 -fuse-ld=lld" LDFLAGS="-Wl,-O1 > -Wl,--as-needed -fuse-ld=lld -Wl,--undefined-version" same for www-client/chromium-120.0.6099.129 (build only with this workaround): # emerge chromium -pqv [ebuild R ] www-client/chromium-120.0.6099.129 USE="X cups gtk4 hangouts kerberos official proprietary-codecs pulseaudio qt5 screencast system-harfbuzz system-icu system-png system-zstd wayland -custom-cflags -debug (-headless) -libcxx -lto -pax-kernel (-pgo) (-qt6) (-selinux) -vaapi (-widevine)" L10N="he ru -af -am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW"
CFLAGS="-O2 -fuse-ld=lld" CXXFLAGS="-O2 -fuse-ld=lld" LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=lld -Wl,--undefined-version" emerge -1av chromium builds on a Pi5 ... eventually. 22 hours, 47 minutes. That's version 120.0.6099.109(0/stable) Its dropped my more usual Pi5 CFLAGS COMMON_FLAGS="-mcpu=cortex-a76+crc+crypto -O2 -pipe -mtune=cortex-a76" Why does it work?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2cc25faafdc413cb9b09775c40cb36a716c44a6 commit d2cc25faafdc413cb9b09775c40cb36a716c44a6 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-01-02 05:16:08 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-01-02 05:16:08 +0000 www-client/chromium: force LLD for arm64 Closes: https://bugs.gentoo.org/918897 Signed-off-by: Sam James <sam@gentoo.org> www-client/chromium/chromium-120.0.6099.129.ebuild | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-)
(In reply to Roy Bamford from comment #36) > CFLAGS="-O2 -fuse-ld=lld" CXXFLAGS="-O2 -fuse-ld=lld" LDFLAGS="-Wl,-O1 > -Wl,--as-needed -fuse-ld=lld -Wl,--undefined-version" emerge -1av chromium > builds on a Pi5 ... eventually. 22 hours, 47 minutes. > > That's version 120.0.6099.109(0/stable) > > Its dropped my more usual Pi5 CFLAGS > COMMON_FLAGS="-mcpu=cortex-a76+crc+crypto -O2 -pipe -mtune=cortex-a76" > > Why does it work? The issue is that only lld can cope with the (larger) relocations being generated, I think.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09792f688fc71e165c9512efff4d23afdfb8e3e7 commit 09792f688fc71e165c9512efff4d23afdfb8e3e7 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-01-28 19:56:24 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-01-28 19:56:47 +0000 www-client/chromium: always pass -Wl,--undefined-version if supported Needed for e.g. mold and also if the ebuild didn't force lld but it's being used. Bug: https://bugs.gentoo.org/918897 Signed-off-by: Sam James <sam@gentoo.org> www-client/chromium/chromium-120.0.6099.129.ebuild | 5 +++-- www-client/chromium/chromium-120.0.6099.224.ebuild | 5 +++-- www-client/chromium/chromium-121.0.6167.85.ebuild | 7 ++++--- www-client/chromium/chromium-122.0.6261.6.ebuild | 7 ++++--- 4 files changed, 14 insertions(+), 10 deletions(-)