Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"libavcodec/x86/mathops.h" has "Error: operand type mismatch for 'shr'" with binutil >= 2.41 #11

Open
Morikko opened this issue May 7, 2024 · 4 comments

Comments

@Morikko
Copy link

Morikko commented May 7, 2024

Just tried to build the project on Ubuntu 22.04, it worked but I had to do a few changes:

  1. Apply a patch to libavcodec/x86/mathops.h against Error: operand type mismatch for 'shr'

    Patch: https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/effadce6c756247ea8bae32dc13bb3e6f464f0eb
    found from https://bbs.archlinux.org/viewtopic.php?id=289424

  2. Also scons needed the extra libraries: libavcodec-dev and libavformat-dev (False positive, see comment)

@slhck
Copy link
Member

slhck commented May 7, 2024

Thanks for the info! I think we should provide a Dockerfile for this repository to make the build more reproducible. Unfortunately, due to the older ffmpeg version and the various modifications made to it, it's not that portable.

@slhck
Copy link
Member

slhck commented May 8, 2024

So I checked — libavcodec-dev and libavformat-dev are definitely not needed as dependencies, as the libraries are already part of the modified ffmpeg source code and should be found by scons relative to the local directory.

I still have to do some tests with the Docker image…

@Morikko
Copy link
Author

Morikko commented May 10, 2024 via email

@Morikko
Copy link
Author

Morikko commented May 13, 2024

So the reason of the patch is for:

Fixes assembling with binutil as >= 2.41

https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/effadce6c756247ea8bae32dc13bb3e6f464f0eb

Now, I checked and the system has such version of binutil. However, I am not on Ubuntu 22.04 but 23.10. Sorry, I mixed with another computer. I guess the problem may occur with Ubuntu 24.04 as well (not verified).

@Morikko Morikko changed the title Build on Ubuntu 22.04 "libavcodec/x86/mathops.h" has "Error: operand type mismatch for 'shr'" with binutil >= 2.41 May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants