[INFO] cloning repository https://github.com/xianminx/wrap-ffi-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xianminx/wrap-ffi-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxianminx%2Fwrap-ffi-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxianminx%2Fwrap-ffi-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d95a520ed78cce26dc071a610ceb92e70e095f9f [INFO] building xianminx/wrap-ffi-rust against try#23647e694de8d0904848ad068b2e0ec2dd098c37+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxianminx%2Fwrap-ffi-rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/xianminx/wrap-ffi-rust [INFO] finished tweaking git repo https://github.com/xianminx/wrap-ffi-rust [INFO] tweaked toml for git repo https://github.com/xianminx/wrap-ffi-rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/xianminx/wrap-ffi-rust 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/xianminx/wrap-ffi-rust 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] [stderr] warning: unused manifest key: toolchain [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] 8a7a7a2c2542027066b5a2c0e7204ace27defc1a74482bf3dc6aa3a4c7770c44 [INFO] running `Command { std: "docker" "start" "-a" "8a7a7a2c2542027066b5a2c0e7204ace27defc1a74482bf3dc6aa3a4c7770c44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8a7a7a2c2542027066b5a2c0e7204ace27defc1a74482bf3dc6aa3a4c7770c44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a7a7a2c2542027066b5a2c0e7204ace27defc1a74482bf3dc6aa3a4c7770c44", kill_on_drop: false }` [INFO] [stdout] 8a7a7a2c2542027066b5a2c0e7204ace27defc1a74482bf3dc6aa3a4c7770c44 [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] e1ec1ee0d5b26bc75b1052dc401f2c7ef5a5c54935881b1f1e461fa3cae3d68a [INFO] running `Command { std: "docker" "start" "-a" "e1ec1ee0d5b26bc75b1052dc401f2c7ef5a5c54935881b1f1e461fa3cae3d68a", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: toolchain [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling wrap-ffi-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `ptr_internals` is internal to the compiler or standard library [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(ptr_internals)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] = note: `#[warn(internal_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `foo` should have an upper camel case name [INFO] [stdout] --> src/ffi.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type foo = *mut c_void; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Foo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/foo.rs:26:36 [INFO] [stdout] | [INFO] [stdout] 26 | let mut foo: ffi::foo = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*mut c_void` does not permit being left uninitialized [INFO] [stdout] --> src/foo.rs:26:31 [INFO] [stdout] | [INFO] [stdout] 26 | let mut foo: ffi::foo = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` 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" "<2 object files omitted>" "-l" "foo" "/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" "/opt/rustwide/target/wasm32-wasip1/debug/build/wrap-ffi-rust-459759813bfd4b21/out" "-L" "/lib/rustlib/wasm32-wasip1/lib/self-contained" "-o" "/opt/rustwide/target/wasm32-wasip1/debug/deps/wrap_ffi_rust-63dded0a1ea8926e.wasm" "--gc-sections" "-O0" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: warning: /opt/rustwide/target/wasm32-wasip1/debug/build/wrap-ffi-rust-459759813bfd4b21/out/libfoo.a: archive member 'foo.o' is neither Wasm object file nor LLVM bitcode [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/wrap_ffi_rust-63dded0a1ea8926e.wrap_ffi_rust.fb735347d23cd5cf-cgu.0.rcgu.o: undefined symbol: foo_destroy [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/wrap_ffi_rust-63dded0a1ea8926e.wrap_ffi_rust.fb735347d23cd5cf-cgu.0.rcgu.o: undefined symbol: foo_create [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/wrap_ffi_rust-63dded0a1ea8926e.wrap_ffi_rust.fb735347d23cd5cf-cgu.0.rcgu.o: undefined symbol: set_a [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/wrap_ffi_rust-63dded0a1ea8926e.wrap_ffi_rust.fb735347d23cd5cf-cgu.0.rcgu.o: undefined symbol: get_a [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `wrap-ffi-rust` (bin "wrap-ffi-rust") due to 1 previous error; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e1ec1ee0d5b26bc75b1052dc401f2c7ef5a5c54935881b1f1e461fa3cae3d68a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1ec1ee0d5b26bc75b1052dc401f2c7ef5a5c54935881b1f1e461fa3cae3d68a", kill_on_drop: false }` [INFO] [stdout] e1ec1ee0d5b26bc75b1052dc401f2c7ef5a5c54935881b1f1e461fa3cae3d68a