[INFO] fetching crate clib 0.2.4... [INFO] checking clib-0.2.4 against try#dcc22e5232dd0dbe95a4b3ab84c8d24a0880771e for pr-153721 [INFO] extracting crate clib 0.2.4 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate clib 0.2.4 [INFO] finished tweaking crates.io crate clib 0.2.4 [INFO] tweaked toml for crates.io crate clib 0.2.4 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate clib 0.2.4 on toolchain dcc22e5232dd0dbe95a4b3ab84c8d24a0880771e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dcc22e5232dd0dbe95a4b3ab84c8d24a0880771e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dcc22e5232dd0dbe95a4b3ab84c8d24a0880771e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 63 packages to latest compatible versions [INFO] [stderr] Adding bindgen v0.64.0 (available: v0.72.1) [INFO] [stderr] Adding toml v0.7.8 (available: v1.1.2+spec-1.1.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dcc22e5232dd0dbe95a4b3ab84c8d24a0880771e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3e793bdf10248eb2ddbd6b0faebed8155c11b4589982e2893733958d93e8d540" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] cd863389b1720ad2d1f24d4ecd1780eb28d3ea3d6f468be5c165271ee5aedcba [INFO] running `Command { std: "docker" "start" "cd863389b1720ad2d1f24d4ecd1780eb28d3ea3d6f468be5c165271ee5aedcba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "cd863389b1720ad2d1f24d4ecd1780eb28d3ea3d6f468be5c165271ee5aedcba" "/opt/rustwide/cargo-home/bin/cargo" "+dcc22e5232dd0dbe95a4b3ab84c8d24a0880771e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd863389b1720ad2d1f24d4ecd1780eb28d3ea3d6f468be5c165271ee5aedcba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "cd863389b1720ad2d1f24d4ecd1780eb28d3ea3d6f468be5c165271ee5aedcba" "/opt/rustwide/cargo-home/bin/cargo" "+dcc22e5232dd0dbe95a4b3ab84c8d24a0880771e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling libc v0.2.186 [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling hashbrown v0.17.1 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling bitflags v2.13.0 [INFO] [stderr] Compiling memchr v2.8.2 [INFO] [stderr] Compiling regex-syntax v0.8.11 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling bindgen v0.64.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling either v1.16.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling log v0.4.32 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling indexmap v2.14.0 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling regex v1.12.4 [INFO] [stderr] Compiling toml v0.7.8 [INFO] [stderr] Compiling inwelling v0.5.5 [INFO] [stderr] Compiling clib v0.2.4 (/opt/rustwide/workdir) [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:34:27 [INFO] [stdout] | [INFO] [stdout] 34 | "android" => if cfg!( target_os = "android" ) {true} else {false}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "android"` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(misleading_cfg_in_build_script)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 35 | "dragonfly" => if cfg!( target_os = "dragonfly" ) {true} else {false}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "dragonfly"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:36:27 [INFO] [stdout] | [INFO] [stdout] 36 | "freebsd" => if cfg!( target_os = "freebsd" ) {true} else {false}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "freebsd"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:37:27 [INFO] [stdout] | [INFO] [stdout] 37 | "ios" => if cfg!( target_os = "ios" ) {true} else {false}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "ios"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:38:27 [INFO] [stdout] | [INFO] [stdout] 38 | "linux" => if cfg!( target_os = "linux" ) {true} else {false}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "linux"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:39:27 [INFO] [stdout] | [INFO] [stdout] 39 | "macos" => if cfg!( target_os = "macos" ) {true} else {false}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "macos"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:40:27 [INFO] [stdout] | [INFO] [stdout] 40 | "netbsd" => if cfg!( target_os = "netbsd" ) {true} else {false}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "netbsd"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 41 | "openbsd" => if cfg!( target_os = "openbsd" ) {true} else {false}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "openbsd"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | "windows" => if cfg!( target_os = "windows" ) {true} else {false}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "windows"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:43:27 [INFO] [stdout] | [INFO] [stdout] 43 | "unix" => if cfg!( unix ) {true} else {false}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_UNIX").is_ok()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 186 | if cfg!( unix ) { [INFO] [stdout] | ^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_UNIX").is_ok()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:198:51 [INFO] [stdout] | [INFO] [stdout] 198 | let output = Command::new( if cfg!(unix) { "which" } else { "where" }) [INFO] [stdout] | ^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_UNIX").is_ok()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:364:12 [INFO] [stdout] | [INFO] [stdout] 364 | #[cfg( target_os = "freebsd" )] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `clib` (build script) due to 13 previous errors [INFO] running `Command { std: "docker" "inspect" "cd863389b1720ad2d1f24d4ecd1780eb28d3ea3d6f468be5c165271ee5aedcba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd863389b1720ad2d1f24d4ecd1780eb28d3ea3d6f468be5c165271ee5aedcba", kill_on_drop: false }` [INFO] [stdout] cd863389b1720ad2d1f24d4ecd1780eb28d3ea3d6f468be5c165271ee5aedcba