[INFO] cloning repository https://github.com/Foolish1337/hook_32 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Foolish1337/hook_32" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFoolish1337%2Fhook_32", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFoolish1337%2Fhook_32'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 197270ca0d75c5012db60ef940edbf5f1a752955 [INFO] building Foolish1337/hook_32 against try#23647e694de8d0904848ad068b2e0ec2dd098c37+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFoolish1337%2Fhook_32" "/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/Foolish1337/hook_32 [INFO] finished tweaking git repo https://github.com/Foolish1337/hook_32 [INFO] tweaked toml for git repo https://github.com/Foolish1337/hook_32 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Foolish1337/hook_32 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/Foolish1337/hook_32 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-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 96e83cd931ddae002073f499fbb9cb864ec7d38bafe8831f3de9ca9ddff078f1 [INFO] running `Command { std: "docker" "start" "-a" "96e83cd931ddae002073f499fbb9cb864ec7d38bafe8831f3de9ca9ddff078f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "96e83cd931ddae002073f499fbb9cb864ec7d38bafe8831f3de9ca9ddff078f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96e83cd931ddae002073f499fbb9cb864ec7d38bafe8831f3de9ca9ddff078f1", kill_on_drop: false }` [INFO] [stdout] 96e83cd931ddae002073f499fbb9cb864ec7d38bafe8831f3de9ca9ddff078f1 [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] ba409536e8b3179d09fda82e10256c503c509790dcf28c57ed10d35fbff517d4 [INFO] running `Command { std: "docker" "start" "-a" "ba409536e8b3179d09fda82e10256c503c509790dcf28c57ed10d35fbff517d4", kill_on_drop: false }` [INFO] [stderr] Compiling hook v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `unset_hook` and `toggle_hook` are never used [INFO] [stdout] --> src/hook32.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Cfg { [INFO] [stdout] | ------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn unset_hook(&mut self, hproc: isize) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub fn toggle_hook(&mut self, hproc: isize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/hook_usage.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | if !HOOK_CFG.set_hook(target_proc.handle) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) 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" "__main_void" "-z" "stack-size=1048576" "--stack-first" "--no-demangle" "/lib/rustlib/wasm32-wasip1/lib/self-contained/crt1-command.o" "<3 object files omitted>" "/lib/rustlib/wasm32-wasip1/lib/{libpanic_abort-*,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/hook-1edf46ffd288d994.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/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.0.rcgu.o: undefined symbol: ReadProcessMemory [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.0.rcgu.o: undefined symbol: VirtualProtectEx [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.0.rcgu.o: undefined symbol: ReadProcessMemory [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.0.rcgu.o: undefined symbol: VirtualProtectEx [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.0.rcgu.o: undefined symbol: WriteProcessMemory [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.0.rcgu.o: undefined symbol: VirtualProtectEx [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.0.rcgu.o: undefined symbol: WriteProcessMemory [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.0.rcgu.o: undefined symbol: VirtualProtectEx [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.0.rcgu.o: undefined symbol: VirtualFreeEx [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.0.rcgu.o: undefined symbol: VirtualAllocEx [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.1.rcgu.o: undefined symbol: LoadLibraryW [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.1.rcgu.o: undefined symbol: GetProcAddress [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.1.rcgu.o: undefined symbol: OpenProcess [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.1.rcgu.o: undefined symbol: GetLastError [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.1.rcgu.o: undefined symbol: CreateToolhelp32Snapshot [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.1.rcgu.o: undefined symbol: Process32First [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.1.rcgu.o: undefined symbol: Process32Next [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.1.rcgu.o: undefined symbol: CloseHandle [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/hook-1edf46ffd288d994.hook.73e52e32eee94189-cgu.1.rcgu.o: undefined symbol: CloseHandle [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hook` (bin "hook") due to 1 previous error; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ba409536e8b3179d09fda82e10256c503c509790dcf28c57ed10d35fbff517d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba409536e8b3179d09fda82e10256c503c509790dcf28c57ed10d35fbff517d4", kill_on_drop: false }` [INFO] [stdout] ba409536e8b3179d09fda82e10256c503c509790dcf28c57ed10d35fbff517d4