[INFO] cloning repository https://github.com/chutchinson/k210-examples [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chutchinson/k210-examples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchutchinson%2Fk210-examples", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchutchinson%2Fk210-examples'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4a3b06c3b5b57043ea9a441e333caa5e3c748b28 [INFO] building chutchinson/k210-examples against try#23647e694de8d0904848ad068b2e0ec2dd098c37+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchutchinson%2Fk210-examples" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-7-tc2/source/.cargo/config [INFO] started tweaking git repo https://github.com/chutchinson/k210-examples [INFO] finished tweaking git repo https://github.com/chutchinson/k210-examples [INFO] tweaked toml for git repo https://github.com/chutchinson/k210-examples written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/chutchinson/k210-examples 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/chutchinson/k210-examples 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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 1b77e8fa5d9a6ec11e3e3377fe3011a5cbafe22c99bd5806229036ecbd475fdd [INFO] running `Command { std: "docker" "start" "-a" "1b77e8fa5d9a6ec11e3e3377fe3011a5cbafe22c99bd5806229036ecbd475fdd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b77e8fa5d9a6ec11e3e3377fe3011a5cbafe22c99bd5806229036ecbd475fdd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b77e8fa5d9a6ec11e3e3377fe3011a5cbafe22c99bd5806229036ecbd475fdd", kill_on_drop: false }` [INFO] [stdout] 1b77e8fa5d9a6ec11e3e3377fe3011a5cbafe22c99bd5806229036ecbd475fdd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 14995c4faf6ca89e29c145446a94cec1ba743e13aa15cfcdbee42f81ce3630dd [INFO] running `Command { std: "docker" "start" "-a" "14995c4faf6ca89e29c145446a94cec1ba743e13aa15cfcdbee42f81ce3630dd", kill_on_drop: false }` [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] running `Command { std: "docker" "inspect" "14995c4faf6ca89e29c145446a94cec1ba743e13aa15cfcdbee42f81ce3630dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14995c4faf6ca89e29c145446a94cec1ba743e13aa15cfcdbee42f81ce3630dd", kill_on_drop: false }` [INFO] [stdout] 14995c4faf6ca89e29c145446a94cec1ba743e13aa15cfcdbee42f81ce3630dd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "test" "--frozen" "--no-run" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 9b6cd98c7e4c22bab89587e963ec01fa3980e86b5cb8b31ec318524db8f5b419 [INFO] running `Command { std: "docker" "start" "-a" "9b6cd98c7e4c22bab89587e963ec01fa3980e86b5cb8b31ec318524db8f5b419", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling regex-syntax v0.6.18 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.38 [INFO] [stderr] Compiling riscv v0.5.4 [INFO] [stderr] Compiling bit_field v0.10.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.8 [INFO] [stderr] Compiling k210-pac v0.2.0 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling nb v1.0.0 [INFO] [stderr] Compiling bit_field v0.9.0 [INFO] [stderr] Compiling vcell v0.1.2 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling bare-metal v0.2.5 [INFO] [stderr] Compiling k210-pac v0.2.0 (https://github.com/riscv-rust/k210-pac#53a317fc) [INFO] [stderr] Compiling r0 v1.0.0 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling nb v0.1.3 [INFO] [stderr] Compiling k210-example v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling panic-halt v0.2.0 [INFO] [stderr] Compiling embedded-hal v1.0.0-alpha.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling aho-corasick v0.7.13 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling riscv-target v0.1.2 [INFO] [stderr] Compiling riscv v0.6.0 [INFO] [stderr] Compiling riscv-rt v0.8.0 (https://github.com/rust-embedded/riscv-rt#47ece5f5) [INFO] [stderr] Compiling riscv v0.6.0 (https://github.com/rust-embedded/riscv#39ff09ee) [INFO] [stderr] Compiling k210-hal v0.2.0 (https://github.com/riscv-rust/k210-hal#5471dbb8) [INFO] [stderr] Compiling riscv-rt-macros v0.1.6 (https://github.com/rust-embedded/riscv-rt#47ece5f5) [INFO] [stdout] warning: unused imports: `fpioa`, `pac`, and `prelude::*` [INFO] [stdout] --> examples/blink.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use k210_hal::{prelude::*, fpioa, pac}; [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: `Gpio` [INFO] [stdout] --> examples/blink.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use k210_hal::gpio::{Gpio}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sleep` is never used [INFO] [stdout] --> examples/blink.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn sleep(duration: u64) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [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" "DEVICE_PERIPHERALS" "-z" "stack-size=1048576" "--stack-first" "--no-demangle" "/lib/rustlib/wasm32-wasip1/lib/self-contained/crt1-command.o" "<1 object files omitted>" "/opt/rustwide/target/wasm32-wasip1/debug/deps/{libriscv-821ede99d45b71d7,libbit_field-09fc6de414957252,libpanic_halt-61ee96f2a3d9bb25,libk210_hal-ffe324fef7a1a90f,libbitflags-05377f64c37263ee,libembedded_hal-1086357b507273c8,libnb-6891f6c6ee1e4cdd,libnb-f0e78076aa3eab16,libk210_pac-6e5e7029c521f1ca,libvcell-592c633ffb1e1206,libriscv-d8964b66bc784868,libbit_field-a64966086549fb4d,libbare_metal-08c4adcbc52e6920}.rlib" "/lib/rustlib/wasm32-wasip1/lib/{libcore-*,libcompiler_builtins-*}.rlib" "-L" "/opt/rustwide/target/wasm32-wasip1/debug/build/k210-example-7b03e578bd0e605b/out" "-L" "/opt/rustwide/target/wasm32-wasip1/debug/build/k210-pac-6ef399ba649a491a/out" "-L" "/opt/rustwide/target/wasm32-wasip1/debug/build/k210-pac-a8250b1b4c12898a/out" "-L" "/opt/rustwide/target/wasm32-wasip1/debug/build/riscv-rt-4799b054d253b809/out" "-L" "/lib/rustlib/wasm32-wasip1/lib/self-contained" "-o" "/opt/rustwide/target/wasm32-wasip1/debug/examples/blink-a6387c25e3a013c7.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/rustup-home/toolchains/23647e694de8d0904848ad068b2e0ec2dd098c37/lib/rustlib/wasm32-wasip1/lib/self-contained/crt1-command.o: undefined symbol: __wasi_init_tp [INFO] [stdout] rust-lld: error: /opt/rustwide/rustup-home/toolchains/23647e694de8d0904848ad068b2e0ec2dd098c37/lib/rustlib/wasm32-wasip1/lib/self-contained/crt1-command.o: undefined symbol: __main_void [INFO] [stdout] rust-lld: error: /opt/rustwide/rustup-home/toolchains/23647e694de8d0904848ad068b2e0ec2dd098c37/lib/rustlib/wasm32-wasip1/lib/self-contained/crt1-command.o: undefined symbol: __wasm_call_dtors [INFO] [stdout] rust-lld: error: /opt/rustwide/rustup-home/toolchains/23647e694de8d0904848ad068b2e0ec2dd098c37/lib/rustlib/wasm32-wasip1/lib/self-contained/crt1-command.o: undefined symbol: __wasi_proc_exit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `k210-example` (example "blink") due to 1 previous error; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9b6cd98c7e4c22bab89587e963ec01fa3980e86b5cb8b31ec318524db8f5b419", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b6cd98c7e4c22bab89587e963ec01fa3980e86b5cb8b31ec318524db8f5b419", kill_on_drop: false }` [INFO] [stdout] 9b6cd98c7e4c22bab89587e963ec01fa3980e86b5cb8b31ec318524db8f5b419