Mobile (iOS & Android) & Web not compiling on Mac Apple Silcon & Windows 11 x64; Desktop ok
Closed this issue · 1 comments
Version 0.6.1
broke builds for both mobile and web platforms on Mac Apple Silcon and Windows 11 x64 for my current project; desktop still builds and launches.
I have confirmed this is not an issue on Linux.
Seems like upgrading to 0.6.1
doesn't matter, because reverting the project back or using a specific version still uses version 0.6.1, which is weird.
It might be related to #3411
Steps To Reproduce
Steps to reproduce the behavior:
WASM
MacOS
> cargo build --release --target wasm32-unknown-unknown --no-default-features --features web
Compiling once_cell v1.20.2
Compiling cfg-if v1.0.0
Compiling smallvec v1.13.2
Compiling pin-project-lite v0.2.15
Compiling scopeguard v1.2.0
Compiling futures-core v0.3.31
Compiling stable_deref_trait v1.2.0
Compiling rustc-hash v1.1.0
Compiling slab v0.4.9
Compiling wasm-bindgen-backend v0.2.99
Compiling tracing-attributes v0.1.28
Compiling pin-project-internal v1.1.7
Compiling serde v1.0.216
Compiling zerofrom-derive v0.1.5
error[E0463]: can't find crate for `core`
|
= note: the `wasm32-unknown-unknown` target may not be installed
= help: consider downloading the target with `rustup target add wasm32-unknown-unknown`
For more information about this error, try `rustc --explain E0463`.
error[E0463]: can't find crate for `std`
|
= note: the `wasm32-unknown-unknown` target may not be installed
= help: consider downloading the target with `rustup target add wasm32-unknown-unknown`
error: could not compile `cfg-if` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `scopeguard` (lib) due to 1 previous error
error: could not compile `once_cell` (lib) due to 1 previous error
error: could not compile `futures-core` (lib) due to 1 previous error
error: could not compile `smallvec` (lib) due to 1 previous error
error: could not compile `pin-project-lite` (lib) due to 1 previous error
error: could not compile `rustc-hash` (lib) due to 1 previous error
error: could not compile `stable_deref_trait` (lib) due to 1 previous error
error: could not compile `slab` (lib) due to 1 previous error
error: could not compile `serde` (lib) due to 1 previous error
Windows
> cargo build --release --target aarch64-linux-android --no-default-features --features mobile
Compiling sudoku v0.3.0 (C:\Users\~~~\sudoku-rs\sudoku)
error: linker `cc` not found
|
= note: program not found
error: could not compile `sudoku` (bin "sudoku") due to 1 previous error
iOS
> cargo build --release --target aarch64-apple-ios-sim --no-default-features --features mobile
Compiling cfg-if v1.0.0
Compiling once_cell v1.20.2
Compiling smallvec v1.13.2
Compiling pin-project-lite v0.2.15
Compiling stable_deref_trait v1.2.0
Compiling scopeguard v1.2.0
Compiling libc v0.2.168
Compiling futures-core v0.3.31
Compiling slotmap v1.0.7
Compiling slab v0.4.9
Compiling rustc-hash v1.1.0
Compiling futures-task v0.3.31
Compiling serde_derive v1.0.216
Compiling synstructure v0.13.1
error[E0463]: can't find crate for `core`
|
= note: the `aarch64-apple-ios-sim` target may not be installed
= help: consider downloading the target with `rustup target add aarch64-apple-ios-sim`
For more information about this error, try `rustc --explain E0463`.
error[E0463]: can't find crate for `std`
|
= note: the `aarch64-apple-ios-sim` target may not be installed
= help: consider downloading the target with `rustup target add aarch64-apple-ios-sim`
error: could not compile `stable_deref_trait` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `pin-project-lite` (lib) due to 1 previous error
error: could not compile `scopeguard` (lib) due to 1 previous error
error: could not compile `cfg-if` (lib) due to 1 previous error
error: could not compile `futures-core` (lib) due to 1 previous error
error: could not compile `smallvec` (lib) due to 1 previous error
error: could not compile `once_cell` (lib) due to 1 previous error
error: could not compile `slab` (lib) due to 1 previous error
error: could not compile `rustc-hash` (lib) due to 1 previous error
error: could not compile `futures-task` (lib) due to 1 previous error
Android
MacOS
> cargo build --release --target aarch64-linux-android --no-default-features --features mobile
Compiling cfg-if v1.0.0
Compiling once_cell v1.20.2
Compiling smallvec v1.13.2
Compiling stable_deref_trait v1.2.0
Compiling libc v0.2.168
Compiling serde v1.0.216
Compiling parking_lot_core v0.9.10
Compiling scopeguard v1.2.0
Compiling pin-project-lite v0.2.15
Compiling lock_api v0.4.12
Compiling getrandom v0.1.16
Compiling slab v0.4.9
Compiling zerocopy v0.7.35
error[E0463]: can't find crate for `core`
|
= note: the `aarch64-linux-android` target may not be installed
= help: consider downloading the target with `rustup target add aarch64-linux-android`
error[E0463]: can't find crate for `std`
|
= note: the `aarch64-linux-android` target may not be installed
= help: consider downloading the target with `rustup target add aarch64-linux-android`
For more information about this error, try `rustc --explain E0463`.
error: could not compile `cfg-if` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `stable_deref_trait` (lib) due to 1 previous error
error: could not compile `once_cell` (lib) due to 1 previous error
error: could not compile `smallvec` (lib) due to 1 previous error
error: could not compile `scopeguard` (lib) due to 1 previous error
error: could not compile `pin-project-lite` (lib) due to 1 previous error
Windows
cargo build --release --target wasm32-unknown-unknown --no-default-features --features web
Compiling sudoku v0.3.0 (C:\Users\~~~\sudoku-rs\sudoku)
error: linking with `rust-lld` failed: exit code: 1
.
. # see attached file for details (too big to post)
.
error: could not compile `sudoku` (bin "sudoku") due to 1 previous error
Expected behavior
I expected it to compile
Screenshots
MacOS
> rustup show
Default host: aarch64-apple-darwin
rustup home: /Users/~~~/.rustup
installed toolchains
--------------------
stable-aarch64-apple-darwin (default)
1.81-aarch64-apple-darwin
installed targets for active toolchain
--------------------------------------
aarch64-apple-darwin
aarch64-apple-ios
aarch64-apple-ios-sim
aarch64-linux-android
armv7-linux-androideabi
i686-linux-android
wasm32-unknown-unknown
x86_64-apple-ios
x86_64-linux-android
active toolchain
----------------
stable-aarch64-apple-darwin (default)
rustc 1.83.0 (90b35a623 2024-11-26)
> cargo install-update -l
Polling registry 'https://index.crates.io/'............................
Package Installed Latest Needs update
cargo-apk v0.10.0 v0.10.0 No
cargo-audit v0.21.0 v0.21.0 No
cargo-binstall v1.10.17 v1.10.17 No
cargo-cache v0.8.3 v0.8.3 No
cargo-chef v0.1.68 v0.1.68 No
cargo-expand v1.0.95 v1.0.95 No
cargo-generate v0.22.0 v0.22.0 No
cargo-machete v0.7.0 v0.7.0 No
cargo-make v0.37.23 v0.37.23 No
cargo-minify v0.5.0 v0.5.0 No
cargo-mobile2 v0.17.4 v0.17.4 No
cargo-ndk v3.5.4 v3.5.4 No
cargo-show-asm v0.2.44 v0.2.44 No
cargo-unused-features v0.2.0 v0.2.0 No
cargo-update v16.0.0 v16.0.0 No
cargo-zigbuild v0.19.7 v0.19.7 No
dioxus-cli v0.6.1 v0.6.1 No
du-dust v1.1.1 v1.1.1 No
flamegraph v0.6.7 v0.6.7 No
hd v0.1.0 v0.1.0 No
hyperfine v1.19.0 v1.19.0 No
irust v1.71.29 v1.71.29 No
rust-script v0.35.0 v0.35.0 No
skim v0.15.5 v0.15.5 No
tokio-console v0.1.13 v0.1.13 No
trunk v0.21.5 v0.21.5 No
wasm-bindgen-cli v0.2.99 v0.2.99 No
wasm-opt v0.116.1 v0.116.1 No
Windows
Default host: x86_64-pc-windows-msvc
rustup home: C:\Users\~~~\.rustup
installed toolchains
--------------------
stable-x86_64-pc-windows-msvc (default)
1.80.1-x86_64-pc-windows-msvc
installed targets for active toolchain
--------------------------------------
aarch64-linux-android
armv7-linux-androideabi
i686-linux-android
wasm32-unknown-unknown
x86_64-linux-android
x86_64-pc-windows-msvc
active toolchain
----------------
stable-x86_64-pc-windows-msvc (default)
rustc 1.83.0 (90b35a623 2024-11-26)
It turns out the issue had to do with Rustup being installed with brew.
Reinstalling and setting up Rustup with the instructions on Installing Rust fixed all the Mac issues above. However it does not explain why it's broken on Windows, but I'm leaving that for another time.