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

[package] ffmpeg/4.4.4: Build failed #25267

Open
WangZhongDian opened this issue Sep 15, 2024 · 2 comments
Open

[package] ffmpeg/4.4.4: Build failed #25267

WangZhongDian opened this issue Sep 15, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@WangZhongDian
Copy link

WangZhongDian commented Sep 15, 2024

Description

I need to build OpenCv4.10,We need to build ffmpeg/4.4.4, but encountered an error

Error: operand type mismatch for 'shr' 

This is very similar to #24034, but I can't find a solution

Package and Environment Details

  • ubuntu24.04
  • gcc13
  • conan2.7.1

Conan profile

[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=13
os=Linux

Steps to reproduce

conan install . --build=missing

[requires]
opencv/4.10.0
[generators]
PkgConfigDeps
MesonToolchain

Logs

Click to expand log
CC	libavformat/asfdec_o.o
src/libavcodec/x86/mathops.h: Assembler messages:
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
CC	libavformat/asfenc.o
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
src/libavcodec/x86/mathops.h:125: 错误: operand type mismatch for `shr'
CC	libavformat/assdec.o
CC	libavformat/assenc.o
make: *** [/home/wangko/.conan2/p/b/ffmpecf5b7255c0c51/b/src/ffbuild/common.mak:67:libavformat/adtsenc.o] 错误 1
make: *** 正在等待未完成的任务....
src/libavformat/asfcrypt.c: In function ‘multiswap_enc’:
src/libavformat/asfcrypt.c:118:11: warning: ‘multiswap_step’ reading 48 bytes from a region of size 24 [-Wstringop-overread]
  118 |     tmp = multiswap_step(keys + 6, b);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/libavformat/asfcrypt.c:118:11: note: referencing argument 1 of type ‘const uint32_t[12]’ {aka ‘const unsigned int[12]’}
src/libavformat/asfcrypt.c:75:17: note: in a call to function ‘multiswap_step’
   75 | static uint32_t multiswap_step(const uint32_t keys[12], uint32_t v)
      |                 ^~~~~~~~~~~~~~
src/libavformat/asfcrypt.c: In function ‘multiswap_dec’:
src/libavformat/asfcrypt.c:139:11: warning: ‘multiswap_inv_step’ reading 48 bytes from a region of size 24 [-Wstringop-overread]
  139 |     b   = multiswap_inv_step(keys + 6, tmp);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/libavformat/asfcrypt.c:139:11: note: referencing argument 1 of type ‘const uint32_t[12]’ {aka ‘const unsigned int[12]’}
src/libavformat/asfcrypt.c:87:17: note: in a call to function ‘multiswap_inv_step’
   87 | static uint32_t multiswap_inv_step(const uint32_t keys[12], uint32_t v)
      |                 ^~~~~~~~~~~~~~~~~~
src/libavformat/argo_asf.c: In function ‘argo_asf_write_header’:
src/libavformat/argo_asf.c:368:9: warning: ‘__builtin_strncpy’ specified bound 8 equals destination size [-Wstringop-truncation]
  368 |         strncpy(fhdr.name, ctx->name, sizeof(fhdr.name));
      |         ^

ffmpeg/4.4.4: ERROR: 
Package 'b7db6fbed1afdb9038e7ab784d303c6fa53a998b' build failed
ffmpeg/4.4.4: WARN: Build folder /home/wangko/.conan2/p/b/ffmpecf5b7255c0c51/b/build-release
ERROR: ffmpeg/4.4.4: Error in build() method, line 716
	autotools.make()
	ConanException: Error 2 while executing

@WangZhongDian WangZhongDian added the bug Something isn't working label Sep 15, 2024
@uilianries
Copy link
Member

uilianries commented Sep 15, 2024 via email

@WangZhongDian
Copy link
Author

@uilianries
I have read the link you provided。I don't quite understand whether this has been resolved or not. Thank you for your efforts

@uilianries uilianries self-assigned this Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants