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

[bug] clean install of macos results in build error #763

Closed
ethanlee16 opened this issue Nov 26, 2024 · 6 comments
Closed

[bug] clean install of macos results in build error #763

ethanlee16 opened this issue Nov 26, 2024 · 6 comments
Labels
bug Something isn't working 💰 Rewarded

Comments

@ethanlee16
Copy link

describe the bug
Clean install of macOS does not compile successfully.

to reproduce

  1. Follow the directions at https://docs.screenpi.pe/docs/getting-started#macos-installation to build screenpipe from source.
  2. Observe that cargo build --release --features metal results in a build failure with the following error:
error[E0599]: no method named `len` found for type `i8` in the current scope
    --> /Users/ethan/.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/ethan/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/cmp.rs:1196:5
     |
1196 |     fn le(&self, other: &Rhs) -> bool {
     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

expected behavior
build command should succeed

system info

  • os: macos 15.1.1 (24B91)
  • screenpipe version: 0.1.98

additional context
This may have happened due to a recent update to libc types for macOS released a couple hours ago in 0.2.165: rust-lang/libc#4062

@ethanlee16 ethanlee16 added the bug Something isn't working label Nov 26, 2024
Copy link

linear bot commented Nov 26, 2024

@ethanlee16
Copy link
Author

ethanlee16 commented Nov 26, 2024

I resolved this issue by setting libc to exactly 0.2.164 in screenpipe-vision:

screenpipe-vision/Cargo.toml

[target.'cfg(target_os = "macos")'.dependencies]
- libc = "0.2"
+ libc = "=0.2.164"
xcap = "0.0.13" 

[target.'cfg(target_os = "linux")'.dependencies]
- libc = "0.2"
+ libc = "=0.2.164"
xcap = "0.0.14"

@ethanlee16
Copy link
Author

This is related to sysinfo 0.31.4 getting pulled in by xcap, and the sysinfo issue is being tracked here: GuillaumeGomez/sysinfo#1392

@louis030195
Copy link
Collaborator

/tip $50 @ethanlee16

thank you for saving me time, fixed

Copy link

algora-pbc bot commented Nov 26, 2024

@ethanlee16: You just got a $50 tip! 👉 Complete your Algora onboarding to collect your payment.

Copy link

algora-pbc bot commented Nov 27, 2024

🎉🎈 @ethanlee16 has been awarded $50! 🎈🎊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 💰 Rewarded
Projects
None yet
Development

No branches or pull requests

2 participants