[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 1.44.0 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-9/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/totechite/rust-snappy-example 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/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-9/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" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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] b1ae9502ba096ae0c7a4f34d020753f71609d34f99590ea810b3d1bd444662a8 [INFO] running `"docker" "start" "-a" "b1ae9502ba096ae0c7a4f34d020753f71609d34f99590ea810b3d1bd444662a8"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling practice_rust_ffi v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: foreign 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: foreign 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: foreign 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: foreign 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/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/rustwide/target/debug/deps/practice_rust_ffi-3d4a1999279e31da.practice_rust_ffi.48vuxy7r-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/practice_rust_ffi-3d4a1999279e31da.practice_rust_ffi.48vuxy7r-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/practice_rust_ffi-3d4a1999279e31da.practice_rust_ffi.48vuxy7r-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/practice_rust_ffi-3d4a1999279e31da.practice_rust_ffi.48vuxy7r-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/practice_rust_ffi-3d4a1999279e31da.practice_rust_ffi.48vuxy7r-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/practice_rust_ffi-3d4a1999279e31da.practice_rust_ffi.48vuxy7r-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/practice_rust_ffi-3d4a1999279e31da.practice_rust_ffi.48vuxy7r-cgu.6.rcgu.o" "-o" "/opt/rustwide/target/debug/deps/practice_rust_ffi-3d4a1999279e31da" "/opt/rustwide/target/debug/deps/practice_rust_ffi-3d4a1999279e31da.5btx8zi3fffsmihk.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/rustup-home/toolchains/1.44.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lsnappy" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/liblibc-6d7bd9ab32e21e55.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" "-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" "b1ae9502ba096ae0c7a4f34d020753f71609d34f99590ea810b3d1bd444662a8"` [INFO] running `"docker" "rm" "-f" "b1ae9502ba096ae0c7a4f34d020753f71609d34f99590ea810b3d1bd444662a8"` [INFO] [stdout] b1ae9502ba096ae0c7a4f34d020753f71609d34f99590ea810b3d1bd444662a8