package/ffmpeg: fix build on riscv32
PATCH 1/1 package/ffmpeg: fix build on riscv32
Ported patch from OpenEmbedded:
https://github.com/openembedded/openembedded-core/commit/010b068bcc126dbbc1e2032997e8d83360a7de35
"ffmpeg 6.0 has added assembly routines which uses rv64i ISA unconditionally, ideally it should check for ISA before using those instructions."
Fixes:
https://autobuild.buildroot.org/results/8a7082a0f24ebcf264aeac5e0fea704dc6a6bb1c/
--- package/ffmpeg/ffmpeg.mk | 5 +++++ 1 file changed, 5 insertions(+)
package/ffmpeg/ffmpeg.mk +5 -0
@@ -529,6 +529,11 @@ else FFMPEG_CONF_OPTS += --disable-altivec endif +# Fix build failure on several missing assembly instructions +ifeq ($(BR2_RISCV_32),y) +FFMPEG_CONF_OPTS += --disable-rvv --disable-asm +endif + # Uses __atomic_fetch_add_4 ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) FFMPEG_CONF_OPTS += --extra-libs=-latomic
Signature · 6 lines
2.39.5 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Julien Olivain
AppliedQuoted 11 lines · Bernd Kuhls
Ported patch from OpenEmbedded:
https://github.com/openembedded/openembedded-core/commit/010b068bcc126dbbc1e2032997e8d83360a7de35"ffmpeg 6.0 has added assembly routines which uses rv64i ISA unconditionally, ideally it should check for ISA before using those instructions."
Fixes:
https://autobuild.buildroot.org/results/8a7082a0f24ebcf264aeac5e0fea704dc6a6bb1c/Signed-off-by Bernd Kuhls <[email protected]>
Applied to master, thanks.
Quoted 23 lines
--- package/ffmpeg/ffmpeg.mk | 5 +++++ 1 file changed, 5 insertions(+)package/ffmpeg/ffmpeg.mk +5
-1@@ -529,6 +529,11 @@ else FFMPEG_CONF_OPTS += --disable-altivec endif +# Fix build failure on several missing assembly instructions +ifeq ($(BR2_RISCV_32),y) +FFMPEG_CONF_OPTS += --disable-rvv --disable-asm +endif + # Uses __atomic_fetch_add_4 ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) FFMPEG_CONF_OPTS += --extra-libs=-latomic --2.39.5
Quoted 4 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernd" == Bernd Kuhls <[email protected]> writes:
Ported patch from OpenEmbedded:
https://github.com/openembedded/openembedded-core/commit/010b068bcc126dbbc1e2032997e8d83360a7de35
Quoted 8 lines
"ffmpeg 6.0 has added assembly routines which uses rv64i ISA unconditionally, ideally it should check for ISA before using those instructions."
Fixes:
https://autobuild.buildroot.org/results/8a7082a0f24ebcf264aeac5e0fea704dc6a6bb1c/Signed-off-by Bernd Kuhls <[email protected]>
Committed to 2024.08.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot