[INFO] cloning repository https://github.com/JustinWoodring/naive-rsa [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JustinWoodring/naive-rsa" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJustinWoodring%2Fnaive-rsa", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJustinWoodring%2Fnaive-rsa'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 41ffe4cefd38014b1edad4986fed364487b4f04f [INFO] testing JustinWoodring/naive-rsa 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%2FJustinWoodring%2Fnaive-rsa" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/JustinWoodring/naive-rsa [INFO] finished tweaking git repo https://github.com/JustinWoodring/naive-rsa [INFO] tweaked toml for git repo https://github.com/JustinWoodring/naive-rsa written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JustinWoodring/naive-rsa 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/JustinWoodring/naive-rsa 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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 5dac6b1b0df366357dc67ce7cd6b0576b5d82b399ca8170b3b7a854145e24da4 [INFO] running `Command { std: "docker" "start" "-a" "5dac6b1b0df366357dc67ce7cd6b0576b5d82b399ca8170b3b7a854145e24da4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5dac6b1b0df366357dc67ce7cd6b0576b5d82b399ca8170b3b7a854145e24da4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5dac6b1b0df366357dc67ce7cd6b0576b5d82b399ca8170b3b7a854145e24da4", kill_on_drop: false }` [INFO] [stdout] 5dac6b1b0df366357dc67ce7cd6b0576b5d82b399ca8170b3b7a854145e24da4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 3ee49b2bc6dbaf57c17f9a6625715dd925d38e73ff3967a92fe65778d599bdc2 [INFO] running `Command { std: "docker" "start" "-a" "3ee49b2bc6dbaf57c17f9a6625715dd925d38e73ff3967a92fe65778d599bdc2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling unicode-ident v1.0.2 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.139 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling serde v1.0.139 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling unicode-xid v0.2.3 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling num_threads v0.1.6 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Compiling itoa v1.0.2 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling colored v2.0.0 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling time v0.3.11 [INFO] [stderr] Compiling simple_logger v2.2.0 [INFO] [stderr] Compiling rusticata-macros v4.1.0 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling asn1-rs-impl v0.1.0 [INFO] [stderr] Compiling displaydoc v0.2.3 [INFO] [stderr] Compiling asn1-rs-derive v0.4.0 [INFO] [stderr] Compiling thiserror v1.0.31 [INFO] [stderr] Compiling asn1-rs v0.5.1 [INFO] [stderr] Compiling naive-rsa v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Error` and `FromDer` [INFO] [stdout] --> src/asn1.rs:1:32 [INFO] [stdout] | [INFO] [stdout] 1 | use asn1_rs::{BigInt, BigUint, Error, FromDer, Integer, Sequence, Tag, Tagged, ToDer}; [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BigInt` and `BigUint` [INFO] [stdout] --> src/rsa/encrypt.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use asn1_rs::{BigInt, BigUint}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RSAPublicKey` [INFO] [stdout] --> src/rsa/gen_keypair.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | asn1::{RSAPrivateKey, RSAPublicKey}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p` is never read [INFO] [stdout] --> src/rsa/gen_keypair.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | let mut p = BigUint::from(0u64); [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 `q` is never read [INFO] [stdout] --> src/rsa/gen_keypair.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | let mut q = BigUint::from(0u64); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rsa/gen_keypair.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut p_handle = thread::spawn(move || { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rsa/gen_keypair.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut q_handle = thread::spawn(move || { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asn1.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | fn get_sequence(&self) -> Sequence { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 12 | fn get_sequence(&self) -> Sequence<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/asn1.rs:141:21 [INFO] [stdout] | [INFO] [stdout] 141 | fn get_sequence(&self) -> Sequence { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 141 | fn get_sequence(&self) -> Sequence<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `encrypt::rsaes_pkcs1_v1_5_encrypt` [INFO] [stdout] --> src/main.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | rsa::{encrypt::rsaes_pkcs1_v1_5_encrypt, gen_keypair::generate_keypair}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `private_key_output_location` is never read [INFO] [stdout] --> src/main.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | let mut private_key_output_location = PathBuf::new(); [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: unused variable: `public` [INFO] [stdout] --> src/main.rs:400:9 [INFO] [stdout] | [INFO] [stdout] 400 | let public = [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_public` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:36:20 [INFO] [stdout] | [INFO] [stdout] 36 | if num >= 0 && num < operations.len().try_into().unwrap() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:74:16 [INFO] [stdout] | [INFO] [stdout] 74 | if num >= 0 && num < key_sizes.len().try_into().unwrap() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:105:16 [INFO] [stdout] | [INFO] [stdout] 105 | if num >= 0 && num < output_encodings.len().try_into().unwrap() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:325:16 [INFO] [stdout] | [INFO] [stdout] 325 | if num >= 0 && num < encryption_protocols.len().try_into().unwrap() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:357:16 [INFO] [stdout] | [INFO] [stdout] 357 | if num >= 0 && num < input_encodings.len().try_into().unwrap() { [INFO] [stdout] | ^^^^^^^^ [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/rustcIm1QgG/symbols.o" "<3 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{libsimple_logger-247b14df88bd1b57.rlib,libtime-d2b14cf744c670e2.rlib,libnum_threads-7f7c3d0693d679a8.rlib,libitoa-95e5ea577b522801.rlib,libcolored-185d261f1fe257bf.rlib,liblazy_static-4b136fc9bfbd2c4b.rlib,libatty-b3e0f47ca1dd12df.rlib,libnaive_rsa-52b27f00b9109c40.rlib,libbase64-1447dfff012d42f8.rlib,liblog-85ece36e36b085b5.rlib,libasn1_rs-81ecb84ea309c9d8.rlib,libthiserror-530ec779d7380c3f.rlib,librusticata_macros-0b98ff764e5c26c3.rlib,libnom-1d1ec3059ea0aff6.rlib,libmemchr-b6b881c91ed2f84b.rlib,libnum_bigint-dca8b15a1c949870.rlib,librand-2a861c800ee5cf5b.rlib,librand_chacha-943da4419f173414.rlib,libppv_lite86-a9f3c9ee76597f1e.rlib,librand_core-8cc0d8bdae1ba156.rlib,libgetrandom-aa730e50b98218fd.rlib,liblibc-46cbd4892249b89e.rlib,libcfg_if-66d55f6b302e88c8.rlib,libserde-161a8bd2d607393e.rlib,libnum_integer-d2cf829730df7cfd.rlib,libnum_traits-3cb65ae8623d94f1.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/rustcIm1QgG/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/naive_rsa-ad92558f060de57e" "-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-aa730e50b98218fd.rlib(getrandom-aa730e50b98218fd.getrandom.fee3cd4793159606-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.7/src/util_libc.rs:150:(.text._ZN9getrandom9util_libc13open_readonly17hc88e109cb50baf96E+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 `naive-rsa` (bin "naive-rsa") due to 1 previous error; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3ee49b2bc6dbaf57c17f9a6625715dd925d38e73ff3967a92fe65778d599bdc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ee49b2bc6dbaf57c17f9a6625715dd925d38e73ff3967a92fe65778d599bdc2", kill_on_drop: false }` [INFO] [stdout] 3ee49b2bc6dbaf57c17f9a6625715dd925d38e73ff3967a92fe65778d599bdc2