[INFO] cloning repository https://github.com/qezz/rust-ffi-demo [INFO] running `Command { std: "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", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqezz%2Frust-ffi-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 20254e58d38ec17be2261bc2a721bfede617e454 [INFO] testing qezz/rust-ffi-demo against master#5d5ff84130da0d74c6ece368dbe821d8f83fa526 for pr-79296 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqezz%2Frust-ffi-demo" "/workspace/builds/worker-6/source", kill_on_drop: false }` [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 5d5ff84130da0d74c6ece368dbe821d8f83fa526 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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 `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "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" "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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 944760f32ccb23e25cafdb1ff1ef5662ed3f8d0d4f6a596513b1e75eed90c3ea [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "944760f32ccb23e25cafdb1ff1ef5662ed3f8d0d4f6a596513b1e75eed90c3ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "944760f32ccb23e25cafdb1ff1ef5662ed3f8d0d4f6a596513b1e75eed90c3ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "944760f32ccb23e25cafdb1ff1ef5662ed3f8d0d4f6a596513b1e75eed90c3ea", kill_on_drop: false }` [INFO] [stdout] 944760f32ccb23e25cafdb1ff1ef5662ed3f8d0d4f6a596513b1e75eed90c3ea [INFO] running `Command { std: "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" "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" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b34823940be212394a8cc2505917001ba4b0c32216bc0e226a0dc757a2853ae8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b34823940be212394a8cc2505917001ba4b0c32216bc0e226a0dc757a2853ae8", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.45 [INFO] [stderr] Compiling cc v1.0.28 [INFO] [stderr] Compiling cfg-if v0.1.6 [INFO] [stderr] Compiling proc-macro2 v0.4.24 [INFO] [stderr] Compiling version_check v0.1.5 [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 ucd-util v0.1.3 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Compiling lazy_static v1.2.0 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling utf8-ranges v1.0.2 [INFO] [stderr] Compiling bindgen v0.45.0 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling termcolor v1.0.4 [INFO] [stderr] Compiling serde v1.0.82 [INFO] [stderr] Compiling clang-sys v0.26.3 [INFO] [stderr] Compiling textwrap v0.10.0 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling humantime v1.2.0 [INFO] [stderr] Compiling regex-syntax v0.6.4 [INFO] [stderr] Compiling memchr v2.1.2 [INFO] [stderr] Compiling backtrace v0.3.13 [INFO] [stderr] Compiling backtrace-sys v0.1.28 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling syn v0.15.23 [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 synstructure v0.10.1 [INFO] [stderr] Compiling env_logger v0.6.0 [INFO] [stderr] Compiling serde_json v1.0.33 [INFO] [stderr] Compiling serde_derive v1.0.82 [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] [stdout] warning: constant is never used: `true_` [INFO] [stdout] --> /opt/rustwide/target/debug/build/rust_ffi-6178d8ceb597a19d/out/c_mx_bindings.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; extern "C" { pub fn transpos... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `false_` [INFO] [stdout] --> /opt/rustwide/target/debug/build/rust_ffi-6178d8ceb597a19d/out/c_mx_bindings.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; extern "C" { pub fn transpos... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `isEqual` [INFO] [stdout] --> /opt/rustwide/target/debug/build/rust_ffi-6178d8ceb597a19d/out/c_mx_bindings.rs:3:365 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn isEqual ( arg1 : * mut f64 , arg2 : * mut f64 , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SubCommand` [INFO] [stdout] --> src/main.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use clap::{Arg, App, SubCommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `Value`, `json` [INFO] [stdout] --> src/main.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json::{Value, Error, json}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use serde; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `transpose` [INFO] [stdout] --> src/main.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | use rust_ffi::{transpose, multiply}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/main.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn new(s: &[f64]) -> LinearMatrix { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit code: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-Wl,--eh-frame-hdr" "-L" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884.rust_ffi.4raq3ojd-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884.rust_ffi.4raq3ojd-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884.rust_ffi.4raq3ojd-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884.rust_ffi.4raq3ojd-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884.rust_ffi.4raq3ojd-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884.rust_ffi.4raq3ojd-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884.rust_ffi.4raq3ojd-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884.rust_ffi.4raq3ojd-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884.rust_ffi.4raq3ojd-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884.rust_ffi.4raq3ojd-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884.rust_ffi.4raq3ojd-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884.rust_ffi.4raq3ojd-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884.rust_ffi.4raq3ojd-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884.rust_ffi.4raq3ojd-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884.rust_ffi.4raq3ojd-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884.rust_ffi.4raq3ojd-cgu.9.rcgu.o" "-o" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884" "/opt/rustwide/target/debug/deps/rust_ffi-54782e90c34d6884.5a59sf9ek5oxk7ig.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/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/librust_ffi-9e71878a6ca368df.rlib" "/opt/rustwide/target/debug/deps/libserde_json-0054d9366385d6fc.rlib" "/opt/rustwide/target/debug/deps/libryu-14e2d52982707843.rlib" "/opt/rustwide/target/debug/deps/libitoa-112bb79833734ba1.rlib" "/opt/rustwide/target/debug/deps/libserde-ec10e75c29f8f087.rlib" "/opt/rustwide/target/debug/deps/libclap-34e39125502e7555.rlib" "/opt/rustwide/target/debug/deps/libvec_map-08722e269333ade1.rlib" "/opt/rustwide/target/debug/deps/libtextwrap-e622ceea45c6fe25.rlib" "/opt/rustwide/target/debug/deps/libunicode_width-e988f03b9c2da313.rlib" "/opt/rustwide/target/debug/deps/libstrsim-e85464cb9a3a7bb5.rlib" "/opt/rustwide/target/debug/deps/libbitflags-bc3933a0c5f4996c.rlib" "/opt/rustwide/target/debug/deps/libatty-b1058aac43b79cd5.rlib" "/opt/rustwide/target/debug/deps/liblibc-1b1ff51b53e8b644.rlib" "/opt/rustwide/target/debug/deps/libansi_term-5e807deedeef1036.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c659455244c9d2ca.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-448643d99e633b5d.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-c7c3d631a525883a.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-d7659a11bb201e01.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-9aceb6f83a33a9b6.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-876c3057c8a2a7c2.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-2f02aa3e24d2aa49.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-1d4694108f8cb543.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-79eaa6e630880f50.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-0df1a4ec96f80cf7.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-bba9b0f0f4d77257.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-f848f9c987265235.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-0d5ea4f2d39b8e27.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-c22053fa5fc00a3b.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-c52e5d6301e1bd59.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-2675a9a46b5cec89.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-6e3d052afeb9f711.rlib" "-Wl,-Bdynamic" "-lmx" "-lutil" "-lutil" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" [INFO] [stdout] = note: /usr/bin/ld: cannot find -lmx [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_ffi` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "b34823940be212394a8cc2505917001ba4b0c32216bc0e226a0dc757a2853ae8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b34823940be212394a8cc2505917001ba4b0c32216bc0e226a0dc757a2853ae8", kill_on_drop: false }` [INFO] [stdout] b34823940be212394a8cc2505917001ba4b0c32216bc0e226a0dc757a2853ae8