wabt-rs icon indicating copy to clipboard operation
wabt-rs copied to clipboard

Build failed: build failed on mac M1 chip

Open jacksoom opened this issue 2 years ago • 5 comments

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

jacksoom avatar Dec 06 '21 04:12 jacksoom

Just checked on a fresh install. It works just fine for me.

pepyakin avatar Dec 16 '21 21:12 pepyakin

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

ghost avatar Mar 17 '22 08:03 ghost

Any update on this? We're running into the same problem

lastmjs avatar Apr 25 '22 21:04 lastmjs

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?

pepyakin avatar Apr 26 '22 11:04 pepyakin

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

pepyakin avatar Apr 27 '22 10:04 pepyakin