-
-
Notifications
You must be signed in to change notification settings - Fork 330
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
sysinfo build failing with latest libc v0.2.165 #1392
Comments
Just to add - also tested with latest |
Maybe it's due to rust-lang/libc@f4bbbc8 diff --git i/src/unix/apple/macos/process.rs w/src/unix/apple/macos/process.rs
index 08a33dd..7783681 100644
--- i/src/unix/apple/macos/process.rs
+++ w/src/unix/apple/macos/process.rs
@@ -433,7 +433,7 @@ unsafe fn convert_node_path_info(node: &libc::vnode_info_path) -> Option<PathBuf
}
cstr_to_rust_with_size(
node.vip_path.as_ptr() as _,
- Some(node.vip_path.len() * node.vip_path[0].len()),
+ Some(node.vip_path.len() * node.vip_path.len()),
)
.map(PathBuf::from)
} |
Bevy users seem to be hitting this too. Compiling sysinfo v0.31.4
error[E0599]: no method named `len` found for type `i8` in the current scope
--> /Users/wentao/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sysinfo-0.31.4/src/unix/apple/macos/process.rs:432:53
|
432 | Some(node.vip_path.len() * node.vip_path[0].len()),
| ^^^
|
help: there is a method `le` with a similar name, but with different arguments
--> /Users/wentao/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/cmp.rs:1196:5
|
1196 | fn le(&self, other: &Rhs) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
got the same issue with libc 0.2.162~164 |
Volo users is hitting this too.
|
Published |
yanking the broken libc version ASAP |
Just in case it quickly helps anyone landing here, you can pin libc to the previous version
|
FYI bumping into this myself right now. Thanks to everyone who's on the hunt to resolve this. Adding my error from my pipeline in case it assists. Running on a macos-12 runner
|
libc 0.2.165 was yanked, 0.2.166 just released with a fix for this https://github.com/rust-lang/libc/releases/tag/0.2.166 |
Thanks for taking swift action to fix that mistake in libc! And for everyone else here: please complain to libc next time instead of just silently patching around the bug :) |
relates to GuillaumeGomez/sysinfo#1392 error build log ``` error[E0599]: no method named `len` found for type `i8` in the current scope --> /Users/rui/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/sysinfo-0.31.4/src/unix/apple/macos/process.rs:432:53 | 432 | Some(node.vip_path.len() * node.vip_path[0].len()), | ^^^ | help: there is a method `le` with a similar name, but with different arguments --> /private/tmp/rust-20241128-8064-v5d6qj/rustc-1.83.0-src/library/core/src/cmp.rs:1353:5 ``` Signed-off-by: Rui Chen <[email protected]>
relates to GuillaumeGomez/sysinfo#1392 error build log ``` error[E0599]: no method named `len` found for type `i8` in the current scope --> /Users/rui/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/sysinfo-0.31.4/src/unix/apple/macos/process.rs:432:53 | 432 | Some(node.vip_path.len() * node.vip_path[0].len()), | ^^^ | help: there is a method `le` with a similar name, but with different arguments --> /private/tmp/rust-20241128-8064-v5d6qj/rustc-1.83.0-src/library/core/src/cmp.rs:1353:5 ``` Signed-off-by: Rui Chen <[email protected]>
Error in our CI - https://github.com/open-telemetry/opentelemetry-rust/actions/runs/12021048084/job/33510807110?pr=2342
This worked fine with libc v0.2.164 - https://github.com/open-telemetry/opentelemetry-rust/actions/runs/12017744786/job/33500761123?pr=2339
The text was updated successfully, but these errors were encountered: