[INFO] cloning repository https://github.com/ahmedriza/build_llm_from_scratch [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ahmedriza/build_llm_from_scratch" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fahmedriza%2Fbuild_llm_from_scratch", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fahmedriza%2Fbuild_llm_from_scratch'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9a466bb1e11715949f01fe24e35990dffebcbf93 [INFO] testing ahmedriza/build_llm_from_scratch against try#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fahmedriza%2Fbuild_llm_from_scratch" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-1-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/ahmedriza/build_llm_from_scratch [INFO] finished tweaking git repo https://github.com/ahmedriza/build_llm_from_scratch [INFO] tweaked toml for git repo https://github.com/ahmedriza/build_llm_from_scratch written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ahmedriza/build_llm_from_scratch on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ahmedriza/build_llm_from_scratch already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded generic-array v0.14.9 [INFO] [stderr] Downloaded destructure_traitobject v0.2.0 [INFO] [stderr] Downloaded thread-id v5.0.0 [INFO] [stderr] Downloaded mock_instant v0.6.0 [INFO] [stderr] Downloaded unsafe-any-ors v1.0.0 [INFO] [stderr] Downloaded log-mdc v0.1.0 [INFO] [stderr] Downloaded safetensors v0.3.3 [INFO] [stderr] Downloaded typemap-ors v1.0.0 [INFO] [stderr] Downloaded cc v1.2.41 [INFO] [stderr] Downloaded proc-macro2 v1.0.102 [INFO] [stderr] Downloaded log4rs v1.4.0 [INFO] [stderr] Downloaded torch-sys v0.22.0 [INFO] [stderr] Downloaded bstr v1.12.0 [INFO] [stderr] Downloaded tch v0.22.0 [INFO] [stderr] Downloaded tiktoken-rs v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 47a34ab0f2f589256dd713ae4567a3bcfc9cc3cadb00f19d508fc742dd31e0b4 [INFO] running `Command { std: "docker" "start" "-a" "47a34ab0f2f589256dd713ae4567a3bcfc9cc3cadb00f19d508fc742dd31e0b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "47a34ab0f2f589256dd713ae4567a3bcfc9cc3cadb00f19d508fc742dd31e0b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47a34ab0f2f589256dd713ae4567a3bcfc9cc3cadb00f19d508fc742dd31e0b4", kill_on_drop: false }` [INFO] [stdout] 47a34ab0f2f589256dd713ae4567a3bcfc9cc3cadb00f19d508fc742dd31e0b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-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" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6a09ef075af2315aa08a4f3bea43a72fce73f1fe1971de1e35146ff810e42c76 [INFO] running `Command { std: "docker" "start" "-a" "6a09ef075af2315aa08a4f3bea43a72fce73f1fe1971de1e35146ff810e42c76", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.102 [INFO] [stderr] Compiling unicode-ident v1.0.20 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling find-msvc-tools v0.1.4 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling base64ct v1.8.0 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling deranged v0.5.5 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling matrixmultiply v0.3.10 [INFO] [stderr] Compiling password-hash v0.4.2 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling cc v1.2.41 [INFO] [stderr] Compiling destructure_traitobject v0.2.0 [INFO] [stderr] Compiling flate2 v1.1.5 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling unsafe-any-ors v1.0.0 [INFO] [stderr] Compiling ordered-float v2.10.1 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling tch v0.22.0 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Compiling indexmap v2.12.0 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling typemap-ors v1.0.0 [INFO] [stderr] Compiling thread-id v5.0.0 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling humantime v2.3.0 [INFO] [stderr] Compiling log-mdc v0.1.0 [INFO] [stderr] Compiling mock_instant v0.6.0 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling ndarray v0.16.1 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling bzip2-sys v0.1.13+1.0.8 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling bzip2 v0.4.4 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling bstr v1.12.0 [INFO] [stderr] Compiling fancy-regex v0.13.0 [INFO] [stderr] Compiling tiktoken-rs v0.7.0 [INFO] [stderr] Compiling zerocopy-derive v0.8.27 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling zip v0.6.6 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling torch-sys v0.22.0 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] error: failed to run custom build command for `torch-sys v0.22.0` [INFO] [stderr] note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation. [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/target/debug/build/torch-sys-75c1ab90b8391f2b/build-script-build` (exit status: 1) [INFO] [stderr] --- stdout [INFO] [stderr] cargo:rerun-if-env-changed=LIBTORCH_USE_PYTORCH [INFO] [stderr] cargo:rerun-if-env-changed=LIBTORCH [INFO] [stderr] [INFO] [stderr] --- stderr [INFO] [stderr] Error: [INFO] [stderr] Cannot find a libtorch install, you can either: [INFO] [stderr] - Install libtorch manually and set the LIBTORCH environment variable to appropriate path. [INFO] [stderr] - Use a system wide install in /usr/lib/libtorch.so. [INFO] [stderr] - Use a Python environment with PyTorch installed by setting LIBTORCH_USE_PYTORCH=1 [INFO] [stderr] [INFO] [stderr] See the readme for more details: [INFO] [stderr] https://github.com/LaurentMazare/tch-rs/blob/main/README.md [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] Stack backtrace: [INFO] [stderr] 0: ::new::<&str> [INFO] [stderr] 1: ::prepare_libtorch_dir [INFO] [stderr] 2: ::new [INFO] [stderr] 3: build_script_build::main [INFO] [stderr] 4: core::result::Result<(), anyhow::Error> as core::ops::function::FnOnce<()>>::call_once [INFO] [stderr] 5: std::sys::backtrace::__rust_begin_short_backtrace:: core::result::Result<(), anyhow::Error>, core::result::Result<(), anyhow::Error>> [INFO] [stderr] 6: std::rt::lang_start::>::{closure#0} [INFO] [stderr] 7: <&dyn core::ops::function::Fn<(), Output = i32> + core::marker::Sync + core::panic::unwind_safe::RefUnwindSafe as core::ops::function::FnOnce<()>>::call_once [INFO] [stderr] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/ops/function.rs:287:21 [INFO] [stderr] 8: std::panicking::catch_unwind::do_call::<&dyn core::ops::function::Fn<(), Output = i32> + core::marker::Sync + core::panic::unwind_safe::RefUnwindSafe, i32> [INFO] [stderr] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:581:40 [INFO] [stderr] 9: std::panicking::catch_unwind:: + core::marker::Sync + core::panic::unwind_safe::RefUnwindSafe> [INFO] [stderr] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:544:19 [INFO] [stderr] 10: std::panic::catch_unwind::<&dyn core::ops::function::Fn<(), Output = i32> + core::marker::Sync + core::panic::unwind_safe::RefUnwindSafe, i32> [INFO] [stderr] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panic.rs:359:14 [INFO] [stderr] 11: std::rt::lang_start_internal::{closure#0} [INFO] [stderr] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/rt.rs:175:24 [INFO] [stderr] 12: std::panicking::catch_unwind::do_call:: [INFO] [stderr] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:581:40 [INFO] [stderr] 13: std::panicking::catch_unwind:: [INFO] [stderr] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:544:19 [INFO] [stderr] 14: std::panic::catch_unwind:: [INFO] [stderr] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panic.rs:359:14 [INFO] [stderr] 15: std::rt::lang_start_internal [INFO] [stderr] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/rt.rs:171:5 [INFO] [stderr] 16: std::rt::lang_start::> [INFO] [stderr] 17: main [INFO] [stderr] 18: [INFO] [stderr] 19: __libc_start_main [INFO] [stderr] 20: _start [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "6a09ef075af2315aa08a4f3bea43a72fce73f1fe1971de1e35146ff810e42c76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a09ef075af2315aa08a4f3bea43a72fce73f1fe1971de1e35146ff810e42c76", kill_on_drop: false }` [INFO] [stdout] 6a09ef075af2315aa08a4f3bea43a72fce73f1fe1971de1e35146ff810e42c76