Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906049 - media-libs/embree - unmask CPU_FLAGS_ARM="neon" for arm64
Summary: media-libs/embree - unmask CPU_FLAGS_ARM="neon" for arm64
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Sebastian Parborg
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-10 06:18 UTC by Leonid Kopylov
Modified: 2024-01-08 06:02 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Kopylov 2023-05-10 06:18:13 UTC
media-libs/embree for arm64 requires "neon" - https://bugs.gentoo.org/851705

# emerge embree -pvq
[ebuild   R   ] media-libs/embree-3.13.5  USE="compact-polys raymask ssp tbb -ispc -tutorial" CPU_FLAGS_ARM="neon"
Comment 1 Leonid Kopylov 2023-05-10 06:19:22 UTC
i have to add:
media-libs/embree -cpu_flags_arm_neon

to /etc/portage/profile/package.use.mask

for package to build
Comment 2 Sebastian Parborg 2023-05-16 09:49:23 UTC
To the arm64 maintainers:

Is there any specific reason why the neon flag is masked in the arm64 use.mask?

The file only has this comment which is three years old at this point:
# Aaron Bauman <bman@gentoo.org> (2019-12-27)
# Mask cpu_flags_arm_neon for all of arm64
# A neon64 USE is being discussed
cpu_flags_arm_neon

I don't have an ARM CPU, so I can't really test any of this. But to me I don't see any reason for this besides maybe that support for neon was flaky for the arm64 at some point (or perhaps still is). But as I didn't find any information about this, I just have to assume that it might be time to remove the flag mask instead of having a white list of packages.
Comment 3 Leonid Kopylov 2023-05-16 11:00:51 UTC
(In reply to Sebastian Parborg from comment #2)
> To the arm64 maintainers:
> 
> Is there any specific reason why the neon flag is masked in the arm64
> use.mask?
> 
> The file only has this comment which is three years old at this point:
> # Aaron Bauman <bman@gentoo.org> (2019-12-27)
> # Mask cpu_flags_arm_neon for all of arm64
> # A neon64 USE is being discussed
> cpu_flags_arm_neon
> 
> I don't have an ARM CPU, so I can't really test any of this. But to me I
> don't see any reason for this besides maybe that support for neon was flaky
> for the arm64 at some point (or perhaps still is). But as I didn't find any
> information about this, I just have to assume that it might be time to
> remove the flag mask instead of having a white list of packages.

i have gentoo on Apple M1 Max, VM on Parallels Desktop, so i can test anything for you if required
Comment 4 Sebastian Parborg 2023-05-22 09:12:59 UTC
Hmm, I would have liked to get some feedback from the arm64 maintainers first.

However I guess you could try to compile every package with the `neon` arm cpu flag and see if it works for you. If it does, I don't see any reason to keep the flag masked.

Or if only a few fails, we can do a blacklist for the flag instead of a white list.
Comment 5 Leonid Kopylov 2023-08-26 09:05:39 UTC
same for media-libs/openpgl
Comment 6 A Schenck 2024-01-08 06:02:08 UTC
Just noticed the global arm64 neon mask on a different package after checking that the new version of cpuid2cpuflags still happily reports that neon should be in CPU_FLAGS_ARM. We can test things on armv8 cortex-a72.cortex-a53 big.LITTLE RK3399 based RockPro64.