[INFO] fetching crate nitrokey-sys 3.6.0... [INFO] testing nitrokey-sys-3.6.0 against master#5d5ff84130da0d74c6ece368dbe821d8f83fa526 for pr-79296 [INFO] extracting crate nitrokey-sys 3.6.0 into /workspace/builds/worker-12/source [INFO] validating manifest of crates.io crate nitrokey-sys 3.6.0 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 crates.io crate nitrokey-sys 3.6.0 [INFO] finished tweaking crates.io crate nitrokey-sys 3.6.0 [INFO] tweaked toml for crates.io crate nitrokey-sys 3.6.0 written to /workspace/builds/worker-12/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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] f6515e233caf0ae7e7dd372f6cf6a62c7fd6fffd4225a4ae06db8012bfddf4f4 [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" "f6515e233caf0ae7e7dd372f6cf6a62c7fd6fffd4225a4ae06db8012bfddf4f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f6515e233caf0ae7e7dd372f6cf6a62c7fd6fffd4225a4ae06db8012bfddf4f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6515e233caf0ae7e7dd372f6cf6a62c7fd6fffd4225a4ae06db8012bfddf4f4", kill_on_drop: false }` [INFO] [stdout] f6515e233caf0ae7e7dd372f6cf6a62c7fd6fffd4225a4ae06db8012bfddf4f4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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] 9a9271f3d80b4afa75d26995501a5bddbb5c68f91164cdcbbf6ebd56fc8d3863 [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" "9a9271f3d80b4afa75d26995501a5bddbb5c68f91164cdcbbf6ebd56fc8d3863", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.0.65 [INFO] [stderr] Compiling nitrokey-sys v3.6.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 24.35s [INFO] running `Command { std: "docker" "inspect" "9a9271f3d80b4afa75d26995501a5bddbb5c68f91164cdcbbf6ebd56fc8d3863", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a9271f3d80b4afa75d26995501a5bddbb5c68f91164cdcbbf6ebd56fc8d3863", kill_on_drop: false }` [INFO] [stdout] 9a9271f3d80b4afa75d26995501a5bddbb5c68f91164cdcbbf6ebd56fc8d3863 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dd1cb64161cd67f86372f85ef07c97bbb8e7d2442e9291280459bde6959485ea [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" "dd1cb64161cd67f86372f85ef07c97bbb8e7d2442e9291280459bde6959485ea", kill_on_drop: false }` [INFO] [stderr] Compiling nitrokey-sys v3.6.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:30:63 [INFO] [stdout] | [INFO] [stdout] 30 | assert_eq!(0, NK_login(CString::new("L").unwrap().as_ptr())); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:31:63 [INFO] [stdout] | [INFO] [stdout] 31 | assert_eq!(0, NK_login(CString::new("P").unwrap().as_ptr())); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:32:63 [INFO] [stdout] | [INFO] [stdout] 32 | assert_eq!(0, NK_login(CString::new("S").unwrap().as_ptr())); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:34:63 [INFO] [stdout] | [INFO] [stdout] 34 | assert_eq!(0, NK_login(CString::new("T").unwrap().as_ptr())); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [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/nitrokey_sys-9d2e0cfbd69d5948.nitrokey_sys.czmr7kes-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/nitrokey_sys-9d2e0cfbd69d5948.nitrokey_sys.czmr7kes-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/nitrokey_sys-9d2e0cfbd69d5948.nitrokey_sys.czmr7kes-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/nitrokey_sys-9d2e0cfbd69d5948.nitrokey_sys.czmr7kes-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/nitrokey_sys-9d2e0cfbd69d5948.nitrokey_sys.czmr7kes-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/nitrokey_sys-9d2e0cfbd69d5948.nitrokey_sys.czmr7kes-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/nitrokey_sys-9d2e0cfbd69d5948.nitrokey_sys.czmr7kes-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/nitrokey_sys-9d2e0cfbd69d5948.nitrokey_sys.czmr7kes-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/nitrokey_sys-9d2e0cfbd69d5948.nitrokey_sys.czmr7kes-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/nitrokey_sys-9d2e0cfbd69d5948.nitrokey_sys.czmr7kes-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/nitrokey_sys-9d2e0cfbd69d5948.nitrokey_sys.czmr7kes-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/nitrokey_sys-9d2e0cfbd69d5948.nitrokey_sys.czmr7kes-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/nitrokey_sys-9d2e0cfbd69d5948.nitrokey_sys.czmr7kes-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/nitrokey_sys-9d2e0cfbd69d5948.nitrokey_sys.czmr7kes-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/nitrokey_sys-9d2e0cfbd69d5948.nitrokey_sys.czmr7kes-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/nitrokey_sys-9d2e0cfbd69d5948.nitrokey_sys.czmr7kes-cgu.9.rcgu.o" "-o" "/opt/rustwide/target/debug/deps/nitrokey_sys-9d2e0cfbd69d5948" "/opt/rustwide/target/debug/deps/nitrokey_sys-9d2e0cfbd69d5948.4zf23kd9umshuz9s.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug/build/nitrokey-sys-5d719282f4e24162/out" "-L" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,--whole-archive" "-lnitrokey" "-Wl,--no-whole-archive" "-Wl,-Bdynamic" "-lstdc++" "-lhidapi-libusb" "-Wl,-Bstatic" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest-e400a06feeddb41f.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libterm-8ca745aec409b30d.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgetopts-dddd49119eca10c7.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode_width-3f84b2ca2f59187b.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_std-53983bcf89dbd6ef.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" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" [INFO] [stdout] = note: /usr/bin/ld: cannot find -lhidapi-libusb [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `nitrokey-sys` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "dd1cb64161cd67f86372f85ef07c97bbb8e7d2442e9291280459bde6959485ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd1cb64161cd67f86372f85ef07c97bbb8e7d2442e9291280459bde6959485ea", kill_on_drop: false }` [INFO] [stdout] dd1cb64161cd67f86372f85ef07c97bbb8e7d2442e9291280459bde6959485ea