I've tried compiling just an empty Tauri project from scratch on two different workstations (Fedora 38 and Gentoo), and both have produced the exact same results.
When I run pnpm tauri android dev I get:
note: ld: error: --fix-cortex-a53-843419 is only supported on AArch64 targets
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
I get this even while setting builds strictly for aarch64, and also compiling for other targets.
A list of things I've tried:
- different Java versions
- using Android studio and setting up manually
- manually tried removing all targets (except
Arm64) fromtauri-mobile'sTargets::all()/everywhere else they were defined - targeting both higher/lower Android SDK versions
- manually passing
--mno-fix-cortex-a53-843419 - compiling everything from git (
nextbranches)/with git patches, to ensure I had the latest commits applied (this also involved cloning & instructingtauri-clito use the local, latest version of thetauri-mobilerepo) - different NDK versions
Here's a list of all NDK versions I've tried:
25.2.9519653
25.0.8775105
23.2.8568313
22.1.7171670 (failed due to missing libunwind)
The output of pnpm tauri info (API is 2.0.0-alpha.0, had to remove it otherwise pnpm tauri info panics):
Environment
› OS: Fedora 38.0.0 X64
› Node.js: 19.7.0
› npm: 9.5.0
› pnpm: 7.29.1
› yarn: Not installed!
› rustup: 1.25.2
› rustc: 1.68.0
› cargo: 1.68.0
› Rust toolchain: stable-x86_64-unknown-linux-gnu
Packages
› @tauri-apps/cli [NPM]: 2.0.0-alpha.2
› @tauri-apps/api [NPM]: Not installed!
› tauri [RUST]: 2.0.0-alpha.3,
› tauri-build [RUST]: 2.0.0-alpha.1,
› tao [RUST]: 0.17.0,
› wry [RUST]: 0.26.0,
App
› build-type: bundle
› CSP: unset
› distDir: ../dist
› devPath: http://localhost:1420/
› framework: React
› bundler: Vite
App directory structure
├─ src-tauri
├─ .vscode
├─ src
├─ public
├─ node_modules
└─ dist