[INFO] cloning repository https://github.com/qezz/rust-ffi-demo [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/qezz/rust-ffi-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqezz%2Frust-ffi-demo"` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqezz%2Frust-ffi-demo'... [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 20254e58d38ec17be2261bc2a721bfede617e454 [INFO] testing qezz/rust-ffi-demo against 1.44.0 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqezz%2Frust-ffi-demo" "/workspace/builds/worker-6/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/qezz/rust-ffi-demo on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/qezz/rust-ffi-demo [INFO] finished tweaking git repo https://github.com/qezz/rust-ffi-demo [INFO] tweaked toml for git repo https://github.com/qezz/rust-ffi-demo written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/qezz/rust-ffi-demo already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 4b33481ff169091027fee3c8e438b5b917538ba8e083c0c9f0662ace518c9d5a [INFO] running `"docker" "start" "-a" "4b33481ff169091027fee3c8e438b5b917538ba8e083c0c9f0662ace518c9d5a"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling libc v0.2.45 [INFO] [stderr] Compiling cc v1.0.28 [INFO] [stderr] Compiling autocfg v0.1.1 [INFO] [stderr] Compiling failure_derive v0.1.3 [INFO] [stderr] Compiling glob v0.2.11 [INFO] [stderr] Compiling rustc-demangle v0.1.11 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling bindgen v0.45.0 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling serde v1.0.82 [INFO] [stderr] Compiling memchr v2.1.2 [INFO] [stderr] Compiling syn v0.15.23 [INFO] [stderr] Compiling textwrap v0.10.0 [INFO] [stderr] Compiling backtrace v0.3.13 [INFO] [stderr] Compiling clang-sys v0.26.3 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling clap v2.32.0 [INFO] [stderr] Compiling backtrace-sys v0.1.28 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling aho-corasick v0.6.9 [INFO] [stderr] Compiling nom v4.1.1 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Compiling cexpr v0.3.3 [INFO] [stderr] Compiling env_logger v0.6.0 [INFO] [stderr] Compiling synstructure v0.10.1 [INFO] [stderr] Compiling serde_derive v1.0.82 [INFO] [stderr] Compiling failure v0.1.3 [INFO] [stderr] Compiling serde_json v1.0.33 [INFO] [stderr] Compiling which v2.0.1 [INFO] [stderr] Compiling rust_ffi v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: constant item is never used: `true_` [INFO] [stderr] --> /opt/rustwide/target/debug/build/rust_ffi-6e7dd4274ce69444/out/c_mx_bindings.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; extern "C" { pub fn transpose ( arg1 : * mut f64 , arg2 : * mut f64 , arg3 : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn multiply ( arg1 : * mut f64 , arg2 : * mut f64 , arg3 : * mut f64 , arg4 : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn isEqual ( arg1 : * mut f64 , arg2 : * mut f64 , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn multiply_l ( arg1 : * mut f64 , arg2 : * mut f64 , arg3 : * mut f64 , arg4 : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn multiply_pf ( arg1 : * mut f64 , arg2 : * mut f64 , arg3 : * mut f64 , arg4 : :: std :: os :: raw :: c_int ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant item is never used: `false_` [INFO] [stderr] --> /opt/rustwide/target/debug/build/rust_ffi-6e7dd4274ce69444/out/c_mx_bindings.rs:3:29 [INFO] [stderr] | [INFO] [stderr] 3 | pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; extern "C" { pub fn transpose ( arg1 : * mut f64 , arg2 : * mut f64 , arg3 : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn multiply ( arg1 : * mut f64 , arg2 : * mut f64 , arg3 : * mut f64 , arg4 : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn isEqual ( arg1 : * mut f64 , arg2 : * mut f64 , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn multiply_l ( arg1 : * mut f64 , arg2 : * mut f64 , arg3 : * mut f64 , arg4 : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn multiply_pf ( arg1 : * mut f64 , arg2 : * mut f64 , arg3 : * mut f64 , arg4 : :: std :: os :: raw :: c_int ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: foreign function is never used: `isEqual` [INFO] [stderr] --> /opt/rustwide/target/debug/build/rust_ffi-6e7dd4274ce69444/out/c_mx_bindings.rs:3:365 [INFO] [stderr] | [INFO] [stderr] 3 | pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; extern "C" { pub fn transpose ( arg1 : * mut f64 , arg2 : * mut f64 , arg3 : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn multiply ( arg1 : * mut f64 , arg2 : * mut f64 , arg3 : * mut f64 , arg4 : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn isEqual ( arg1 : * mut f64 , arg2 : * mut f64 , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn multiply_l ( arg1 : * mut f64 , arg2 : * mut f64 , arg3 : * mut f64 , arg4 : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn multiply_pf ( arg1 : * mut f64 , arg2 : * mut f64 , arg3 : * mut f64 , arg4 : :: std :: os :: raw :: c_int ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 3 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::env` [INFO] [stderr] --> src/main.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::env; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `SubCommand` [INFO] [stderr] --> src/main.rs:6:22 [INFO] [stderr] | [INFO] [stderr] 6 | use clap::{Arg, App, SubCommand}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Error`, `Value`, `json` [INFO] [stderr] --> src/main.rs:7:18 [INFO] [stderr] | [INFO] [stderr] 7 | use serde_json::{Value, Error, json}; [INFO] [stderr] | ^^^^^ ^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde` [INFO] [stderr] --> src/main.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use serde; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `transpose` [INFO] [stderr] --> src/main.rs:12:16 [INFO] [stderr] | [INFO] [stderr] 12 | use rust_ffi::{transpose, multiply}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `new` [INFO] [stderr] --> src/main.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | fn new(s: &[f64]) -> LinearMatrix { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] error: linking with `cc` failed: exit code: 1 [INFO] [stderr] | [INFO] [stderr] = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/opt/rustwide/rustup-home/toolchains/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef.rust_ffi.5ddhhqed-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef.rust_ffi.5ddhhqed-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef.rust_ffi.5ddhhqed-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef.rust_ffi.5ddhhqed-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef.rust_ffi.5ddhhqed-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef.rust_ffi.5ddhhqed-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef.rust_ffi.5ddhhqed-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef.rust_ffi.5ddhhqed-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef.rust_ffi.5ddhhqed-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef.rust_ffi.5ddhhqed-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef.rust_ffi.5ddhhqed-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef.rust_ffi.5ddhhqed-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef.rust_ffi.5ddhhqed-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef.rust_ffi.5ddhhqed-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef.rust_ffi.5ddhhqed-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef.rust_ffi.5ddhhqed-cgu.9.rcgu.o" "-o" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef" "/opt/rustwide/target/debug/deps/rust_ffi-d6e32ff16188e4ef.11vy9q0blfo7rqsj.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/opt/rustwide/target/debug/deps" "-L" "./c" "-L" "/opt/rustwide/rustup-home/toolchains/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/librust_ffi-61da47108c76f931.rlib" "/opt/rustwide/target/debug/deps/libserde_json-dd35c9c894762750.rlib" "/opt/rustwide/target/debug/deps/libryu-67ce7310b0ade578.rlib" "/opt/rustwide/target/debug/deps/libitoa-268fce15131683f2.rlib" "/opt/rustwide/target/debug/deps/libserde-09983fc0853ab014.rlib" "/opt/rustwide/target/debug/deps/libclap-3949538dadc6d5f8.rlib" "/opt/rustwide/target/debug/deps/libvec_map-0a3b3bea3eacf388.rlib" "/opt/rustwide/target/debug/deps/libtextwrap-7fc25e8a7823995c.rlib" "/opt/rustwide/target/debug/deps/libunicode_width-c2f347f060a1ea6c.rlib" "/opt/rustwide/target/debug/deps/libstrsim-a7c158651e83f178.rlib" "/opt/rustwide/target/debug/deps/libbitflags-3b8dce027c498e76.rlib" "/opt/rustwide/target/debug/deps/libatty-c0f2e8713f66061f.rlib" "/opt/rustwide/target/debug/deps/liblibc-d57b4adf69e8e65d.rlib" "/opt/rustwide/target/debug/deps/libansi_term-bf3fbdd21e4a8c77.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-205127404fcba336.rlib" "/opt/rustwide/rustup-home/toolchains/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-a657948fb7763780.rlib" "/opt/rustwide/rustup-home/toolchains/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-4af901391177f653.rlib" "/opt/rustwide/rustup-home/toolchains/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-9bdd51edf637d1e0.rlib" "/opt/rustwide/rustup-home/toolchains/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-df9a9630b2ea2e1e.rlib" "/opt/rustwide/rustup-home/toolchains/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-fddbfe63d5cc9339.rlib" "/opt/rustwide/rustup-home/toolchains/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-dc1fcc6e43806791.rlib" "/opt/rustwide/rustup-home/toolchains/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e2f4bff19e00107e.rlib" "/opt/rustwide/rustup-home/toolchains/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-a152d13c1d7ed405.rlib" "/opt/rustwide/rustup-home/toolchains/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-d92b841792fc008d.rlib" "/opt/rustwide/rustup-home/toolchains/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-a64c249515c023f5.rlib" "/opt/rustwide/rustup-home/toolchains/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-57654524b3e40c00.rlib" "/opt/rustwide/rustup-home/toolchains/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-72180f1527a726a2.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-990cc8f4a91a3ab4.rlib" "-Wl,-Bdynamic" "-lmx" "-lutil" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-ldl" "-lutil" [INFO] [stderr] = note: /usr/bin/ld: cannot find -lmx [INFO] [stderr] collect2: error: ld returned 1 exit status [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error; 6 warnings emitted [INFO] [stderr] [INFO] [stderr] error: could not compile `rust_ffi`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "4b33481ff169091027fee3c8e438b5b917538ba8e083c0c9f0662ace518c9d5a"` [INFO] running `"docker" "rm" "-f" "4b33481ff169091027fee3c8e438b5b917538ba8e083c0c9f0662ace518c9d5a"` [INFO] [stdout] 4b33481ff169091027fee3c8e438b5b917538ba8e083c0c9f0662ace518c9d5a