Fix the build issue of undefined import self::consts on the loongarch64 #2568
+9
−1
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
Loading