Bug 15570

Summary: binutils 2.43 update broke ffmpeg on armv5/v7
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Denys Dmytriyenko <denis>
Component: devtools / tool chainAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: jon.mason, meta.mr.watcher, meta.watcher, randy.macleod
Version: unspecified   
Target Milestone: 5.1 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Denys Dmytriyenko 2024-08-07 19:10:11 UTC
ffmpeg on armv5 and armv7 fails to build with latest binutils 2.43, but aarch64/armv8 is fine
reverting binutils 2.43 update also resolved the issue

it fails compiling asm code with lots of repeated lines like this:

src/libavcodec/arm/mlpdsp_armv5te.S:232: Error: junk at end of line, first unrecognized character is `0'
src/libavcodec/arm/mlpdsp_armv5te.S:369:  Info: macro invoked from here
src/libavcodec/arm/mlpdsp_armv5te.S:397:   Info: macro invoked from here
src/libavcodec/arm/mlpdsp_armv5te.S:422:    Info: macro invoked from here
src/libavcodec/arm/mlpdsp_armv5te.S:336: Error: garbage following instruction -- `bne 01b'
src/libavcodec/arm/mlpdsp_armv5te.S:369:  Info: macro invoked from here
src/libavcodec/arm/mlpdsp_armv5te.S:397:   Info: macro invoked from here
src/libavcodec/arm/mlpdsp_armv5te.S:422:    Info: macro invoked from here

Set LICENSE_FLAGS_ACCEPTED="commercial" and MACHINE="qemuarm" and bitbake ffmpeg to reproduce.
Comment 1 Randy MacLeod 2024-08-08 14:35:46 UTC
If Ross dosn't get to this before vacation, Richard would like Jon to work on it.
Comment 2 Ross Burton 2024-08-08 17:20:42 UTC
Patch on the list.
Comment 3 Ross Burton 2024-08-09 11:04:44 UTC
"ffmpeg: fix build with binutils 2.43 on arm with commerical codecs" on the list.
Comment 4 Ross Burton 2024-09-12 15:03:33 UTC
Merged in 06d29af58521b94518c924468db34d0eed1cb056.