View previous topic :: View next topic |
Author |
Message |
dxwil n00b
Joined: 05 Aug 2024 Posts: 7
|
Posted: Tue Aug 06, 2024 1:11 pm Post subject: Chromium doesn't compile because of the lack of sve support |
|
|
I am trying to compile chromium on the M1 arm64 chip, which according to Google supports neon but not sve. Chromium is giving me error that target needs sve support, how can I compile chromium without it?
Code: |
Portage 3.0.65 (python 3.12.4-final-0, default/linux/arm64/23.0/desktop, gcc-13, glibc-2.40, 6.9.12-p1-asahi-dist aarch64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.9.12-p1-asahi-dist-aarch64-with-glibc2.40
KiB Mem: 7710720 total, 1402576 free
KiB Swap: 16777200 total, 16684016 free
Timestamp of repository gentoo: Mon, 05 Aug 2024 13:00:00 +0000
Head commit of repository gentoo: 5405c6e53400be10d3d93528859f361469b0db64
Timestamp of repository asahi: Sun, 04 Aug 2024 07:50:57 +0000
Head commit of repository asahi: 5cc2fc136c597d8f5a3bf9849a4f0ddd86ef2ca4
Timestamp of repository electron: Tue, 23 Jul 2024 14:19:07 +0000
Head commit of repository electron: 19e5bdfb27ec106439519913305228f36df08b60
Timestamp of repository guru: Mon, 05 Aug 2024 11:06:26 +0000
Head commit of repository guru: 9c612d95e55402ec6d1b87cf2041f34b0ffc9044
Timestamp of repository librewolf: Mon, 05 Aug 2024 05:34:33 +0000
Head commit of repository librewolf: e580229c093578febd817b163af2b1489656a0fd
Timestamp of repository wayland-desktop: Sun, 28 Jul 2024 17:03:54 +0000
Head commit of repository wayland-desktop: a3b24dd585c5c4ba4b22e3249413b946bfb08628
sh bash 5.2_p26-r6
ld GNU ld (Gentoo 2.42 p6) 2.42.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.2_p26-r6::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.28.5::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.4.1::gentoo
dev-lang/perl: 5.38.2-r3::gentoo
dev-lang/python: 3.11.9_p1::gentoo, 3.12.4_p3::gentoo
dev-lang/rust-bin: 1.79.0::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/openrc: 0.54.2::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-devel/binutils: 2.42-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 18.1.8::gentoo
sys-devel/gcc: 13.3.1_p20240614::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/lld: 18.1.8::gentoo
sys-devel/llvm: 18.1.8-r1::gentoo
sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.40::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-metamanifest: yes
sync-rsync-verify-max-age: 3
sync-rsync-verify-jobs: 1
sync-rsync-extra-opts:
asahi
location: /var/db/repos/asahi
sync-type: git
sync-uri: https://github.com/gentoo-mirror/asahi.git
masters: gentoo
volatile: False
electron
location: /var/db/repos/electron
sync-type: git
sync-uri: https://github.com/gentoo-mirror/electron.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
librewolf
location: /var/db/repos/librewolf
sync-type: git
sync-uri: https://github.com/gentoo-mirror/librewolf.git
masters: gentoo
volatile: False
wayland-desktop
location: /var/db/repos/wayland-desktop
sync-type: git
sync-uri: https://github.com/gentoo-mirror/wayland-desktop.git
masters: gentoo
volatile: False
Binary Repositories:
gentoobinhost
priority: 1
sync-uri: https://distfiles.gentoo.org/releases/arm64/binpackages/23.0/arm64
ACCEPT_KEYWORDS="arm64"
ACCEPT_LICENSE="@FREE"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-march=armv8.5-a+fp16+simd+crypto+i8mm -mtune=native -O2 -pipe"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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"
CXXFLAGS="-march=armv8.5-a+fp16+simd+crypto+i8mm -mtune=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--ask --jobs=3 --load-average=7"
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=armv8.5-a+fp16+simd+crypto+i8mm -mtune=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance 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="-march=armv8.5-a+fp16+simd+crypto+i8mm -mtune=native -O2 -pipe"
GENTOO_MIRRORS="https://ftp.fau.de/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j7 -l7"
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 aac acl acpi alsa arm64 bluetooth branding bzip2 cairo crypt cups dbus dri elogind encode exif gdbm gif gtk gui iconv icu ipv6 jpeg kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg ncurses nls ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp sound spell ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib zstd" ADA_TARGET="gcc_12" 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_ARM="aes asimddp crc32 edsp sha1 sha2 v8 vfp vfp-d32 vfpv3 vfpv4" 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="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="asahi" 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, 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, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
[ebuild N ] www-client/chromium-127.0.6533.88 USE="cups hangouts official proprietary-codecs pulseaudio qt5 screencast system-harfbuzz system-icu system-png (system-toolchain) system-zstd vaapi wayland -X -bindist -custom-cflags -debug -ffmpeg-chromium -gtk4 (-headless) -kerberos -pax-kernel (-pgo) -qt6 (-selinux) (-widevine)" 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"
|
Build log:
https://0x0.st/XVBC.log |
|
Back to top |
|
|
kgdrenefort Guru
Joined: 19 Sep 2023 Posts: 314 Location: Somewhere in the 77
|
Posted: Thu Aug 08, 2024 9:55 am Post subject: |
|
|
Hello,
After some googling, the most relevant link is… this topic, fat luck. I did not spotted a bug either here, as the wiki page of Chromium (from gentoo) isn't providing much useful info about that.
First thing, I never used Gentoo on ARM64 system, but maybe you could try this : Not a single modification of the use flag, just try to build it as it is (if you did not tried yet). Maybe one of your USE flag is making a mess ? At this point sadly it's guessing :/.
Sadly there is no chromium-bin to test if it's possible to get this build working on your architecture.
Maybe you could also try to follow the Chromium compilation guide instead of using emerge. If it works with the Google instruction, it could mean the problem is on Gentoo side (misconfigured ebuild ? bugs ?).
Hope you find your fix.
Regards,
GASPARD DE RENEFORT Kévin _________________ Traduction wiki, pour praticiper.
Custom logos/biz card/website. |
|
Back to top |
|
|
dxwil n00b
Joined: 05 Aug 2024 Posts: 7
|
Posted: Thu Aug 08, 2024 10:19 am Post subject: |
|
|
Yeah I'll try compiling with the default use flags, that's a good idea. The official build instructions lists x86_64 as a requirement so there is no guide for arm. I've also reported a chromium bug here: https://issues.chromium.org/issues/357889510 |
|
Back to top |
|
|
kgdrenefort Guru
Joined: 19 Sep 2023 Posts: 314 Location: Somewhere in the 77
|
Posted: Thu Aug 08, 2024 10:26 am Post subject: |
|
|
dxwil wrote: | Yeah I'll try compiling with the default use flags, that's a good idea. The official build instructions lists x86_64 as a requirement so there is no guide for arm. I've also reported a chromium bug here: https://issues.chromium.org/issues/357889510 |
When you can't find what's not working, try the default path is mostly a good idea, yes !
Get us in touch if you manage to find or report a problem that might other on Gentoo or ARM system to get it working !
Regards,
GASPARD DE RENEFORT Kévin _________________ Traduction wiki, pour praticiper.
Custom logos/biz card/website. |
|
Back to top |
|
|
dxwil n00b
Joined: 05 Aug 2024 Posts: 7
|
Posted: Thu Aug 08, 2024 6:15 pm Post subject: |
|
|
Tried with the default use flags, but the results is unfortunately still the same |
|
Back to top |
|
|
zerdox n00b
Joined: 11 Sep 2023 Posts: 5
|
Posted: Sat Dec 07, 2024 6:27 pm Post subject: |
|
|
I see from your logs that it's coming from libvpx. I have it installed on my M1. And I also can't build chromium, though, my build fails even earlier and for different reason.
Maybe we could system-libvpx somehow, probably it will require lots of work if it's even possible. I will investigate further and will try to compile chromium other ways as it's blocking for me. Latest I could build is 116, not tried 117 and further, but current available versions are broken for all M1 I guess _________________ 0x396D2C5E84820BD6 |
|
Back to top |
|
|
zerdox n00b
Joined: 11 Sep 2023 Posts: 5
|
Posted: Sun Dec 08, 2024 7:27 am Post subject: |
|
|
ok now i see that third_party/libyuv/source/rotate_sme fails for me. same reason
Code: | error: function executed in streaming-SVE mode requires 'sme' |
_________________ 0x396D2C5E84820BD6 |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2283 Location: $TERM
|
Posted: Thu Dec 12, 2024 9:31 am Post subject: |
|
|
/proc/cpuinfo has sve? If not, then qemu softemu compiling on a powerful x86 machine may help, but the build binaries may results in 'invalid opcode'. _________________ My blog |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54619 Location: 56N 3W
|
Posted: Thu Dec 12, 2024 11:37 am Post subject: |
|
|
Try changing -march to -mcpu.
Do not use -march at all. -mtune=native should be harmless but being old and synical, I would remove that.
I don't know that this is your problem but I've seen a chromium build on a Pi4 go wrong when -march was used.
I tried to reproduce the bug but I've always used -mcpu on arm64 and it failed to fail. :)
The build time was 3d 12h. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54619 Location: 56N 3W
|
Posted: Thu Dec 12, 2024 11:58 am Post subject: |
|
|
Moved from Multimedia to Gentoo on ARM.
An M1 is one of these. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|