Skip to content

ci: disable the DragonFlyBSD CI #2335

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

Merged

Conversation

SteveLauC
Copy link
Member

@SteveLauC SteveLauC commented Mar 16, 2024

What does this PR do

Disable the tier3 DragonFlyBSD CI because the latest nightly rust toolchain is broken on it, see the upstream issue: rust-lang/rust#122585

Nix issue: #2337

Checklist:

  • I have read CONTRIBUTING.md
  • I have written necessary tests and rustdoc comments
  • A change log has been added if this PR modifies nix's API

@SteveLauC
Copy link
Member Author

Can reproduce this in both CI and my local Linux machine with nightly cargo 1.78.0-nightly (7065f0ef4 2024-03-12).

To reproduce:

$ cargo new foo
$ cd foo
$ cargo +nightly --version
cargo 1.78.0-nightly (7065f0ef4 2024-03-12)

$ cargo +nightly check -Zbuild-std --target x86_64-unknown-dragonfly
   Compiling std v0.0.0 (/home/steve/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std)
error[E0425]: cannot find function `getrandom` in crate `libc`
  --> /home/steve/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/rand.rs:73:24
   |
73 |         unsafe { libc::getrandom(buf.as_mut_ptr().cast(), buf.len(), 0) }
   |                        ^^^^^^^^^ not found in `libc`

For more information about this error, try `rustc --explain E0425`.
error: could not compile `std` (lib) due to 1 previous error

And that function is indeed unavailable on DragonFlyBSD with libc 0.2.153.

@SteveLauC SteveLauC force-pushed the ci/try_reproduce_ci_error_tier3_dragonfly branch from c6c5a86 to 9232f7c Compare March 16, 2024 07:55
@SteveLauC SteveLauC changed the title ci: try reproduce the CI error on tier3 (x86_64-unknown-dragonfly) ci: Mar 16, 2024
@SteveLauC SteveLauC changed the title ci: ci: disable the DragonFlyBSD CI Mar 16, 2024
@SteveLauC SteveLauC added this pull request to the merge queue Mar 16, 2024
Merged via the queue into nix-rust:master with commit 346c1c3 Mar 16, 2024
@SteveLauC SteveLauC deleted the ci/try_reproduce_ci_error_tier3_dragonfly branch March 16, 2024 08:38
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

Successfully merging this pull request may close these issues.

1 participant