-
Notifications
You must be signed in to change notification settings - Fork 732
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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)
DavidGOrtega
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working