[INFO] fetching crate android-usbser 0.2.2... [INFO] testing android-usbser-0.2.2 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate android-usbser 0.2.2 into /workspace/builds/worker-4-tc1/source [INFO] removed /workspace/builds/worker-4-tc1/source/.cargo/config.toml [INFO] started tweaking crates.io crate android-usbser 0.2.2 [INFO] finished tweaking crates.io crate android-usbser 0.2.2 [INFO] tweaked toml for crates.io crate android-usbser 0.2.2 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate android-usbser 0.2.2 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 97 packages to latest compatible versions [INFO] [stderr] Adding jni-min-helper v0.2.6 (available: v0.3.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libudev v0.3.0 [INFO] [stderr] Downloaded mach2 v0.4.3 [INFO] [stderr] Downloaded getset v0.1.6 [INFO] [stderr] Downloaded unescaper v0.1.6 [INFO] [stderr] Downloaded java-locator v0.1.9 [INFO] [stderr] Downloaded nusb v0.1.14 [INFO] [stderr] Downloaded jni-min-helper v0.2.6 [INFO] [stderr] Downloaded serialport v4.7.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ab94f23efd4546ee4373256dee92c6d3dc5c8a8c74d45b001ec670adb83e37e1 [INFO] running `Command { std: "docker" "start" "-a" "ab94f23efd4546ee4373256dee92c6d3dc5c8a8c74d45b001ec670adb83e37e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ab94f23efd4546ee4373256dee92c6d3dc5c8a8c74d45b001ec670adb83e37e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab94f23efd4546ee4373256dee92c6d3dc5c8a8c74d45b001ec670adb83e37e1", kill_on_drop: false }` [INFO] [stdout] ab94f23efd4546ee4373256dee92c6d3dc5c8a8c74d45b001ec670adb83e37e1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 7d8099fc8efba33274253d9817e7782e7d083d624a563e3e36eb1949f9b1a911 [INFO] running `Command { std: "docker" "start" "-a" "7d8099fc8efba33274253d9817e7782e7d083d624a563e3e36eb1949f9b1a911", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling cesu8 v1.1.0 [INFO] [stderr] Compiling jni-sys v0.3.0 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling java-locator v0.1.9 [INFO] [stderr] Compiling futures-lite v2.6.0 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling jni-min-helper v0.2.6 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling getset v0.1.6 [INFO] [stderr] Compiling serialport v4.7.2 [INFO] [stderr] Compiling nusb v0.1.14 [INFO] [stderr] Compiling jni v0.21.1 [INFO] [stderr] Compiling android-usbser v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `jni_min_helper::block_for_timeout` [INFO] [stdout] --> usb_sync.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use jni_min_helper::block_for_timeout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `block_for_timeout` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BroadcastWaiter` in this scope [INFO] [stdout] --> usb_conn.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | waiter: BroadcastWaiter, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BroadcastWaiter` in this scope [INFO] [stdout] --> usb_conn.rs:339:13 [INFO] [stdout] | [INFO] [stdout] 339 | waiter: BroadcastWaiter, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `android_context` in this scope [INFO] [stdout] --> usb_conn.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | let context = android_context(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `android_context` in this scope [INFO] [stdout] --> usb_conn.rs:63:20 [INFO] [stdout] | [INFO] [stdout] 63 | let activity = android_context(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BroadcastReceiver` [INFO] [stdout] --> usb_conn.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | BroadcastReceiver::get_intent_action(&intent_startup, env).map_err(jerr)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `BroadcastReceiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BroadcastWaiter` [INFO] [stdout] --> usb_conn.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | BroadcastWaiter::build([ACTION_USB_DEVICE_ATTACHED, ACTION_USB_DEVICE_DETACHED]) [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `BroadcastWaiter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `block_for_timeout` in this scope [INFO] [stdout] --> usb_conn.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | block_for_timeout(fut, timeout) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BroadcastWaiter` [INFO] [stdout] --> usb_conn.rs:175:30 [INFO] [stdout] | [INFO] [stdout] 175 | let Ok(action) = BroadcastWaiter::get_intent_action(&intent, env) else { [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `BroadcastWaiter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `android_context` in this scope [INFO] [stdout] --> usb_conn.rs:254:23 [INFO] [stdout] | [INFO] [stdout] 254 | let context = android_context(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `android_api_level` in this scope [INFO] [stdout] --> usb_conn.rs:266:24 [INFO] [stdout] | [INFO] [stdout] 266 | let flags = if android_api_level() < 31 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BroadcastWaiter` [INFO] [stdout] --> usb_conn.rs:293:9 [INFO] [stdout] | [INFO] [stdout] 293 | BroadcastWaiter::build([ACTION_USB_PERMISSION]) [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `BroadcastWaiter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `block_for_timeout` in this scope [INFO] [stdout] --> usb_conn.rs:357:9 [INFO] [stdout] | [INFO] [stdout] 357 | block_for_timeout(self, Duration::from_millis(10)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^--------------------------------- [INFO] [stdout] | | [INFO] [stdout] | help: try calling `block_for_timeout` as a method: `self.block_for_timeout(Duration::from_millis(10))` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `block_for_timeout` in this scope [INFO] [stdout] --> usb_conn.rs:363:9 [INFO] [stdout] | [INFO] [stdout] 363 | block_for_timeout(self, timeout).ok_or(Error::from(ErrorKind::TimedOut)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^--------------- [INFO] [stdout] | | [INFO] [stdout] | help: try calling `block_for_timeout` as a method: `self.block_for_timeout(timeout)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `android_api_level` in this scope [INFO] [stdout] --> usb_info.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | if android_api_level() >= 21 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `android_api_level` in this scope [INFO] [stdout] --> usb_info.rs:117:37 [INFO] [stdout] | [INFO] [stdout] 117 | info.serial_number = if android_api_level() < 29 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `android-usbser` (lib) due to 16 previous errors [INFO] running `Command { std: "docker" "inspect" "7d8099fc8efba33274253d9817e7782e7d083d624a563e3e36eb1949f9b1a911", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d8099fc8efba33274253d9817e7782e7d083d624a563e3e36eb1949f9b1a911", kill_on_drop: false }` [INFO] [stdout] 7d8099fc8efba33274253d9817e7782e7d083d624a563e3e36eb1949f9b1a911