Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 924558

Summary: media-video/ffmpeg[soc]: build failure (libswscale/aarch64/rgb2rgb_neon.S:341:26: error: expected '[su]xt[bhw]' with optional integer in range [0, 4])
Product: Gentoo Linux Reporter: fnkl.kernel
Component: Current packagesAssignee: James Le Cuirot <chewi>
Status: RESOLVED FIXED    
Severity: normal CC: chewi, fnkl.kernel
Priority: Normal    
Version: unspecified   
Hardware: ARM64   
OS: Linux   
See Also: https://github.com/jc-kynesim/rpi-ffmpeg/issues/81
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build environment
Build log

Description fnkl.kernel 2024-02-14 13:40:32 UTC
Created attachment 884965 [details]
Build environment

Having USE=soc and building with clang causes ffmpeg to fail to build on arm macs and probably other non-rpi machines.

The compilation error is the following

src/libswscale/aarch64/rgb2rgb_neon.S:341:26: error: expected '[su]xt[bhw]' with optional integer in range [0, 4]
        add x0, x0, w14, SXTX
Comment 1 fnkl.kernel 2024-02-14 13:41:10 UTC
Created attachment 884966 [details]
Build log
Comment 2 James Le Cuirot gentoo-dev 2024-02-14 17:32:52 UTC
Reproduced when cross-compiling. I'll see what I can do.
Comment 3 James Le Cuirot gentoo-dev 2024-02-16 13:24:22 UTC
Upstream have fixed this issue, but now I've found there's another similar one.
Comment 4 Larry the Git Cow gentoo-dev 2024-02-17 14:53:14 UTC
The bug has been closed via the following commit(s):

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

commit ebf0a62268c4b27ffd37234cc8ed9e6054e0053c
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2024-02-17 14:51:49 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2024-02-17 14:52:56 +0000

    media-video/ffmpeg: Fix Clang and GCC 14 issues with new RPi patch
    
    Closes: https://bugs.gentoo.org/924558
    Closes: https://bugs.gentoo.org/924743
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 media-video/ffmpeg/Manifest                      |  2 +-
 media-video/ffmpeg/ffmpeg-6.1.1-r3.ebuild        |  3 ++-
 media-video/ffmpeg/ffmpeg-9999.ebuild            |  2 +-
 media-video/ffmpeg/files/ffmpeg-6.1-gcc-14.patch | 13 +++++++++++++
 4 files changed, 17 insertions(+), 3 deletions(-)