Bug 2235654 - Fails to build - Error: operand type mismatch for `shr'
Summary: Fails to build - Error: operand type mismatch for `shr'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Gecko Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-29 12:29 UTC by Martin Stransky
Modified: 2023-08-31 21:49 UTC (History)
6 users (show)

Fixed In Version: firefox-117.0-2.fc40
Clone Of:
Environment:
Last Closed: 2023-08-30 11:26:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 1846703 0 -- RESOLVED libavcodec/x86/mathops.h:125: Error: operand type mismatch for ` shr' 2023-08-29 13:36:19 UTC

Description Martin Stransky 2023-08-29 12:29:48 UTC
Fails to build on Rawhide:

 7:17.24 /builddir/build/BUILD/firefox-117.0/media/ffvpx/libavcodec/x86/mathops.h: Assembler messages:
 7:17.24 /builddir/build/BUILD/firefox-117.0/media/ffvpx/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
 7:17.24 /builddir/build/BUILD/firefox-117.0/media/ffvpx/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
 7:17.24 /builddir/build/BUILD/firefox-117.0/media/ffvpx/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
 7:17.24 /builddir/build/BUILD/firefox-117.0/media/ffvpx/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
 7:17.24 /builddir/build/BUILD/firefox-117.0/media/ffvpx/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
 7:17.24 /builddir/build/BUILD/firefox-117.0/media/ffvpx/libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'

Reproducible: Always

Comment 1 Martin Stransky 2023-08-29 12:31:11 UTC
Jakub, any idea where to look at? GCC version seems to be the same on Rawhide and Fedora 39 but we're getting this failure on Rawhide only.
Thanks.

Comment 2 Jakub Jelinek 2023-08-29 13:36:19 UTC
See https://bugzilla.mozilla.org/show_bug.cgi?id=1846703 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108941 and https://sourceware.org/bugzilla/show_bug.cgi?id=30578
It is an unfortunate change in binutils that the author fails to acknowledge as a bug.  GCC can't really do anything there.  ffmpeg/ffvpx can just avoid using inline asm
in these cases altogether (I don't really understand why it doesn't trust the compiler which knows which target have truncating shifts and which don't), or do what ffmpeg
did upstream.

Comment 3 Martin Stransky 2023-08-30 11:26:28 UTC
Will take upstream patch then, Thanks.

Comment 4 Fedora Update System 2023-08-30 13:48:43 UTC
FEDORA-2023-dbbb59417a has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-dbbb59417a

Comment 5 Fedora Update System 2023-08-30 14:52:38 UTC
FEDORA-2023-dbbb59417a has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2023-08-31 21:44:29 UTC
FEDORA-2023-141e918955 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-141e918955

Comment 7 Fedora Update System 2023-08-31 21:49:35 UTC
FEDORA-2023-141e918955 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.