-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
wasm32-wasip2 component with huge world fails to compile on wasm-component-ld step #133649
Comments
Tagging as |
Do you happen to have Otherwise what may be happening here is you're hitting windows command line length limits and something is getting silently truncated. I'm not certain of that, and I thought that it'd result in an error rather than silent truncation, but I've seen silent truncation in other systems before... |
Nope:
I also thought about truncates, but it does not make sense - I've increased number of worlds to 20000 and it still ends on Also, I just found something new - it's only for debug builds. Release builds fail with
|
Thanks for testing! Also sorry but to clarify I meant the length of the command line itself to invoke Also I think I understand what's going on now, I believe that the Rust compiler is automatically switching to Given all that what I believe is happening here is that you're running into windows command length limits. The only fix (which isn't great) is to perform your build in a path that's "closer" to the root (e.g. |
There are so many files in that command I thought that each world has it's own file. Also - moving project to |
Maybe? I'm not actually sure! How object files are generated is generally pretty far removed from high-level concepts like WIT worlds. There might be some correlation there but it's not necessarily directly related. In any case this is definitely a bug in |
I've tried fixing this in bytecodealliance/wasm-component-ld#53, and I'll work tomorrow on propagating that update to various places. |
…-ld, r=jieyouxu Update wasm-component-ld to 0.5.11 This pulls in an update that supports ``@`-files` used to pass arguments to linkers to fix invocations on Windows that are large. Closes rust-lang#133649
Rollup merge of rust-lang#133812 - alexcrichton:update-wasm-component-ld, r=jieyouxu Update wasm-component-ld to 0.5.11 This pulls in an update that supports ``@`-files` used to pass arguments to linkers to fix invocations on Windows that are large. Closes rust-lang#133649
Code
wit/world.wit
Click me
src/lib.rs
Cargo.toml
Meta
rustc --version --verbose
:Error output
Click me
Notes
The same code is compiling fine on cargo component:
The text was updated successfully, but these errors were encountered: