untrunc
untrunc copied to clipboard
mathops.h:125: Error: operand type mismatch for `shr'
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
Thank you, that indeed made the package compile. Will update the PKGBUILD shortly. Thanks for the hint!
same error when compiling from source on gentoo.
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.
@gouchi I confirm the patch fixes compilation on Debian.
Also works on Arch.
Also works on ubuntu 24.