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

Error when run ./build-for-web.sh wgpu: #860

Closed
antimora opened this issue Oct 12, 2023 · 1 comment
Closed

Error when run ./build-for-web.sh wgpu: #860

antimora opened this issue Oct 12, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@antimora
Copy link
Collaborator

          I also meet an error when run `./build-for-web.sh wgpu`:
error: lto can only be run for executables, cdylibs and static library outputs

error: could not compile `walrus-macro` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `serde_derive` (lib) due to previous error
error: failed to compile `wasm-bindgen-cli v0.2.87`, intermediate artifacts can be found at `/var/folders/20/_t6_h0cx4nl1qr58y1km9l740000gn/T/cargo-install4IYCmZ`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Error: Installing wasm-bindgen with cargo
Caused by: Installing wasm-bindgen with cargo
Caused by: failed to execute `cargo install`: exited with exit status: 101
  full command: "cargo" "install" "--force" "wasm-bindgen-cli" "--root" "/Users/jarrettye/Library/Caches/.wasm-pack/.wasm-bindgen-cargo-install-0.2.87" "--version" "0.2.87"

I solved the error by removing -C lto=fat.

My device is Mac M2.

Originally posted by @L-M-Sherlock in #812 (comment)

@antimora antimora added the bug Something isn't working label Oct 12, 2023
@antimora
Copy link
Collaborator Author

Fixed by #967

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant