[INFO] updating cached repository https://github.com/totechite/rust-snappy-example [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] 70f145567badc99eb6fd67dbfb3765d4fcdcba05 [INFO] testing totechite/rust-snappy-example against beta-2020-06-03 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftotechite%2Frust-snappy-example" "/workspace/builds/worker-2/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/totechite/rust-snappy-example on toolchain beta-2020-06-03 [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/totechite/rust-snappy-example [INFO] finished tweaking git repo https://github.com/totechite/rust-snappy-example [INFO] tweaked toml for git repo https://github.com/totechite/rust-snappy-example written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/totechite/rust-snappy-example already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "+beta-2020-06-03" "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] 1111e42e5e88cc47da51e2b6f9031309e10264b6776415bbcca7c51be1c218ee [INFO] running `"docker" "start" "-a" "1111e42e5e88cc47da51e2b6f9031309e10264b6776415bbcca7c51be1c218ee"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling practice_rust_ffi v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: function is never used: `snappy_compress` [INFO] [stderr] --> src/bind_snappy.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | / fn snappy_compress(input: *const u8, [INFO] [stderr] 8 | | input_length: size_t, [INFO] [stderr] 9 | | compressed: *mut u8, [INFO] [stderr] 10 | | compressed_length: *mut size_t) -> c_int; [INFO] [stderr] | |________________________________________________________________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `snappy_uncompress` [INFO] [stderr] --> src/bind_snappy.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | / fn snappy_uncompress(compressed: *const u8, [INFO] [stderr] 12 | | compressed_length: size_t, [INFO] [stderr] 13 | | uncompressed: *mut u8, [INFO] [stderr] 14 | | uncompressed_length: *mut size_t) -> c_int; [INFO] [stderr] | |____________________________________________________________________^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `snappy_uncompressed_length` [INFO] [stderr] --> src/bind_snappy.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | / fn snappy_uncompressed_length(compressed: *const u8, [INFO] [stderr] 17 | | compressed_length: size_t, [INFO] [stderr] 18 | | result: *mut size_t) -> c_int; [INFO] [stderr] | |________________________________________________________________^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `snappy_validate_compressed_buffer` [INFO] [stderr] --> src/bind_snappy.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | / fn snappy_validate_compressed_buffer(compressed: *const u8, [INFO] [stderr] 20 | | compressed_length: size_t) -> c_int; [INFO] [stderr] | |_____________________________________________________________________________^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `compress` [INFO] [stderr] --> src/bind_snappy.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn compress(src: &[u8]) -> Vec { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `uncompress` [INFO] [stderr] --> src/bind_snappy.rs:38:8 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn uncompress(src: &[u8]) -> Option> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `validate_compressed_buffer` [INFO] [stderr] --> src/bind_snappy.rs:63:8 [INFO] [stderr] | [INFO] [stderr] 63 | pub fn validate_compressed_buffer(src: &[u8]) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [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/beta-2020-06-03-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/rustwide/target/debug/deps/practice_rust_ffi-0a44b22e872f72c3.practice_rust_ffi.935qn7ut-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/practice_rust_ffi-0a44b22e872f72c3.practice_rust_ffi.935qn7ut-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/practice_rust_ffi-0a44b22e872f72c3.practice_rust_ffi.935qn7ut-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/practice_rust_ffi-0a44b22e872f72c3.practice_rust_ffi.935qn7ut-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/practice_rust_ffi-0a44b22e872f72c3.practice_rust_ffi.935qn7ut-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/practice_rust_ffi-0a44b22e872f72c3.practice_rust_ffi.935qn7ut-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/practice_rust_ffi-0a44b22e872f72c3.practice_rust_ffi.935qn7ut-cgu.6.rcgu.o" "-o" "/opt/rustwide/target/debug/deps/practice_rust_ffi-0a44b22e872f72c3" "/opt/rustwide/target/debug/deps/practice_rust_ffi-0a44b22e872f72c3.96y9t5w10kun0s6.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/rustup-home/toolchains/beta-2020-06-03-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lsnappy" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/liblibc-556b8657aa4e58e9.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/beta-2020-06-03-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-44f8eb3d0b2fad61.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2020-06-03-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-abc626f09920d361.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2020-06-03-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-546e83c8973f1a65.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2020-06-03-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-12768dfc68674934.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2020-06-03-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-e06867e4497f2ee8.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2020-06-03-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-cbc579f43f6df57b.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2020-06-03-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-7abd6d5a7ebf9a23.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2020-06-03-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-46423c7bc03bd327.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2020-06-03-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-fc3773ed7bc68f07.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2020-06-03-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-9cdc98176efd27e2.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2020-06-03-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-02d88502a763e06b.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2020-06-03-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-8cdc9d38dd6cd3ce.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2020-06-03-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-336f7d63e72901ef.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/beta-2020-06-03-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-57917b1be5233117.rlib" "-Wl,-Bdynamic" "-lutil" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-ldl" "-lutil" [INFO] [stderr] = note: /usr/bin/ld: cannot find -lsnappy [INFO] [stderr] collect2: error: ld returned 1 exit status [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error; 7 warnings emitted [INFO] [stderr] [INFO] [stderr] error: could not compile `practice_rust_ffi`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "1111e42e5e88cc47da51e2b6f9031309e10264b6776415bbcca7c51be1c218ee"` [INFO] running `"docker" "rm" "-f" "1111e42e5e88cc47da51e2b6f9031309e10264b6776415bbcca7c51be1c218ee"` [INFO] [stdout] 1111e42e5e88cc47da51e2b6f9031309e10264b6776415bbcca7c51be1c218ee