package/ffmpeg: fix build on mips
PATCH v2 1/1 package/ffmpeg: fix build on mips
mips_32 is not supported by ffmpeg and it tries to build with loongson3
SIMD support that leads to build failure due to:/tmp/ccFO2LRa.s: Assembler messages:/tmp/ccFO2LRa.s:15314: Error: opcode not supported on this processor: mips32 (mips32) dmult $2,$6' /tmp/ccFO2LRa.s:15316: Error: opcode not supported on this processor: mips32 (mips32) dsrl $2,$2,32'
So let's --disable-asm to prevent using those unsupported opcodes for every mips architecture according to Arnout.
Fixes:
http://autobuild.buildroot.net/results/f01/f01d9cedec8e1b371308d0f7af561a75883fa27c/
--- package/ffmpeg/ffmpeg.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
package/ffmpeg/ffmpeg.mk +1 -3
@@ -507,10 +507,8 @@ else FFMPEG_CONF_OPTS += --enable-mipsfpu endif -# Fix build failure on "addi opcode not supported" -ifeq ($(BR2_mips_32r6)$(BR2_mips_64r6),y) +# Fix build failure on several missing assembly instructions FFMPEG_CONF_OPTS += --disable-asm -endif endif # MIPS ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y)
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Arnout Vandecappelle
AppliedQuoted 6 lines · Giulio Benetti
mips_32is not supported by ffmpeg and it tries to build with loongson3
SIMD support that leads to build failure due to:/tmp/ccFO2LRa.s: Assembler messages:/tmp/ccFO2LRa.s:15314: Error: opcode not supported on this processor: mips32 (mips32)dmult $2,$6' /tmp/ccFO2LRa.s:15316: Error: opcode not supported on this processor: mips32 (mips32)dsrl $2,$2,32'
Quoted 7 lines
So let's --disable-asm to prevent using those unsupported opcodes for every mips architecture according to Arnout.
Fixes:
http://autobuild.buildroot.net/results/f01/f01d9cedec8e1b371308d0f7af561a75883fa27c/Signed-off-by Giulio Benetti <[email protected]>
Applied to master, thanks.
Regards,
Arnout
Quoted 11 lines
--- package/ffmpeg/ffmpeg.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)package/ffmpeg/ffmpeg.mk +0
-0@@ -507,10 +507,8 @@ else FFMPEG_CONF_OPTS += --enable-mipsfpu
package/ffmpeg/ffmpeg.mk else · line 514
Quoted 10 lines
package/ffmpeg/ffmpeg.mk +1
-3endif -# Fix build failure on "addi opcode not supported" -ifeq ($(BR2_mips_32r6)$(BR2_mips_64r6),y) +# Fix build failure on several missing assembly instructions FFMPEG_CONF_OPTS += --disable-asm -endif endif # MIPS ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y)
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Giulio" == Giulio Benetti <[email protected]> writes:
mips_32is not supported by ffmpeg and it tries to build with loongson3
SIMD support that leads to build failure due to:/tmp/ccFO2LRa.s: Assembler messages:/tmp/ccFO2LRa.s:15314: Error: opcode not supported on this processor: mips32 (mips32)dmult $2,$6' /tmp/ccFO2LRa.s:15316: Error: opcode not supported on this processor: mips32 (mips32)dsrl $2,$2,32'
Quoted 7 lines
So let's --disable-asm to prevent using those unsupported opcodes for every mips architecture according to Arnout.
Fixes:
http://autobuild.buildroot.net/results/f01/f01d9cedec8e1b371308d0f7af561a75883fa27c/Signed-off-by Giulio Benetti <[email protected]>
Committed to 2021.05.x and 2021.08.x, thanks. We don't have any autobuilder failues on 2021.02.x, and I cannot reproduce it either here so it may be related to ffmpeg 4.4.x.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot