[INFO] updating cached repository totechite/rust-snappy-example [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/totechite/rust-snappy-example [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/totechite/rust-snappy-example" "work/ex/beta-1.38-1/sources/1.37.0/gh/totechite/rust-snappy-example"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/1.37.0/gh/totechite/rust-snappy-example'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/totechite/rust-snappy-example" "work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/totechite/rust-snappy-example"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/totechite/rust-snappy-example'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 70f145567badc99eb6fd67dbfb3765d4fcdcba05 [INFO] sha for GitHub repo totechite/rust-snappy-example: 70f145567badc99eb6fd67dbfb3765d4fcdcba05 [INFO] validating manifest of totechite/rust-snappy-example on toolchain 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of totechite/rust-snappy-example on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing totechite/rust-snappy-example [INFO] finished frobbing totechite/rust-snappy-example [INFO] frobbed toml for totechite/rust-snappy-example written to work/ex/beta-1.38-1/sources/1.37.0/gh/totechite/rust-snappy-example/Cargo.toml [INFO] started frobbing totechite/rust-snappy-example [INFO] finished frobbing totechite/rust-snappy-example [INFO] frobbed toml for totechite/rust-snappy-example written to work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/totechite/rust-snappy-example/Cargo.toml [INFO] crate totechite/rust-snappy-example already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing totechite/rust-snappy-example against beta-2019-08-13 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-0/beta-2019-08-13:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/totechite/rust-snappy-example:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+beta-2019-08-13" "build" "--frozen"` [INFO] [stdout] 3a1ac2a3932c7b8cab53721719ae2b60392d6dc0d28449faebe500821263ef85 [INFO] running `"docker" "start" "-a" "3a1ac2a3932c7b8cab53721719ae2b60392d6dc0d28449faebe500821263ef85"` [INFO] [stderr] Compiling practice_rust_ffi v0.1.0 (/opt/crater/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:1 [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:1 [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:1 [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/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/crater/target/debug/deps/practice_rust_ffi-0f42ce9730f1d7b0.practice_rust_ffi.3qy63pmu-cgu.0.rcgu.o" "/opt/crater/target/debug/deps/practice_rust_ffi-0f42ce9730f1d7b0.practice_rust_ffi.3qy63pmu-cgu.1.rcgu.o" "/opt/crater/target/debug/deps/practice_rust_ffi-0f42ce9730f1d7b0.practice_rust_ffi.3qy63pmu-cgu.2.rcgu.o" "/opt/crater/target/debug/deps/practice_rust_ffi-0f42ce9730f1d7b0.practice_rust_ffi.3qy63pmu-cgu.3.rcgu.o" "/opt/crater/target/debug/deps/practice_rust_ffi-0f42ce9730f1d7b0.practice_rust_ffi.3qy63pmu-cgu.4.rcgu.o" "/opt/crater/target/debug/deps/practice_rust_ffi-0f42ce9730f1d7b0.practice_rust_ffi.3qy63pmu-cgu.5.rcgu.o" "/opt/crater/target/debug/deps/practice_rust_ffi-0f42ce9730f1d7b0.practice_rust_ffi.3qy63pmu-cgu.6.rcgu.o" "-o" "/opt/crater/target/debug/deps/practice_rust_ffi-0f42ce9730f1d7b0" "/opt/crater/target/debug/deps/practice_rust_ffi-0f42ce9730f1d7b0.w7e35s111hug9dr.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/opt/crater/target/debug/deps" "-L" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lsnappy" "-Wl,-Bstatic" "/opt/crater/target/debug/deps/liblibc-c28ba84e42002ff8.rlib" "-Wl,--start-group" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-1d6d86bd078a28e9.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-e9721e46a424e2a9.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-c07193698f282147.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-6da45690f3863086.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-690797036dd27680.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-d3896ccbfd8eda2b.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-7cccc3739e3d7623.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-5e9ba178a513cd29.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-5ca9f83bf63d1f4b.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-bba1c7ef9e950882.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-e23c9de62012deb5.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-9b59dffdcd513d5d.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-17392340ab2e4a97.rlib" "-Wl,--end-group" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-ac21508a81e3f7f3.rlib" "-Wl,-Bdynamic" "-lutil" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-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 [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" "3a1ac2a3932c7b8cab53721719ae2b60392d6dc0d28449faebe500821263ef85"` [INFO] running `"docker" "rm" "-f" "3a1ac2a3932c7b8cab53721719ae2b60392d6dc0d28449faebe500821263ef85"` [INFO] [stdout] 3a1ac2a3932c7b8cab53721719ae2b60392d6dc0d28449faebe500821263ef85