Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 764863 - media-libs/x264 needs a CPU_FLAGS_PPC entry in the ebuild
Summary: media-libs/x264 needs a CPU_FLAGS_PPC entry in the ebuild
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-10 18:52 UTC by Adam Stylinski
Modified: 2021-01-10 21:43 UTC (History)
2 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 Adam Stylinski 2021-01-10 18:52:37 UTC
It appears media-libs/x264's configure script simply checks for vsx support with the compiler rather than with the CPU.  This results in a libx264 binary being built with VSX extensions, which aren't valid for older PPC chips.  

Reproducible: Always

Steps to Reproduce:
1. emerge x264
Actual Results:  
Illegal instruction

Expected Results:  
Properly running encoder/decoder

It might just be a matter of passing --disable-vsx to the configure script my default and switching on this flag.  However, there may need to be additional patches to this code, as I don't think they've sufficiently tested a vanilla altivec machine with this in a while (it's still trying to use xxpermdi instructions in spite of vsx=no).  

I may end up submitting a patch upstream for this.