-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Support linking crates in JIT #3331
Comments
Does the version of libuv we currently have in the tree have the dynamic linking features you need, or do we need to upgrade? If we use libuv, let's expose the dynamic linking bindings in std, then use them in rustc (vs linking rustllvm to uv). |
Although it turns out that the issue wasn't with LLVM's API but rather libdl, I'd suggest bumping up libuv, because the version in the tree doesn't support getting an error message (so if you wanted to have an API around it in |
I recently got a new x86_64 computer (my old laptop was x86). Seems to link crates fine now with this commit, but I'm getting an assertion about x86_64 addresses. Not sure if it's related, but I'll look into it. |
This is the assert it's tripping: http://llvm.org/docs/doxygen/html/RuntimeDyldELF_8cpp_source.html#l00221 Thanks to z0w0 |
LLVM's dynamic library API is giving hassles, so it might come down to using libuv's dynamic library API. @brson said it would be OK to use libuv, but preferably try and get LLVM's API working first.
The code that should work is commented out in
rustc/back/link.rs
andRustWrapper.cpp
if anyone wants to help debug what's going wrong.The text was updated successfully, but these errors were encountered: