-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
Front End build error: LLVM TargetMachine for triple: wasm32-unknown-unknown #576
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
Hey @trouperk thanks for the detailed report. 🙏 Do you see this kind of issue with the stable toolchain too? |
Thanks for the response @saschagrunert! I did some further troubleshooting yesterday to try to narrow down the issue.
I decided to test cargo-web & my wasm32 target.
With all that testing, I think that my wasm32-unknown-unknown target is good and I think that cargo-web is working. With having also tried sudo rm -rf webapp.rs and recloning without a change in result, I have two ideas where to look from here:
I will keep checking it out on my side... I lean towards #1 if no one else is having an issue. |
I have an update on this and a resolution. Short version... operator error on my side! The issue had to do with permissions for docker compared to make and rust. The first time through the build I entered commands almost verbatim through the build process, but had to use sudo for executing make run-app. After correcting the initial issue with the my existing psql server, I used sudo make all rather than regular make all. On my system, docker requires sudo (which is why I used it with make run-app which calls the container command), but I didn't have all the Rust toolchain set up for sudo which is why the wasm32 build failed when run as sudo even though the target was visible for regular rustc. Rookie mistake! Didn't even cross my mind at the time. I'm closing this issue. Thanks again for putting this repo together! |
Alright thanks for the feedback. If you see further improvements feel free to open up an issue or PR. :) |
First off, thanks for a the work in putting together this comprehensive repo! It is invaluable for a newbie, like me, in making progress!
I am running into an error that I can't seem to find an answer for.
Error Message when running sudo make all:
error: Could not create LLVM TargetMachine for triple: wasm32-unknown-unknown: No available targets are compatible with triple "wasm32-unknown-unknown"
thread 'main' panicked at 'Failed to grab the target configuration from rustc!', /home/trouperk/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-web-0.6.26/src/cargo_shim/mod.rs:178:13
note: Run with
RUST_BACKTRACE=1
environment variable to display a backtrace.Makefile:53: recipe for target 'build-frontend' failed
make: *** [build-frontend] Error 101
End Error Message
What has me confused on this issue is the following:
Machine and Version Info:
Beginning
Default host: x86_64-unknown-linux-gnu
rustup home: /home/trouperk/.rustup
installed toolchains
stable-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu (default)
installed targets for active toolchain
asmjs-unknown-emscripten
wasm32-unknown-emscripten
wasm32-unknown-unknown
x86_64-unknown-linux-gnu
active toolchain
nightly-x86_64-unknown-linux-gnu (default)
rustc 1.39.0-nightly (6ef275e6c 2019-09-24)
End
Please let me know if there is any additional information I should provide. And thanks in advance for any ideas/suggestions!
The text was updated successfully, but these errors were encountered: