-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
The hello world example doesn't build #197
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
Comments
Yes this is likely due to Webpack new wasm pipeline. I'll try when I'm desktop. |
@P-E-Meunier hm I just exected this locally and it seems to have worked. Can you gist the full error you were seeing as well as the |
Wait, the |
I'm not able to reproduce it. It's probably something on your side @P-E-Meunier. |
I'm a little surprised that cargo + npm/yarn are not able to make this reproducible. I'll try in a clean virtual machine with a more standard system and report back here to see where the differences are. |
Could you please share your hello_world_bg.wasm? |
It looks like:
Or a full version: https://gist.github.com/P-E-Meunier/76b6073c1b8ae59c3750476033d448fe |
Did you modify the example? The issue is that you have an I have:
Do you have an idea @alexcrichton? |
Old historical toolchains may have had that bug, but @P-E-Meunier you have a fully updated toolchain, right? And you're using the official binaries shipped by rust-lang/rust? |
Yes, according to It seems there's something wrong with the installer. What part of the toolchain can cause this? Where should I look if I wanted to fix this? |
The Rust compile rewrites imports after LLD has executed to fix the module that items are imported from, so if you're using the official binaries I'm not sure how this error would come up :( It does sound like a local toolchain isssue, though, I'm just not sure how! |
I'm gonna close this for now as it seemed like this was a local toolchain issue, but if it turns out to be a wasm-bindgen issue please let me know! |
Same issue. I'll post details if I can narrow it down. edit: Narrowed down. Using the Yew frontend library triggers it. Including it in Cargo.toml doesn't, but using |
@David-OConnor oh dear sounds bad! If you've got a reproduction feel free to file a new issue at any time! |
Looks like the info here could be relevant: rust-random/rand#478 (comment) |
I get the following error on a clone of this repository, when running
build.rs
inexamples/hello_world
:I'm using the latest Rust nightly.
The text was updated successfully, but these errors were encountered: