-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Unable to compile llvm bc emitted from rustc #1257
Comments
Here's the ir generated from the bc using |
I updated emcc, but am still failing during the same compilation step, but with a new error this time. |
Also, I'm running llvm 4.2 instead of 3.2, which may be the problem? |
I get a slightly different error with 3.2:
|
@int3 that's the same error. |
Ah right. I'd only looked at the first stack trace. |
So the problem is that we don't support pointers to separate address spaces. The current stack trace is due to the lexer not knowing how to parse the |
Do we know why rust generates code using multiple address spaces? |
@nickdesaulniers mentioned today that the use of multiple address spaces is being phased out, so I guess this is now a non-issue. |
Yes, it was part of the old gc. There's an open issue to remove it. |
Now that |
First issue I see is that this is
which means it has 64-bit pointers and ptrtoints and such, which we can't handle. We need LLVM to emit one of the targets we expect, preferably le32-unknown-nacl. |
This issue has been automatically marked as stale because there has been no activity in the past 2 years. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant. |
Using this example file, compile with:
rustc --emit-llvm hello_world.rs
to get llvm-ir in bitcode. Compile the bitcode withemcc hello_world.bc
. Trying to compile the emitted bitcode with emscripten fails and produces this stack trace.The text was updated successfully, but these errors were encountered: