[INFO] fetching crate llama_cpp_sys 0.3.2... [INFO] checking llama_cpp_sys-0.3.2 against try#dcc22e5232dd0dbe95a4b3ab84c8d24a0880771e for pr-153721 [INFO] extracting crate llama_cpp_sys 0.3.2 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate llama_cpp_sys 0.3.2 [INFO] finished tweaking crates.io crate llama_cpp_sys 0.3.2 [INFO] tweaked toml for crates.io crate llama_cpp_sys 0.3.2 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate llama_cpp_sys 0.3.2 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 56 packages to latest compatible versions [INFO] [stderr] Adding ash v0.37.3+1.3.251 (available: v0.38.0+1.3.281) [INFO] [stderr] Adding bindgen v0.69.5 (available: v0.72.1) [INFO] [stderr] Adding cudarc v0.10.0 (available: v0.19.7) [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-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] c2bee57d9f3c10dc3161809ad8d676c880a87912f68af77b9b5df1e0dd39ef1a [INFO] running `Command { std: "docker" "start" "c2bee57d9f3c10dc3161809ad8d676c880a87912f68af77b9b5df1e0dd39ef1a", 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" "c2bee57d9f3c10dc3161809ad8d676c880a87912f68af77b9b5df1e0dd39ef1a" "/opt/rustwide/cargo-home/bin/cargo" "+dcc22e5232dd0dbe95a4b3ab84c8d24a0880771e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c2bee57d9f3c10dc3161809ad8d676c880a87912f68af77b9b5df1e0dd39ef1a", 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" "c2bee57d9f3c10dc3161809ad8d676c880a87912f68af77b9b5df1e0dd39ef1a" "/opt/rustwide/cargo-home/bin/cargo" "+dcc22e5232dd0dbe95a4b3ab84c8d24a0880771e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling regex-syntax v0.8.11 [INFO] [stderr] Compiling bitflags v2.13.0 [INFO] [stderr] Compiling either v1.16.0 [INFO] [stderr] Compiling libloading v0.8.9 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling bindgen v0.69.5 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling log v0.4.32 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling cc v1.2.64 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling syn v2.0.118 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling link-cplusplus v1.0.12 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling regex v1.12.4 [INFO] [stderr] Compiling llama_cpp_sys v0.3.2 (/opt/rustwide/workdir) [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | not(any(target_os = "macos", target_os = "ios", target_os = "dragonfly")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [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:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | not(any(target_os = "macos", target_os = "ios", target_os = "dragonfly")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:683:13 [INFO] [stdout] | [INFO] [stdout] 683 | not(any(target_os = "macos", target_os = "ios", target_os = "dragonfly")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | not(any(target_os = "macos", target_os = "ios", target_os = "dragonfly")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 166 | if cfg!(target_os = "linux") { [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:169:19 [INFO] [stdout] | [INFO] [stdout] 169 | } else if cfg!(target_os = "windows") { [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:175:8 [INFO] [stdout] | [INFO] [stdout] 175 | if cfg!(target_os = "openbsd") { [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:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | if cfg!(target_os = "linux") { [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:186:15 [INFO] [stdout] | [INFO] [stdout] 186 | } else if cfg!(any( [INFO] [stdout] | _______________^ [INFO] [stdout] 187 | | target_os = "macos", [INFO] [stdout] 188 | | target_os = "ios", [INFO] [stdout] 189 | | target_os = "dragonfly" [INFO] [stdout] 190 | | )) { [INFO] [stdout] | |______^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "macos" || std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "ios" || 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:193:15 [INFO] [stdout] | [INFO] [stdout] 193 | } else if cfg!(target_os = "openbsd") { [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:196:15 [INFO] [stdout] | [INFO] [stdout] 196 | } else if cfg!(target_os = "freebsd") { [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:199:15 [INFO] [stdout] | [INFO] [stdout] 199 | } else if cfg!(target_os = "netbsd") { [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:204:8 [INFO] [stdout] | [INFO] [stdout] 204 | if cfg!(any(target_arch = "arm", target_arch = "aarch64")) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_ARCH").unwrap_or_default() == "arm" || std::env::var("CARGO_CFG_TARGET_ARCH").unwrap_or_default() == "aarch64"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:205:12 [INFO] [stdout] | [INFO] [stdout] 205 | if cfg!(target_family = "unix") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap_or_default() == "unix"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:208:19 [INFO] [stdout] | [INFO] [stdout] 208 | } else if cfg!(target_family = "windows") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap_or_default() == "windows"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:223:8 [INFO] [stdout] | [INFO] [stdout] 223 | if cfg!(target_family = "unix") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap_or_default() == "unix"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:242:15 [INFO] [stdout] | [INFO] [stdout] 242 | } else if cfg!(target_family = "windows") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap_or_default() == "windows"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:264:8 [INFO] [stdout] | [INFO] [stdout] 264 | if cfg!(any(target_arch = "x86", target_arch = "x86_64")) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_ARCH").unwrap_or_default() == "x86" || std::env::var("CARGO_CFG_TARGET_ARCH").unwrap_or_default() == "x86_64"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:265:40 [INFO] [stdout] | [INFO] [stdout] 265 | if cfg!(feature = "native") && cfg!(target_os = "linux") { [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:270:37 [INFO] [stdout] | [INFO] [stdout] 270 | if cfg!(feature = "fma") && cfg!(target_family = "unix") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap_or_default() == "unix"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:275:38 [INFO] [stdout] | [INFO] [stdout] 275 | if cfg!(feature = "f16c") && cfg!(target_family = "unix") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap_or_default() == "unix"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:280:12 [INFO] [stdout] | [INFO] [stdout] 280 | if cfg!(target_family = "unix") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap_or_default() == "unix"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:305:19 [INFO] [stdout] | [INFO] [stdout] 305 | } else if cfg!(target_family = "windows") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap_or_default() == "windows"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:339:8 [INFO] [stdout] | [INFO] [stdout] 339 | if cfg!(target_os = "linux") { [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:342:15 [INFO] [stdout] | [INFO] [stdout] 342 | } else if cfg!(target_os = "macos") { [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:436:8 [INFO] [stdout] | [INFO] [stdout] 436 | if cfg!(target_os = "linux") { [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:670:17 [INFO] [stdout] | [INFO] [stdout] 670 | not(any(target_os = "macos", target_os = "ios", target_os = "dragonfly")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `opencl` [INFO] [stdout] --> build.rs:647:20 [INFO] [stdout] | [INFO] [stdout] 647 | } else if cfg!(feature = "opencl") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `accel`, `avx`, `avx2`, `avx512`, `avx512_vmbi`, `avx512_vnni`, `blas`, `clblast`, `compat`, `cuda`, `cuda_dmmv`, `cuda_f16`, `cuda_mmq`, `default`, `f16c`, `fma`, `hipblas`, `metal`, `mpi`, `native`, and `vulkan` [INFO] [stdout] = help: consider adding `opencl` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `openblas` [INFO] [stdout] --> build.rs:650:20 [INFO] [stdout] | [INFO] [stdout] 650 | } else if cfg!(feature = "openblas") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `accel`, `avx`, `avx2`, `avx512`, `avx512_vmbi`, `avx512_vnni`, `blas`, `clblast`, `compat`, `cuda`, `cuda_dmmv`, `cuda_f16`, `cuda_mmq`, `default`, `f16c`, `fma`, `hipblas`, `metal`, `mpi`, `native`, and `vulkan` [INFO] [stdout] = help: consider adding `openblas` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `blis` [INFO] [stdout] --> build.rs:653:20 [INFO] [stdout] | [INFO] [stdout] 653 | } else if cfg!(feature = "blis") { [INFO] [stdout] | ^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"blas"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `accel`, `avx`, `avx2`, `avx512`, `avx512_vmbi`, `avx512_vnni`, `blas`, `clblast`, `compat`, `cuda`, `cuda_dmmv`, `cuda_f16`, `cuda_mmq`, `default`, `f16c`, `fma`, `hipblas`, `metal`, `mpi`, `native`, and `vulkan` [INFO] [stdout] = help: consider adding `blis` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:656:42 [INFO] [stdout] | [INFO] [stdout] 656 | } else if cfg!(feature = "metal") && cfg!(target_os = "macos") { [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:763:31 [INFO] [stdout] | [INFO] [stdout] 763 | let lib_name = if cfg!(target_family = "windows") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap_or_default() == "windows"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:765:23 [INFO] [stdout] | [INFO] [stdout] 765 | } else if cfg!(target_family = "unix") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap_or_default() == "unix"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:794:12 [INFO] [stdout] | [INFO] [stdout] 794 | if cfg!(target_family = "windows") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap_or_default() == "windows"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:797:19 [INFO] [stdout] | [INFO] [stdout] 797 | } else if cfg!(target_family = "unix") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap_or_default() == "unix"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: target-based cfg should be avoided in build scripts [INFO] [stdout] --> build.rs:818:12 [INFO] [stdout] | [INFO] [stdout] 818 | if cfg!(target_os = "linux") { [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:826:19 [INFO] [stdout] | [INFO] [stdout] 826 | } else if cfg!(any( [INFO] [stdout] | ___________________^ [INFO] [stdout] 827 | | target_os = "macos", [INFO] [stdout] 828 | | target_os = "ios", [INFO] [stdout] 829 | | target_os = "dragonfly" [INFO] [stdout] 830 | | )) { [INFO] [stdout] | |__________^ help: use cargo environment variables if possible: `std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "macos" || std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "ios" || std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "dragonfly"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cc::Build::static_flag`: cc only creates static libraries, setting this does nothing [INFO] [stdout] --> build.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | cx.static_flag(true) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cc::Build::static_flag`: cc only creates static libraries, setting this does nothing [INFO] [stdout] --> build.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | cxx.static_flag(true) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> build.rs:498:9 [INFO] [stdout] | [INFO] [stdout] 498 | let mut output_file = File::create(&ggml_metal_shader_out_path).expect("Failed to create output file"); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `llama_cpp_sys` (build script) due to 34 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c2bee57d9f3c10dc3161809ad8d676c880a87912f68af77b9b5df1e0dd39ef1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2bee57d9f3c10dc3161809ad8d676c880a87912f68af77b9b5df1e0dd39ef1a", kill_on_drop: false }` [INFO] [stdout] c2bee57d9f3c10dc3161809ad8d676c880a87912f68af77b9b5df1e0dd39ef1a