Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924558 - 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])
Summary: media-video/ffmpeg[soc]: build failure (libswscale/aarch64/rgb2rgb_neon.S:341...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: James Le Cuirot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-14 13:40 UTC by fnkl.kernel
Modified: 2024-02-17 14:53 UTC (History)
2 users (show)

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


Attachments
Build environment (environment,144.87 KB, text/plain)
2024-02-14 13:40 UTC, fnkl.kernel
Details
Build log (build.log.gz,47.36 KB, application/gzip)
2024-02-14 13:41 UTC, fnkl.kernel
Details

Note You need to log in before you can comment on or make changes to this bug.
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(-)