libavcodec/x86/mathops.h:125: Error: operand type mismatch for ` shr'
Categories
(Core :: Audio/Video, defect)
Tracking
()
People
(Reporter: glandium, Assigned: padenot)
References
Details
Attachments
(2 files)
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-esr115-
|
Details | Review |
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-esr115+
|
Details | Review |
When building with a recent binutils, the build fails with:
/<<PKGBUILDDIR>>/media/ffvpx/libavcodec/x86/mathops.h: Assembler messages:
/<<PKGBUILDDIR>>/media/ffvpx/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
/<<PKGBUILDDIR>>/media/ffvpx/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
/<<PKGBUILDDIR>>/media/ffvpx/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
/<<PKGBUILDDIR>>/media/ffvpx/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
/<<PKGBUILDDIR>>/media/ffvpx/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
/<<PKGBUILDDIR>>/media/ffvpx/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
make[5]: *** [/<<PKGBUILDDIR>>/config/rules.mk:585: atsc_a53.o] Error 1
This is caused by this change in binutils: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=c34d1cc9200ae24dc7572aaf77d80276c0490e9b and discussed in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108941 (also filed in https://sourceware.org/bugzilla/show_bug.cgi?id=30578)
Eventually, it was fixed in ffmpeg's source: http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=effadce6c756247ea8bae32dc13bb3e6f464f0eb
We should take this fix and uplift it to esr115.
Assignee | ||
Comment 1•1 year ago
|
||
I'm landing a big ffmpeg update today, and then I can update us to current tip tomorrow. We can backport this.
Assignee | ||
Comment 2•1 year ago
|
||
Comment 4•1 year ago
|
||
bugherder |
Comment 5•1 year ago
|
||
I can confirm that the individual commit mentioned above applies cleanly and fixes the broken build for ESR 115.
Could we get this uplifted?
Assignee | ||
Comment 6•1 year ago
|
||
Comment on attachment 9348390 [details]
Bug 1846703 - Update vendored ffmpeg to d9d56953. r?alwu
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: This fixes the build on Linux when building with a recent binutils.
- User impact if declined: Downstream might not be able to build
- Fix Landed on Version: 118
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): We've been running this code for some time on more recent versions. We can also cherry pick the fix.
Comment 7•1 year ago
|
||
Comment on attachment 9348390 [details]
Bug 1846703 - Update vendored ffmpeg to d9d56953. r?alwu
Can we get a cherry-pick patch of just the one upstream commit and an approval request on that? We can't graft this entire ffmpeg update to ESR115. It doesn't apply cleanly and is way too large of an update to take.
Assignee | ||
Comment 8•1 year ago
|
||
Because this library is a rather complex, manually trimmed, subset of ffmpeg,
this doesn't use updatebot. We're currently investigating moving to it to at
least fix some manual work needed, but that hasn't happened yet. In lieu of
adding the new patch to a yaml file, I'm modified the Mozilla-specific README.
Assignee | ||
Comment 9•1 year ago
|
||
Comment on attachment 9356071 [details]
Bug 1846703 - Backport a single revision from ffmpeg into our vendored copy, to fix the build with recent binutils. r?glandium
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: See https://bugzilla.mozilla.org/show_bug.cgi?id=1846703#c6 -- this is only the change required to fix the build.
- User impact if declined:
- Fix Landed on Version:
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky):
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Comment 12•1 year ago
|
||
Comment on attachment 9356071 [details]
Bug 1846703 - Backport a single revision from ffmpeg into our vendored copy, to fix the build with recent binutils. r?glandium
Approved for 115.4esr.
Comment 13•1 year ago
|
||
uplift |
Updated•1 year ago
|
Description
•