lance-format/lance

Android build fails due to `aarch64` in Rust

Open

#2.411 geöffnet am 29. Mai 2024

Auf GitHub ansehen
 (8 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (695 Forks)github user discovery
good first issuerust

Repository-Metriken

Stars
 (6.582 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 1h) (219 gemergte PRs in 30 T)

Beschreibung

Hi,

I am trying to build my Tauri app which uses lancedb = "0.5.0" but it fails due to the following error:

error[E0433]: failed to resolve: use of undeclared crate or module `aarch64`
  --> C:\Users\-\.cargo\registry\src\index.crates.io-6f17d22bba15001f\lance-core-0.11.0\src\utils\cpu.rs:20:16
   |
20 |             if aarch64::has_neon_f16_support() {
   |                ^^^^^^^ use of undeclared crate or module `aarch64`
For more information about this error, try `rustc --explain E0433`.
error: could not compile `lance-core` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

    Error `Failed to run `cargo build`: command ["cargo", "build", "--package", "myapp", "--manifest-path", "C:\\Users\\-\\myapp\\src-tauri\\Cargo.toml", "--target", "aarch64-linux-android", "--lib"] exited with code 101
error Command failed with exit code 1.

Contributor Guide