-
Notifications
You must be signed in to change notification settings - Fork 19
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
Bug: doesn't compile on Apple M1? #41
Comments
I have a near identical issue with M1 chip on Sonoma |
You need to manually set
Also make sure to run |
Thank you. This worked. |
Except now I'm getting this error, which seems to be related... error: failed to run custom build command for --- stdout --- stderr |
After the ring update I'm still getting a similar error as posted above. Using a Mac m1 chip. warning: [email protected]: error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"' error: failed to run custom build command for |
@roachj9 Sorry, but I can't reproduce this issue. Everything compiles fine for me using rustc 1.71.0 (8ede3aae2 2023-07-12) on M1 running macOS 13.6.1 (22G313) |
Documenting my experience. On M1 Pro, MacOS 12.5.1 Initially I had the same error as @roachj9. Now, after setting the flags and cleaning, I'm stuck on:
This is with a repo that has nothing but cargo init and adding this git repo by URL with, in Cargo.toml:
Maybe it's unrelated to being on M1, though I do notice it's the same |
Hi all, The issue can still be reproduced on an M3 Pro.
With homebrew installed LLVM seems to have fixed the issue. There is a weird side-effect where it no longer caches Any solutions to this would be much appreciated! |
Describe the bug
After running compilation on rust level, that can be ivoced also by
npm run build
command after downloading sources from git, I get:`...
Compiling cipher v0.4.4
error: failed to build archive: 'wasm32.o': section too large
The following warnings were emitted during compilation:
warning: warning: /Library/Developer/CommandLineTools/usr/bin/ranlib: archive library: /Users/(...)/surrealdb.wasm/target/wasm32-unknown-unknown/release/build/psm-e7fd6e39c2c90a79/out/libpsm_s.a the table of contents is empty (no object file members in the library define global symbols)
error: could not compile
psm
(lib) due to previous errorwarning: build failed, waiting for other jobs to finish...
Error: Compiling your crate to WebAssembly failed
Caused by: Compiling your crate to WebAssembly failed
Caused by: failed to execute
cargo build
: exited with exit status: 101full command: cd "/Users/pedropuchalski/Documents/praca/FirmaNext/sceneMgm/surrealdb.wasm" && "cargo" "build" "--lib" "--release" "--target" "wasm32-unknown-unknown" "--no-default-features" "--features" "protocol-ws,protocol-http,kv-indxdb,kv-mem,rustls"`
Steps to reproduce
Try to compile on Apple MacBook Air with M1, Ventura.
Expected behaviour
Compiled *.wasm file.
SurrealDB version
"1.0.0", default-features = false
Contact Details
[email protected]
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: