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

Compilation fails on OpenBSD #249

Open
igor-petruk opened this issue Jun 30, 2024 · 0 comments
Open

Compilation fails on OpenBSD #249

igor-petruk opened this issue Jun 30, 2024 · 0 comments

Comments

@igor-petruk
Copy link

igor-petruk commented Jun 30, 2024

Hi,

Compiling pprof on OpenBSD gives this error, same as under FreeBSD under #151

error[E0425]: cannot find value `addr` in this scope
   --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pprof-0.13.0/src/profiler.rs:344:44
    |
344 |                 if profiler.is_blocklisted(addr) {
    |                                            ^^^^ not found in this scope

error[E0425]: cannot find function `create_pipe` in this scope
  --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pprof-0.13.0/src/addr_validate.rs:58:31
   |
58 |     let (read_fd, write_fd) = create_pipe()?;
   |                               ^^^^^^^^^^^ not found in this scope

error[E0308]: mismatched types
   --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pprof-0.13.0/src/profiler.rs:235:9
    |
235 | /         unsafe {
236 | |             #[cfg(target_os = "android")]
237 | |             {
238 | |                 let errno = *libc::__errno();
...   |
250 | |             }
251 | |         }
    | |_________^ expected `ErrnoProtector`, found `()`

Some errors have detailed explanations: E0308, E0425.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `pprof` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...

OpenBSD is 7.5 (unrelease, snapshots), but it probably does not work on stable too.

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