[INFO] cloning repository https://github.com/realSuffix/NeuralNet [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/realSuffix/NeuralNet" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FrealSuffix%2FNeuralNet", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FrealSuffix%2FNeuralNet'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d819b55e60952d85c4b6fa3f0ed90562d1ed876c [INFO] building realSuffix/NeuralNet against try#23647e694de8d0904848ad068b2e0ec2dd098c37+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FrealSuffix%2FNeuralNet" "/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/realSuffix/NeuralNet [INFO] finished tweaking git repo https://github.com/realSuffix/NeuralNet [INFO] tweaked toml for git repo https://github.com/realSuffix/NeuralNet written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/realSuffix/NeuralNet 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/realSuffix/NeuralNet 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-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cf2cedb7732ee0ec8e56b06a1ed6e32154d4bbafead68a4695b3beb7b8c1d4df [INFO] running `Command { std: "docker" "start" "-a" "cf2cedb7732ee0ec8e56b06a1ed6e32154d4bbafead68a4695b3beb7b8c1d4df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cf2cedb7732ee0ec8e56b06a1ed6e32154d4bbafead68a4695b3beb7b8c1d4df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf2cedb7732ee0ec8e56b06a1ed6e32154d4bbafead68a4695b3beb7b8c1d4df", kill_on_drop: false }` [INFO] [stdout] cf2cedb7732ee0ec8e56b06a1ed6e32154d4bbafead68a4695b3beb7b8c1d4df [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 96ce3a60f37f686bb5bb4114f9ace24d3f5584ce9a14c4888641702b8f91ac7e [INFO] running `Command { std: "docker" "start" "-a" "96ce3a60f37f686bb5bb4114f9ace24d3f5584ce9a14c4888641702b8f91ac7e", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.4 [INFO] [stderr] Compiling memoffset v0.6.3 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling half v1.7.1 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.4 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num v0.2.1 [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Compiling arrayfire v3.8.0 [INFO] [stderr] Compiling neural-net v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `print` and `sigmoid` [INFO] [stdout] --> src/gpu_neural_net.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use arrayfire::{matmul, print, sigmoid, Array}; [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 import: `crate::Matrix` [INFO] [stdout] --> src/gpu_neural_net.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::Matrix; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/main.rs:24:33 [INFO] [stdout] | [INFO] [stdout] 24 | let sigmoid = |input: &f64| (1.0 / (1.0 + E.powf(*input * -1.0))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - let sigmoid = |input: &f64| (1.0 / (1.0 + E.powf(*input * -1.0))); [INFO] [stdout] 24 + let sigmoid = |input: &f64| 1.0 / (1.0 + E.powf(*input * -1.0)) ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/matrix.rs:26:31 [INFO] [stdout] | [INFO] [stdout] 26 | let inner = IntoIter::new(inner).map(IntoIter::new).flatten().collect(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/matrix.rs:26:56 [INFO] [stdout] | [INFO] [stdout] 26 | let inner = IntoIter::new(inner).map(IntoIter::new).flatten().collect(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `backward_propagation` is never used [INFO] [stdout] --> src/gpu_neural_net.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl GpuNeuralNet { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn backward_propagation(&self, actual_result: &Array, expected_result: &Array) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `calculate_indices_single` is never used [INFO] [stdout] --> src/matrix.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Matrix { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 73 | fn calculate_indices_single( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `backward_propagation` is never used [INFO] [stdout] --> src/neural_net.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl NeuralNet { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn backward_propagation(&self, actual_result: &Matrix, expected_result: &Matrix) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `neural-net` (bin "neural-net") due to 1 previous error; 8 warnings emitted [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" "<5 object files omitted>" "/lib/rustlib/wasm32-wasip1/lib/libpanic_abort-*.rlib" "/opt/rustwide/target/wasm32-wasip1/debug/deps/{librayon-0741e790aa877598,librayon_core-f1f797c176f4c230,libnum_cpus-690303e81b288308,libcrossbeam_deque-9c05fbb45e91d936,libcrossbeam_epoch-86b1527dafeafa9b,libmemoffset-5adbfebf8244c340,libscopeguard-969e7c3c4435a7ba,libcrossbeam_channel-94666da497406907,libcrossbeam_utils-a847fb3e9aa802c1,libcfg_if-50b02a9e3502ecf2,libeither-dc6839dd41631a68,libarrayfire-c796f0516839d22f,libhalf-06b00052a74f7b31,liblibc-569ec0831f4d38d7,libnum-1403dacb7427defa,libnum_rational-ec6706cb268ba523,libnum_iter-97c50cba3a221e83,libnum_complex-ffefe0fcc6603066,libnum_bigint-aa12537e6348cb86,libnum_integer-9e95c404138b958f,libnum_traits-d66ec26a95b0487f,liblazy_static-36da267ce9339a94}.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" "/opt/arrayfire/lib" "-L" "/opt/arrayfire/lib64" "-L" "/usr/local/lib" "-L" "/usr/lib" "-L" "/lib/rustlib/wasm32-wasip1/lib/self-contained" "-o" "/opt/rustwide/target/wasm32-wasip1/debug/deps/neural_net-4087665d22d060f8.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/neural_net-4087665d22d060f8.neural_net.a21fd7ad9c6f41ef-cgu.0.rcgu.o: undefined symbol: af_matmul [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/neural_net-4087665d22d060f8.neural_net.a21fd7ad9c6f41ef-cgu.0.rcgu.o: undefined symbol: af_sigmoid [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/neural_net-4087665d22d060f8.neural_net.a21fd7ad9c6f41ef-cgu.0.rcgu.o: undefined symbol: af_print_array_gen [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/neural_net-4087665d22d060f8.neural_net.a21fd7ad9c6f41ef-cgu.0.rcgu.o: undefined symbol: af_create_array [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/neural_net-4087665d22d060f8.neural_net.a21fd7ad9c6f41ef-cgu.0.rcgu.o: undefined symbol: af_release_array [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libarrayfire-c796f0516839d22f.rlib(arrayfire-c796f0516839d22f.arrayfire.f5548d52a5ae49a6-cgu.0.rcgu.o): undefined symbol: af_free_host [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libarrayfire-c796f0516839d22f.rlib(arrayfire-c796f0516839d22f.arrayfire.f5548d52a5ae49a6-cgu.0.rcgu.o): undefined symbol: af_get_last_error [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libarrayfire-c796f0516839d22f.rlib(arrayfire-c796f0516839d22f.arrayfire.f5548d52a5ae49a6-cgu.0.rcgu.o): undefined symbol: af_set_device [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "96ce3a60f37f686bb5bb4114f9ace24d3f5584ce9a14c4888641702b8f91ac7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96ce3a60f37f686bb5bb4114f9ace24d3f5584ce9a14c4888641702b8f91ac7e", kill_on_drop: false }` [INFO] [stdout] 96ce3a60f37f686bb5bb4114f9ace24d3f5584ce9a14c4888641702b8f91ac7e