[INFO] cloning repository https://github.com/bkc-tomi/math-algorithm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bkc-tomi/math-algorithm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbkc-tomi%2Fmath-algorithm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbkc-tomi%2Fmath-algorithm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3d5d085d3a26503779710cedb6e0905d10b1a747 [INFO] testing bkc-tomi/math-algorithm 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%2Fbkc-tomi%2Fmath-algorithm" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/bkc-tomi/math-algorithm [INFO] finished tweaking git repo https://github.com/bkc-tomi/math-algorithm [INFO] tweaked toml for git repo https://github.com/bkc-tomi/math-algorithm written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/bkc-tomi/math-algorithm 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/bkc-tomi/math-algorithm 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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] bb067f6fa43ee6dafd52d46c3c3699e4c52b7f5871aba0184e01087f3c087ebc [INFO] running `Command { std: "docker" "start" "-a" "bb067f6fa43ee6dafd52d46c3c3699e4c52b7f5871aba0184e01087f3c087ebc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bb067f6fa43ee6dafd52d46c3c3699e4c52b7f5871aba0184e01087f3c087ebc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb067f6fa43ee6dafd52d46c3c3699e4c52b7f5871aba0184e01087f3c087ebc", kill_on_drop: false }` [INFO] [stdout] bb067f6fa43ee6dafd52d46c3c3699e4c52b7f5871aba0184e01087f3c087ebc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] ba3f660cb6e17c70da7373ec38011aa9f8a4b55aef3edb8789981591891ed822 [INFO] running `Command { std: "docker" "start" "-a" "ba3f660cb6e17c70da7373ec38011aa9f8a4b55aef3edb8789981591891ed822", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling getrandom v0.2.4 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling math_algorithm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `temp` is never read [INFO] [stdout] --> src/section_3/q015.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut temp: u64 = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/section_3/q0262.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut x: f64 = 0.0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/section_3/q0262.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut y: f64 = 0.0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `distance1` is never read [INFO] [stdout] --> src/section_3/q0262.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut distance1: f64 = 0.0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `distance2` is never read [INFO] [stdout] --> src/section_3/q0262.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut distance2: f64 = 0.0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/section_3/q0262.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | for i in 0..N { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `isprime` is never used [INFO] [stdout] --> src/section_3/q012.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn isprime(n: u64) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `isprime_debug` is never used [INFO] [stdout] --> src/section_3/q012.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn isprime_debug(n: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divsors` is never used [INFO] [stdout] --> src/section_3/q013.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn divsors(n: u64) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divsors_debug` is never used [INFO] [stdout] --> src/section_3/q013.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn divsors_debug(n: u64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prime_factorization` is never used [INFO] [stdout] --> src/section_3/q014.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn prime_factorization(n: u64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prime_factorization_debug` is never used [INFO] [stdout] --> src/section_3/q014.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn prime_factorization_debug(n: u64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gcd` is never used [INFO] [stdout] --> src/section_3/q015.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn gcd(a: u64, b: u64) -> u64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gcd_debug` is never used [INFO] [stdout] --> src/section_3/q015.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn gcd_debug(a: u64, b: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multi_gcd` is never used [INFO] [stdout] --> src/section_3/q016.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn multi_gcd(nums: &[u64]) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multi_gcd_debug` is never used [INFO] [stdout] --> src/section_3/q016.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn multi_gcd_debug(nums: &[u64]) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lcm` is never used [INFO] [stdout] --> src/section_3/q017.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn lcm(a: u64, b: u64) -> u64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multi_lcm` is never used [INFO] [stdout] --> src/section_3/q017.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn multi_lcm(nums: &[u64]) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `comb` is never used [INFO] [stdout] --> src/section_3/q018.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn comb(ns: &[u16]) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `comb` is never used [INFO] [stdout] --> src/section_3/q019.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn comb(cards: &[u8]) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `comb` is never used [INFO] [stdout] --> src/section_3/q020.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn comb(cards: &[u32]) -> u64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `comb` is never used [INFO] [stdout] --> src/section_3/q021.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn comb(r: u8, n: u8) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `comb` is never used [INFO] [stdout] --> src/section_3/q022.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn comb(cards: &[u64]) -> u64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `comb_imp` is never used [INFO] [stdout] --> src/section_3/q022.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn comb_imp(cards: &[u64]) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dice_expected_value` is never used [INFO] [stdout] --> src/section_3/q023.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn dice_expected_value(dice_1: &[u64], dice_2: &[u64]) -> (f64, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expected_value` is never used [INFO] [stdout] --> src/section_3/q024.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn expected_value(ps: &[u8], qs: &[u8]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expected_value` is never used [INFO] [stdout] --> src/section_3/q025.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn expected_value(a: &[u8], b: &[u8]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expected_value` is never used [INFO] [stdout] --> src/section_3/q026.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn expected_value(n: u64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u8` is never used [INFO] [stdout] --> src/my_utils/my_input.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn u8(msg: &str) -> u8 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u16` is never used [INFO] [stdout] --> src/my_utils/my_input.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn u16(msg: &str) -> u16 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u32` is never used [INFO] [stdout] --> src/my_utils/my_input.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn u32(msg: &str) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `i8` is never used [INFO] [stdout] --> src/my_utils/my_input.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn i8(msg: &str) -> i8 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `i16` is never used [INFO] [stdout] --> src/my_utils/my_input.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn i16(msg: &str) -> i16 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `i32` is never used [INFO] [stdout] --> src/my_utils/my_input.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn i32(msg: &str) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `monteCarlo` should have a snake case name [INFO] [stdout] --> src/section_3/q0262.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn monteCarlo() -> i32 { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `monte_carlo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/section_3/q0262.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let N: i32 = 1000000; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [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/rustcni17fm/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{librand-a87cf678aff51886.rlib,librand_chacha-d9bb65a8371ebba3.rlib,libppv_lite86-a9f3c9ee76597f1e.rlib,librand_core-6fc3494d13b1e689.rlib,libgetrandom-bad4c5ea0ec32e67.rlib,liblibc-d9238f65abd8d74b.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/rustcni17fm/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/math_algorithm-71c17d6b168a89e6" "-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-bad4c5ea0ec32e67.rlib(getrandom-bad4c5ea0ec32e67.getrandom.35c21fc41cd5ea13-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.4/src/util_libc.rs:110:(.text._ZN9getrandom9util_libc13open_readonly17hcee493bc411ca6feE+0xb6): 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 `math_algorithm` (bin "math_algorithm") due to 1 previous error; 36 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ba3f660cb6e17c70da7373ec38011aa9f8a4b55aef3edb8789981591891ed822", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba3f660cb6e17c70da7373ec38011aa9f8a4b55aef3edb8789981591891ed822", kill_on_drop: false }` [INFO] [stdout] ba3f660cb6e17c70da7373ec38011aa9f8a4b55aef3edb8789981591891ed822