Skip to contentSkip to conversation

package/ffmpeg: fix build on mips

PATCH Applied Giulio Benetti 3 participants 3 messages Sep 22, 2021 – Oct 7, 2021

lore
Share & tools
lore
#0 lore raw

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
index 8ff8ea8c6c..b3ce4c0656 100644
@@ -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
#1 lore raw
Quoted 6 lines · Giulio Benetti

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'

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/

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
index 8ff8ea8c6c..b3ce4c0656 100644
@@ -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 -3
  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)

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Giulio Benetti
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Giulio" == Giulio Benetti <[email protected]> writes:

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'

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/

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