You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encounted this when compiling a dependency that used libc:
#18 580.4 Compiling solana-streamer v1.10.40
#18 580.8 error[E0308]: mismatched types
#18 580.8 --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/solana-streamer-1.10.40/src/recvmmsg.rs:99:70
#18 580.8 |
#18 580.8 99 | unsafe { libc::recvmmsg(sock_fd, &mut hdrs[0], count as u32, MSG_WAITFORONE, &mut ts) };
#18 580.8 | ^^^^^^^^^^^^^^ expected `u32`, found `i32`
#18 580.8 |
#18 580.8 help: you can convert an `i32` to a `u32` and panic if the converted value doesn't fit
#18 580.8 |
#18 580.8 99 | unsafe { libc::recvmmsg(sock_fd, &mut hdrs[0], count as u32, MSG_WAITFORONE.try_into().unwrap(), &mut ts) };
#18 580.8 | ++++++++++++++++++++
#18 580.8
#18 580.9 For more information about this error, try `rustc --explain E0308`.
#18 580.9 error: could not compile `solana-streamer` due to previous error
#18 580.9 warning: build failed, waiting for other jobs to finish...
#18 601.8 error: build failed
The function
recvmmsg
formusl
andemscripten
has argument typec_uint
for flags, but the flag types as defined in this package arec_int
.Problematic function definitions here:
libc/src/unix/linux_like/linux/musl/mod.rs
Line 706 in 7ecea9a
libc/src/unix/linux_like/emscripten/mod.rs
Line 1873 in 6eee580
I encounted this when compiling a dependency that used
libc
:MSG_WAITFORONE is defined as a
c_int
:libc/src/unix/linux_like/mod.rs
Line 777 in 183820f
The text was updated successfully, but these errors were encountered: