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

mathops.h:125: Error: operand type mismatch for `shr' #272

Open
jose1711 opened this issue Oct 10, 2023 · 6 comments
Open

mathops.h:125: Error: operand type mismatch for `shr' #272

jose1711 opened this issue Oct 10, 2023 · 6 comments

Comments

@jose1711
Copy link

On ArchLinux x86_64 with ffmpeg4.4 installed I am getting

$ make
..
..
./libavutil/mem.h:174:1: warning: ‘alloc_size’ attribute ignored on a function returning ‘int’ [-Wattributes]
  174 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
      | ^~~~~~~~~~~~~
CC	libavformat/adtsenc.o
In file included from ./libavutil/common.h:373,
                 from ./libavcodec/get_bits.h:31,
                 from libavformat/adtsenc.c:23:
./libavutil/mem.h:174:1: warning: ‘alloc_size’ attribute ignored on a function returning ‘int’ [-Wattributes]
  174 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
      | ^~~~~~~~~~~~~
./libavcodec/x86/mathops.h: Assembler messages:
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
make: *** [Makefile:48: libavformat/adtsenc.o] Error 1

@gouchi
Copy link

gouchi commented Nov 11, 2023

Hi,

Can you try this patch if it fixes the compilation issue ?

Thank you.

Source

@jose1711
Copy link
Author

Thank you, that indeed made the package compile. Will update the PKGBUILD shortly. Thanks for the hint!

@anyback
Copy link

anyback commented Feb 12, 2024

same error when compiling from source on gentoo.

@hamster4430
Copy link

hamster4430 commented Feb 13, 2024

I followed the guide step by step and got the same issue on Manjaro. Then found untrunc in AUR via stock software manager pamac and it compiled successfully.

@davidebeatrici
Copy link

@gouchi I confirm the patch fixes compilation on Debian.

@sixtyfive
Copy link

Also works on Arch.

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

6 participants