wabt-rs
wabt-rs copied to clipboard
Build failed: build failed on mac M1 chip
Build failed: build failed on mac M1 chip Build Env: cargo 1.58.0-nightly (2e2a16e98 2021-11-08) rustc 1.58.0-nightly (936238a92 2021-11-11)
Error msg Compiling quote v1.0.10 Compiling wabt-sys v0.8.0 (/Users/jacksoom/programer/rust/tools/wabt-rs/wabt-sys) Compiling serde_json v1.0.72 Compiling syn v1.0.82 Compiling serde_derive v1.0.130 Compiling wabt v0.10.0 (/Users/jacksoom/programer/rust/tools/wabt-rs) error: failed to add native library /Users/jacksoom/programer/rust/tools/wabt-rs/target/debug/build/wabt-sys-161fabea683d9915/out/build/libwabt.a: file too small to be an archive
error: could not compile wabt-sys
due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed
Just checked on a fresh install. It works just fine for me.
I got the same problem. Which Mac do you have where it's working? Could it be the cargo version? Mine is also failing with 1.58.0
Any update on this? We're running into the same problem
rustup show
:
rustc 1.57.0 (f1edd0429 2021-11-29)
then after I did rustup update
, I got:
stable-aarch64-apple-darwin updated - rustc 1.60.0 (7737e0b5c 2022-04-04) (from rustc 1.57.0 (f1edd0429 2021-11-29))
without any other changes running cargo test
successfully finishes.
Any other leads?
My hunch is that this might be related to the architecture.
As you can see above, I am using the aarch64 build.
Can you check whether you are using the x86_64 rustc build & Rossetta emulation?
cc @lastmjs @lmuntanerDfinity @jacksoom