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

--no-size_t-is-usize Cross compilation for Windows on linux failing #92

Open
Nikutsuki opened this issue Oct 15, 2024 · 0 comments
Open

Comments

@Nikutsuki
Copy link

I'm compiling with: cargo build --target x86_64-pc-windows-gnu

--- stderr
clang diag: /usr/include/libavutil/common.h:353:67: warning: implicit conversion from 'long long' to 'int64_t' (aka 'long') changes value from 92233720368547
75807 to -1 [-Wconstant-conversion]
clang diag: /usr/include/libavutil/common.h:353:79: warning: implicit conversion from 'long long' to 'int64_t' (aka 'long') changes value from -9223372036854
775808 to 0 [-Wconstant-conversion]
clang diag: /usr/include/libavutil/common.h:372:67: warning: implicit conversion from 'long long' to 'int64_t' (aka 'long') changes value from 92233720368547
75807 to -1 [-Wconstant-conversion]
clang diag: /usr/include/libavutil/common.h:372:79: warning: implicit conversion from 'long long' to 'int64_t' (aka 'long') changes value from -9223372036854
775808 to 0 [-Wconstant-conversion]
clang diag: /usr/include/libavutil/common.h:446:64: warning: shift count >= width of type [-Wshift-count-overflow]
clang diag: /usr/include/libavutil/rational.h:92:47: warning: shift count >= width of type [-Wshift-count-overflow]
clang diag: /usr/include/libavutil/avutil.h:314:20: warning: cast to smaller integer type 'intptr_t' (aka 'long') from 'const void *' [-Wvoid-pointer-to-int-
cast]
clang diag: /usr/include/libavutil/avutil.h:314:12: warning: cast to 'void *' from smaller integer type 'intptr_t' (aka 'long') [-Wint-to-void-pointer-cast]
thread 'main' panicked at /home/nikutsuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.70.1/codegen/mod.rs:922:25:
assertion left == right failed: Target platform requires --no-size_t-is-usize. The size of ssize_t (4) does not match the target pointer size (8)
left: 4
right: 8

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

1 participant