[INFO] cloning repository https://github.com/nuonuo534/train [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nuonuo534/train" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnuonuo534%2Ftrain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnuonuo534%2Ftrain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b48d23d04a62666e4d79e53ffaf50dadba48db08 [INFO] testing nuonuo534/train against try#c066bf6804adc55193b71afdff6a56922f4a8689+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_in_2025-retry-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnuonuo534%2Ftrain" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nuonuo534/train [INFO] finished tweaking git repo https://github.com/nuonuo534/train [INFO] tweaked toml for git repo https://github.com/nuonuo534/train written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nuonuo534/train on toolchain c066bf6804adc55193b71afdff6a56922f4a8689 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nuonuo534/train 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" "+c066bf6804adc55193b71afdff6a56922f4a8689" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ab34465de83a7844f7080277fcfc4dc2e90bb831c23862de85f6ec6a1726a5f8 [INFO] running `Command { std: "docker" "start" "-a" "ab34465de83a7844f7080277fcfc4dc2e90bb831c23862de85f6ec6a1726a5f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ab34465de83a7844f7080277fcfc4dc2e90bb831c23862de85f6ec6a1726a5f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab34465de83a7844f7080277fcfc4dc2e90bb831c23862de85f6ec6a1726a5f8", kill_on_drop: false }` [INFO] [stdout] ab34465de83a7844f7080277fcfc4dc2e90bb831c23862de85f6ec6a1726a5f8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 119ebe99268204e158df81578201a8d8d0cc7c6d9ac18507f87d7b0894e5b1f0 [INFO] running `Command { std: "docker" "start" "-a" "119ebe99268204e158df81578201a8d8d0cc7c6d9ac18507f87d7b0894e5b1f0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.140 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling io-lifetimes v1.0.6 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling rustix v0.36.9 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling linux-raw-sys v0.1.4 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling os_str_bytes v6.4.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling termcolor v1.2.0 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling indextree v4.6.0 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling miniz_oxide v0.6.2 [INFO] [stderr] Compiling clap_lex v0.3.2 [INFO] [stderr] Compiling flate2 v1.0.25 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling xattr v0.2.3 [INFO] [stderr] Compiling filetime v0.2.20 [INFO] [stderr] Compiling tar v0.4.38 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling is-terminal v0.4.4 [INFO] [stderr] Compiling clap v4.1.8 [INFO] [stderr] Compiling train v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `BufWriter` [INFO] [stdout] --> src/example/tar.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{BufReader, BufWriter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tar` [INFO] [stdout] --> src/main.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use example::{algorithm, cli, tar}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `y`, and `z` are never read [INFO] [stdout] --> src/example/algorithm.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 28 | x: i32, [INFO] [stdout] | ^ [INFO] [stdout] 29 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] 30 | z: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `basename` is never used [INFO] [stdout] --> src/example/tar.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn basename<'a>(path: &'a str, sep: char) -> Cow<'a, str> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_file` is never used [INFO] [stdout] --> src/example/tar.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn decode_file(p: &str) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tar_file` is never used [INFO] [stdout] --> src/example/tar.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn tar_file(p: &str) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_variable_content1` is never used [INFO] [stdout] --> src/utils/format.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn string_variable_content1(str: &str, variable: HashMap<&str, &str>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_variable_content2` is never used [INFO] [stdout] --> src/utils/format.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn string_variable_content2(str: &str, variable: HashMap<&str, &str>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Tree` is never used [INFO] [stdout] --> src/utils/class.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Tree { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/utils/class.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createTree` is never used [INFO] [stdout] --> src/utils/class.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn createTree(arr: Vec) -> Arena { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/utils/class.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createTree` should have a snake case name [INFO] [stdout] --> src/utils/class.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn createTree(arr: Vec) -> Arena { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `create_tree` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/tmp/rustcf2FsQp/symbols.o" "<4 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{libindextree-9241e0ce6b346dac.rlib,libregex-d70f453da13f727e.rlib,libaho_corasick-ab96e5574c3925ff.rlib,libmemchr-d88797af6a5880b4.rlib,libregex_syntax-f0932470bd92356c.rlib,libtar-c09c754862492fb0.rlib,libxattr-626d3014699f2f0b.rlib,libfiletime-c672a866f9de8abf.rlib,libflate2-89b9137a5838cb81.rlib,libminiz_oxide-c6286003a0ff25c8.rlib,libadler-b32dea79b2f05ffd.rlib,libcrc32fast-8f2d6020cd2aee51.rlib,libclap-b49f2f088e43c0ac.rlib,libstrsim-7a71560e0c2955e4.rlib,libis_terminal-0c547b080f82c0a2.rlib,librustix-952370c8017deb18.rlib,liblinux_raw_sys-15f2ff7caef8d914.rlib,libio_lifetimes-a8ee0e6b941a7cbe.rlib,libclap_lex-58f92e8eb7ae03de.rlib,libos_str_bytes-aa65ca338869b0fe.rlib,libtermcolor-2668f5afa8402de7.rlib,libbitflags-e274cd04b58a060d.rlib,libansi_term-bdfff57b5fb49171.rlib,librand-8737667092ae32c0.rlib,librand_chacha-ed463f81938f9545.rlib,libppv_lite86-742ade976f63ace4.rlib,librand_core-9bc5b88a10694a05.rlib,libgetrandom-9dce6743e7e298b9.rlib,liblibc-8c6026cb9ab8c49f.rlib,libcfg_if-66d55f6b302e88c8.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*}.rlib" "-lunwind" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libcfg_if-*,liblibc-*}.rlib" "-lc" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/tmp/rustcf2FsQp/raw-dylibs" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib" "-o" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/train-784417b1347f3207" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: /usr/bin/ld: /opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/libgetrandom-9dce6743e7e298b9.rlib(getrandom-9dce6743e7e298b9.getrandom.636bd0d874aa4e4d-cgu.0.rcgu.o): in function `getrandom::util_libc::open_readonly': [INFO] [stdout] /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.2.8/src/util_libc.rs:150:(.text._ZN9getrandom9util_libc13open_readonly17h886ac6017618bf2cE+0xbc): undefined reference to `open64' [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified [INFO] [stdout] = note: use the `-l` flag to specify native libraries to link [INFO] [stdout] = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `train` (bin "train") due to 1 previous error; 13 warnings emitted [INFO] running `Command { std: "docker" "inspect" "119ebe99268204e158df81578201a8d8d0cc7c6d9ac18507f87d7b0894e5b1f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "119ebe99268204e158df81578201a8d8d0cc7c6d9ac18507f87d7b0894e5b1f0", kill_on_drop: false }` [INFO] [stdout] 119ebe99268204e158df81578201a8d8d0cc7c6d9ac18507f87d7b0894e5b1f0