Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Chromium doesn't compile because of the lack of sve support
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
M1buKy0sh1r0
n00b
n00b


Joined: 29 Jan 2025
Posts: 9
Location: GER

PostPosted: Thu Feb 06, 2025 7:26 am    Post subject: Reply with quote

NeddySeagoon,

in my case it is detected as:
Code:
-march=armv8-a+dotprod+i8mm


This may did the trick on the apple m1 only.
_________________
-
"If it moves compile it" ;)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55041
Location: 56N 3W

PostPosted: Thu Feb 06, 2025 9:23 pm    Post subject: Reply with quote

M1buKy0sh1r0,

True.

There is no change on a Pi5
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
hardhat
n00b
n00b


Joined: 14 Feb 2025
Posts: 2

PostPosted: Fri Feb 14, 2025 6:49 am    Post subject: Reply with quote

The Chromium situation is worse on older ARMv8 processors. My board lacks SVE, SME, i8mm, and dotprod. If I were to enable arm_use_neon (for some reason this is not respected for CPU features in the ebuild) and therefore I have to do the following:

- libyuv_use_sme = false
- libyuv_use_sve = false
- LIBYUV_DISABLE_NEON_DOTPROD=1
- stop libaom, libgav1, and libdav1d from building
- libvpx fails here because I can't stop it from building at all

The accomodation for CPU flags in recent Chromium seems to be whack and halfassed.
Some of the bundled libraries are all hardcoded to expect later ARM revisions. There is no arm_use_neon_dotprod nor arm_use_sve, etc.

For example, libdav1d's preconfigured define headers expect v8.6 and newer.
Because they are headers we have to sed patch them if we are expected to make them bend to our will.

This bullshit is to be expected but it's sad that they neglect their older userbase.
So in the end I have to do arm_use_neon=false, and I don't even know if I'll run into any errors-- yet.

What happened to system-libvpx and system-av1 on Chromium, by the way? Those flags are now dead gone.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23228

PostPosted: Fri Feb 14, 2025 2:39 pm    Post subject: Reply with quote

I have not discussed any of this post with the people who maintain Chromium in Gentoo.

As I read the gentoo.git history for www-client/chromium, chromium-117.0.5938.149.ebuild had support for USE=system-av1, but newer ebuilds do not. Presumably, this means that newer releases cannot work with the system version without more downstream effort than the Gentoo maintainer was willing to volunteer. It might be the case that this flag would come back if the upstream Chromium developers made it easier for Gentoo to switch to the system version.

I also found www-client/chromium unmask system-av1 ?, where a (now retired) Gentoo developer stated:
Stephan Hartmann wrote:
Chromium uses internal API of libaom. Bundled ffmpeg has modifications required for compiling Chromium.
From this, I would infer that there is more work - maybe much more work - involved than merely deleting the bundled copy and passing some flags to point to the system version.
Back to top
View user's profile Send private message
hardhat
n00b
n00b


Joined: 14 Feb 2025
Posts: 2

PostPosted: Sat Feb 15, 2025 1:53 am    Post subject: Reply with quote

That was exactly what I suspected... alas.

Also: only one wasted day later did I realize that arm_use_neon is not exposed to build configuration. D'oh!
At some point I will try to come up with an idea how to patch this stuff properly, but for now I'm going to stick with Firefox.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55041
Location: 56N 3W

PostPosted: Sat Feb 15, 2025 12:09 pm    Post subject: Reply with quote

hardhat,

neon on 32 bit arm and neon on 64 bit arm are completely different things.
That's a mess.

There has been some discussion about splitting CPU_FLAGS_ARM= into two, so CPU_FLAGS_ARM64= applied to aarch64 and CPU_FLAGS_ARM was for 32 bit only.
Nothing has happened yet.

Both neons would still be different.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55041
Location: 56N 3W

PostPosted: Wed Mar 19, 2025 8:18 pm    Post subject: Reply with quote

There is a horrible hacky patch in www-client/chromium-133.0.6943.27 build fails with ld.lld: error: undefined symbol: __arm_tpidr2_save that changes libyuv's CPU feature detection from one value of wrong to a different value of wrong that works on a Pi5,

It may point the way to similar hacky patches to support other arm64 feature sets.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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