[INFO] cloning repository https://github.com/Xand6r/groth16-verifier [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Xand6r/groth16-verifier" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXand6r%2Fgroth16-verifier", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXand6r%2Fgroth16-verifier'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1d8b35130885b2ca4c15c074ab0810a3dc884bda [INFO] building Xand6r/groth16-verifier against try#23647e694de8d0904848ad068b2e0ec2dd098c37+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXand6r%2Fgroth16-verifier" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Xand6r/groth16-verifier [INFO] finished tweaking git repo https://github.com/Xand6r/groth16-verifier [INFO] tweaked toml for git repo https://github.com/Xand6r/groth16-verifier written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Xand6r/groth16-verifier on toolchain 23647e694de8d0904848ad068b2e0ec2dd098c37 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Xand6r/groth16-verifier 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" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 32ef74a0fa2235bc011f3a17ee5460f8acf1ccd2220ea55bf1b28ef4b11548a7 [INFO] running `Command { std: "docker" "start" "-a" "32ef74a0fa2235bc011f3a17ee5460f8acf1ccd2220ea55bf1b28ef4b11548a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "32ef74a0fa2235bc011f3a17ee5460f8acf1ccd2220ea55bf1b28ef4b11548a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32ef74a0fa2235bc011f3a17ee5460f8acf1ccd2220ea55bf1b28ef4b11548a7", kill_on_drop: false }` [INFO] [stdout] 32ef74a0fa2235bc011f3a17ee5460f8acf1ccd2220ea55bf1b28ef4b11548a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 2833f29128a39c51cc48e8656623a45f7798836dc5a7a8489469697915045ec3 [INFO] running `Command { std: "docker" "start" "-a" "2833f29128a39c51cc48e8656623a45f7798836dc5a7a8489469697915045ec3", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.67 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling radium v0.6.2 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling funty v1.1.0 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling generic-array v0.12.4 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling schemars v0.8.21 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling bitvec v0.20.4 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling dyn-clone v1.0.17 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling build_const v0.2.2 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling memory_units v0.4.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling crc16 v0.4.0 [INFO] [stderr] Compiling crc v1.8.1 [INFO] [stderr] Compiling near-sys v0.2.1 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling bs58 v0.4.0 [INFO] [stderr] Compiling rlp v0.5.2 [INFO] [stderr] Compiling sha1_smol v1.0.0 [INFO] [stderr] Compiling fixed-hash v0.7.0 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling impl-rlp v0.3.0 [INFO] [stderr] Compiling md4 v0.8.0 [INFO] [stderr] Compiling sha1 v0.6.1 [INFO] [stderr] Compiling md2 v0.8.0 [INFO] [stderr] Compiling sha3 v0.8.2 [INFO] [stderr] Compiling md5 v0.7.0 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling crc8 v0.1.1 [INFO] [stderr] Compiling easy-hasher v2.2.1 [INFO] [stderr] Compiling serde_derive_internals v0.29.1 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling schemars_derive v0.8.21 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling borsh-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Compiling parity-scale-codec-derive v2.3.1 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.2 [INFO] [stderr] Compiling borsh-derive v0.9.3 [INFO] [stderr] Compiling near-sdk-macros v4.1.1 [INFO] [stderr] Compiling borsh v0.9.3 [INFO] [stderr] Compiling parity-scale-codec v2.3.1 [INFO] [stderr] Compiling impl-serde v0.3.2 [INFO] [stderr] Compiling ethbloom v0.11.1 [INFO] [stderr] Compiling impl-codec v0.5.1 [INFO] [stderr] Compiling primitive-types v0.9.1 [INFO] [stderr] Compiling ethereum-types v0.11.0 [INFO] [stderr] Compiling near-abi v0.3.0 [INFO] [stderr] Compiling ethabi v14.1.0 [INFO] [stderr] Compiling near-sdk v4.1.1 [INFO] [stderr] Compiling eth-encode-packed v0.1.0 [INFO] [stderr] Compiling near-bigint v1.0.1 [INFO] [stderr] Compiling near_groth16_verifier v1.0.1 [INFO] [stderr] Compiling groth_verifier v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ethereum_types::U256` [INFO] [stdout] --> src/main.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | use eth_encode_packed::ethabi::{encode, ethereum_types::U256, Token}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `G1Point`, `G2Point`, and `Verifier` [INFO] [stdout] --> src/main.rs:5:35 [INFO] [stdout] | [INFO] [stdout] 5 | use near_groth16_verifier::{self, G1Point, G2Point, Verifier}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `verifier::get_verifier` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use verifier::get_verifier; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Address` [INFO] [stdout] --> src/risczero.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | ethabi::{ethereum_types::U256, Address}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CONTROL_ROOT` [INFO] [stdout] --> src/utils.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::constants::{CONTROL_ROOT, ZERO_BYTES_STRING}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex::encode` [INFO] [stdout] --> src/near.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use hex::encode; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `verified` [INFO] [stdout] --> src/near.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let verified = verifier.verify(pub_signals, proof); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_verified` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `CONTROL_ROOT_0` should have a snake case name [INFO] [stdout] --> src/near.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 41 | let (CONTROL_ROOT_0, CONTROL_ROOT_1) = split_digest(hex::decode(CONTROL_ROOT).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `control_root_0` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `CONTROL_ROOT_1` should have a snake case name [INFO] [stdout] --> src/near.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | let (CONTROL_ROOT_0, CONTROL_ROOT_1) = split_digest(hex::decode(CONTROL_ROOT).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `control_root_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `CONTROL_ROOT_0` should have a snake case name [INFO] [stdout] --> src/near.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let CONTROL_ROOT_0 = u128::from_str_radix(&hex::encode(CONTROL_ROOT_0), radix).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `control_root_0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `CONTROL_ROOT_1` should have a snake case name [INFO] [stdout] --> src/near.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let CONTROL_ROOT_1 = u128::from_str_radix(&hex::encode(CONTROL_ROOT_1), radix).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `control_root_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BN254_CONTROL_ID` should have a snake case name [INFO] [stdout] --> src/near.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let BN254_CONTROL_ID = U256::from_str_radix(constants::BN254_CONTROL_ID, radix).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bn254_control_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `rust-lld` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "rust-lld" "-flavor" "wasm" "--export" "__main_void" "-z" "stack-size=1048576" "--stack-first" "--no-demangle" "/lib/rustlib/wasm32-wasip1/lib/self-contained/crt1-command.o" "<2 object files omitted>" "/opt/rustwide/target/wasm32-wasip1/debug/deps/{libnear_groth16_verifier-33dc5196efd59493,libnear_bigint-c0a4bb750e4b8825}.rlib" "/lib/rustlib/wasm32-wasip1/lib/libpanic_abort-*.rlib" "/opt/rustwide/target/wasm32-wasip1/debug/deps/{libnear_sdk-273a6c035fb7fbbd,libwee_alloc-5885fc6494f36ffb,libmemory_units-93578f67784e9426,libcfg_if-c52cb2c48f08318d,libbase64-de1e4dcf0aa853ba,libbs58-d328228bb53bbec7,libnear_abi-a6548617bf19e696,libsemver-b753c59fe4fb306b,libschemars-429de8a977dc3c40,libdyn_clone-76c18f1bcc3ba005,libnear_sys-34269751f0a98f97,libonce_cell-847ca6422e74ab52,libborsh-395e5f6a171572e1,libeth_encode_packed-f4a64b770bbc7734,libethabi-21b87d9fa4fb2cc9,libethereum_types-de0a188bdfdab5e8,libethbloom-a61086fbcde9284b,libtiny_keccak-c2d57cd113a039d9,libprimitive_types-10ef8e760ecf7e5c,libimpl_codec-722618893ad15486,libparity_scale_codec-0e5b2272ae194c85,libbyte_slice_cast-560d69db2c6cd0ef,libarrayvec-c7e7234329ec1356,libimpl_serde-03c3bab4d9a07971,libimpl_rlp-7afa8ec06322a91e,librlp-c88356261b711610,libbytes-cd624a2623a7d544,libfixed_hash-3b18f77089c8a483,librand-2d6c5075df83e46f,librand_chacha-84b188f90dcf2baa,libppv_lite86-486e4425e6fd09e6,librand_core-614393d9fd58ca1a,libgetrandom-9c1205168be1b4c9,libwasi-b9c6bfbff0bef49f,libcfg_if-50b02a9e3502ecf2,librustc_hex-749262e3035c42d0,libserde_json-7cf73a830e6f3f76,libitoa-323c19d08fbe6984,libryu-f1913757cc38f137,libsha3-f235afe9e89bb1cd,libopaque_debug-bb20c77cda040623,libblock_buffer-c774b779c0b897ea,libblock_padding-aaea6da2dbf5c6ce,libdigest-237fe47931233855,libgeneric_array-1756f3c399fad245,libuint-e08a1c65b30fdfb6,libcrunchy-596276a30287dd51,libstatic_assertions-5a320074c6765347,libhex-85aa986ef279af61,libthiserror-e12c7861aa4c3469,libanyhow-b18d3e0417b79d1a,libserde-64caa44d5758cefa,libeasy_hasher-f1abfe0fc662b08b,libsha2-b620c39bd273be09,libmd5-318488e0abcbaea1,libcrc-4865c8585881e6cd,libcrc16-a1ade6d99175940a,libcrc8-30a8892596a3c7e8,libmd4-9ea72354de9bae5b,libfake_simd-ca4b4de3dd52aa09,libmd2-b8033070b54306e2,libsha1-b9490d1384eac531,libsha1_smol-953ade051d2a3c8a,libsha3-5518de31f3129ebb,libdigest-76eccaf69ea22f7a,libopaque_debug-c49481a206caa42f,libblock_buffer-865a410ea45a939e,libgeneric_array-f9c8ef2449126efc,libtypenum-0fe8d28fad3fc2b1,libblock_padding-91dfda1310f3089d,libbyte_tools-2d99e388891527ef,libbyteorder-2a7ee6990857c1b0,libkeccak-d16fc1372db56d4c}.rlib" "/lib/rustlib/wasm32-wasip1/lib/{libstd-*,libwasi-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*}.rlib" "-l" "c" "/lib/rustlib/wasm32-wasip1/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/lib/rustlib/wasm32-wasip1/lib/self-contained" "-o" "/opt/rustwide/target/wasm32-wasip1/debug/deps/groth_verifier-8e387a5b16528bd8.wasm" "--gc-sections" "-O0" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libnear_groth16_verifier-33dc5196efd59493.rlib(near_groth16_verifier-33dc5196efd59493.near_groth16_verifier.4fd663aa187842f2-cgu.0.rcgu.o): undefined symbol: alt_bn128_g1_sum [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libnear_groth16_verifier-33dc5196efd59493.rlib(near_groth16_verifier-33dc5196efd59493.near_groth16_verifier.4fd663aa187842f2-cgu.0.rcgu.o): undefined symbol: alt_bn128_g1_multiexp [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libnear_groth16_verifier-33dc5196efd59493.rlib(near_groth16_verifier-33dc5196efd59493.near_groth16_verifier.4fd663aa187842f2-cgu.0.rcgu.o): undefined symbol: read_register [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libnear_groth16_verifier-33dc5196efd59493.rlib(near_groth16_verifier-33dc5196efd59493.near_groth16_verifier.4fd663aa187842f2-cgu.0.rcgu.o): undefined symbol: alt_bn128_pairing_check [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `groth_verifier` (bin "groth_verifier") due to 1 previous error; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "2833f29128a39c51cc48e8656623a45f7798836dc5a7a8489469697915045ec3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2833f29128a39c51cc48e8656623a45f7798836dc5a7a8489469697915045ec3", kill_on_drop: false }` [INFO] [stdout] 2833f29128a39c51cc48e8656623a45f7798836dc5a7a8489469697915045ec3