Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed: build failed on mac M1 chip #78

Open
jacksoom opened this issue Dec 6, 2021 · 5 comments
Open

Build failed: build failed on mac M1 chip #78

jacksoom opened this issue Dec 6, 2021 · 5 comments

Comments

@jacksoom
Copy link

jacksoom commented Dec 6, 2021

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

@pepyakin
Copy link
Owner

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

@ghost
Copy link

ghost commented Mar 17, 2022

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

@lastmjs
Copy link

lastmjs commented Apr 25, 2022

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

@pepyakin
Copy link
Owner

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants