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

Fix the build issue of undefined import self::consts on the loongarch64 #2568

Draft
wants to merge 1 commit into
base: r0.26
Choose a base branch
from

Fix the build issue of undefined import self::consts on the loongarch64

26cddd7
Select commit
Loading
Failed to load commit list.
Draft

Fix the build issue of undefined import self::consts on the loongarch64 #2568

Fix the build issue of undefined import self::consts on the loongarch64
26cddd7
Select commit
Loading
Failed to load commit list.
Cirrus CI / Linux armv7 uclibceabihf failed Dec 20, 2024 in 30s

Task Summary

Instruction build failed in 00:26

Details

ℹ️ Scheduling was delayed due to a concurrency limit on community tasks

✅ 00:01 clone
✅ 00:01 setup
❌ 00:26 build

error: unexpected `cfg` condition name: `qemu`
    --> src/sys/socket/mod.rs:1881:27
     |
1881 |             #[cfg(not(any(qemu, target_arch = "aarch64")))]
     |                           ^^^^
     |
     = help: consider using a Cargo feature instead
     = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
              [lints.rust]
              unexpected_cfgs = { level = "warn", check-cfg = ['cfg(qemu)'] }
     = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(qemu)");` to the top of the `build.rs`
     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

error: unexpected `cfg` condition name: `qemu`
    --> src/sys/socket/mod.rs:1903:27
     |
1903 |             #[cfg(not(any(qemu, target_arch = "aarch64")))]
     |                           ^^^^
     |
     = help: consider using a Cargo feature instead
     = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
              [lints.rust]
              unexpected_cfgs = { level = "warn", check-cfg = ['cfg(qemu)'] }
     = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(qemu)");` to the top of the `build.rs`
     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

error: unexpected `cfg` condition name: `qemu`
    --> src/sys/socket/mod.rs:1896:35
     |
1896 |                     #[cfg(not(any(qemu, target_arch = "aarch64")))]
     |                                   ^^^^
     |
     = help: consider using a Cargo feature instead
     = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
              [lints.rust]
              unexpected_cfgs = { level = "warn", check-cfg = ['cfg(qemu)'] }
     = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(qemu)");` to the top of the `build.rs`
     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

error: missing documentation for a function
  --> src/features.rs:94:5
   |
94 |     pub fn test_parsing_kernel_version() {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> src/lib.rs:81:12
   |
81 |     #[deny(missing_docs)]
   |            ^^^^^^^^^^^^

error: could not compile `nix` (lib) due to 5 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `nix` (lib test) due to 10 previous errors

Exit status: 101