[INFO] updating cached repository https://github.com/qezz/rust-ffi-demo [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 20254e58d38ec17be2261bc2a721bfede617e454 [INFO] testing qezz/rust-ffi-demo against master#28742a1146f10a4f09369baad027a464acb7a766 for pr-71274 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqezz%2Frust-ffi-demo" "/workspace/builds/worker-0/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/qezz/rust-ffi-demo on toolchain 28742a1146f10a4f09369baad027a464acb7a766 [INFO] running `"/workspace/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "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-0/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" "+28742a1146f10a4f09369baad027a464acb7a766" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=forbid" "-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" "+28742a1146f10a4f09369baad027a464acb7a766" "build" "--frozen"` [INFO] [stdout] 2769d9ac8f74fabbc8e17eac5cb2cb4c42c42eb9575d876bc5ba4b7660067145 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "2769d9ac8f74fabbc8e17eac5cb2cb4c42c42eb9575d876bc5ba4b7660067145"` [INFO] [stderr] Compiling libc v0.2.45 [INFO] [stderr] Compiling cfg-if v0.1.6 [INFO] [stderr] Compiling proc-macro2 v0.4.24 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling autocfg v0.1.1 [INFO] [stderr] Compiling failure_derive v0.1.3 [INFO] [stderr] Compiling rustc-demangle v0.1.11 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling bindgen v0.45.0 [INFO] [stderr] Compiling serde v1.0.82 [INFO] [stderr] Compiling itoa v0.4.3 [INFO] [stderr] Compiling memchr v2.1.2 [INFO] [stderr] Compiling clang-sys v0.26.3 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling regex-syntax v0.6.4 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Compiling textwrap v0.10.0 [INFO] [stderr] Compiling humantime v1.2.0 [INFO] [stderr] Compiling backtrace v0.3.13 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Compiling syn v0.15.23 [INFO] [stderr] Compiling backtrace-sys v0.1.28 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling clap v2.32.0 [INFO] [stderr] Compiling aho-corasick v0.6.9 [INFO] [stderr] Compiling nom v4.1.1 [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 serde_json v1.0.33 [INFO] [stderr] Compiling failure v0.1.3 [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-6b41b12123b88085/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-6b41b12123b88085/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-6b41b12123b88085/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/28742a1146f10a4f09369baad027a464acb7a766/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd.rust_ffi.353ve20p-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd.rust_ffi.353ve20p-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd.rust_ffi.353ve20p-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd.rust_ffi.353ve20p-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd.rust_ffi.353ve20p-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd.rust_ffi.353ve20p-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd.rust_ffi.353ve20p-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd.rust_ffi.353ve20p-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd.rust_ffi.353ve20p-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd.rust_ffi.353ve20p-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd.rust_ffi.353ve20p-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd.rust_ffi.353ve20p-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd.rust_ffi.353ve20p-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd.rust_ffi.353ve20p-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd.rust_ffi.353ve20p-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd.rust_ffi.353ve20p-cgu.9.rcgu.o" "-o" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd" "/opt/rustwide/target/debug/deps/rust_ffi-03917c50e864adfd.4r54s0lun07jog4h.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/28742a1146f10a4f09369baad027a464acb7a766/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/librust_ffi-c79c2a5094c09ea5.rlib" "/opt/rustwide/target/debug/deps/libserde_json-72bd128b41edaafc.rlib" "/opt/rustwide/target/debug/deps/libryu-bde80f248a257dac.rlib" "/opt/rustwide/target/debug/deps/libitoa-6c514d0363297749.rlib" "/opt/rustwide/target/debug/deps/libserde-5820304cd23a72b0.rlib" "/opt/rustwide/target/debug/deps/libclap-e08a13b561c3dac4.rlib" "/opt/rustwide/target/debug/deps/libvec_map-0124ff4ac8afcced.rlib" "/opt/rustwide/target/debug/deps/libtextwrap-56911033cc87368c.rlib" "/opt/rustwide/target/debug/deps/libunicode_width-f78fbbd60dd7eb4c.rlib" "/opt/rustwide/target/debug/deps/libstrsim-57259db7c4c93446.rlib" "/opt/rustwide/target/debug/deps/libbitflags-f26c1cc2a800726e.rlib" "/opt/rustwide/target/debug/deps/libatty-acc56bb886c58797.rlib" "/opt/rustwide/target/debug/deps/liblibc-3d343aed724ad0da.rlib" "/opt/rustwide/target/debug/deps/libansi_term-0d3bacace01cab89.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/28742a1146f10a4f09369baad027a464acb7a766/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-1dac1a412c98f50d.rlib" "/opt/rustwide/rustup-home/toolchains/28742a1146f10a4f09369baad027a464acb7a766/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-b7841fd014bf83a1.rlib" "/opt/rustwide/rustup-home/toolchains/28742a1146f10a4f09369baad027a464acb7a766/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-338c0763450dca22.rlib" "/opt/rustwide/rustup-home/toolchains/28742a1146f10a4f09369baad027a464acb7a766/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-5f2e5d11836e0967.rlib" "/opt/rustwide/rustup-home/toolchains/28742a1146f10a4f09369baad027a464acb7a766/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-81a9070bd3553adf.rlib" "/opt/rustwide/rustup-home/toolchains/28742a1146f10a4f09369baad027a464acb7a766/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-e297830377b95af4.rlib" "/opt/rustwide/rustup-home/toolchains/28742a1146f10a4f09369baad027a464acb7a766/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-b38b87f2dd197fa0.rlib" "/opt/rustwide/rustup-home/toolchains/28742a1146f10a4f09369baad027a464acb7a766/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-601015f2e15e7e26.rlib" "/opt/rustwide/rustup-home/toolchains/28742a1146f10a4f09369baad027a464acb7a766/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-439f3a589bd88586.rlib" "/opt/rustwide/rustup-home/toolchains/28742a1146f10a4f09369baad027a464acb7a766/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-57ab7e6ac23ce11f.rlib" "/opt/rustwide/rustup-home/toolchains/28742a1146f10a4f09369baad027a464acb7a766/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-3aec7f88778e912a.rlib" "/opt/rustwide/rustup-home/toolchains/28742a1146f10a4f09369baad027a464acb7a766/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-b6806800b307d4b9.rlib" "/opt/rustwide/rustup-home/toolchains/28742a1146f10a4f09369baad027a464acb7a766/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e49d7651b12f7563.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/28742a1146f10a4f09369baad027a464acb7a766/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-e8266574e26adcc3.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" "2769d9ac8f74fabbc8e17eac5cb2cb4c42c42eb9575d876bc5ba4b7660067145"` [INFO] running `"docker" "rm" "-f" "2769d9ac8f74fabbc8e17eac5cb2cb4c42c42eb9575d876bc5ba4b7660067145"` [INFO] [stdout] 2769d9ac8f74fabbc8e17eac5cb2cb4c42c42eb9575d876bc5ba4b7660067145