Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 748591 - cpu_flags_ppc_* should be masked on other architectures
Summary: cpu_flags_ppc_* should be masked on other architectures
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Profiles (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-14 02:27 UTC by Samuel Holland
Modified: 2022-07-15 09:23 UTC (History)
1 user (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 Samuel Holland 2020-10-14 02:27:14 UTC
I have /etc/portage shared between amd64, arm64, and ppc64 boxes. I just had x11-libs/pixman fail to build on arm64 with:

  ../pixman-0.40.0/meson.build:243:2: ERROR: Problem encountered: vmx Support unavailable, but required

This comes from `$(meson_feature cpu_flags_ppc_altivec vmx)` in the ebuild.

I have in my make.conf:
CPU_FLAGS_PPC="altivec vsx vsx3"
CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3"

I note that cpu_flags_arm_* and cpu_flags_x86_* are masked by default, and they are unmasked on the appropriate architecture. I believe the same should be done for cpu_flags_ppc_*. That would cause cpu_flags_ppc_altivec to be ignored on arm64, which would fix the build error.
Comment 1 Larry the Git Cow gentoo-dev 2022-07-15 09:22:57 UTC
The bug has been closed via the following commit(s):

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

commit a8de597cadbbc9e2537190f98bea7bf7cdc6f4f9
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-15 09:22:42 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-15 09:22:47 +0000

    profiles/arch: mask CPU_FLAGS_PPC on !ppc
    
    Closes: https://bugs.gentoo.org/748591
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/base/use.mask    | 4 ++++
 profiles/arch/powerpc/use.mask | 4 ++++
 2 files changed, 8 insertions(+)