-
Notifications
You must be signed in to change notification settings - Fork 13
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
*-pc-windows-msvc Rustc targets are not supported #1
Comments
What would it take to fix this? |
Well, I'm not really sure... Seems like it has something to do about linker during I don't have access to the platform, so I can't even debug problem origins. I think it worth creating an issue in Rust repo. |
I do have access to Windows (obviously) and I'd be willing to help debug and fix this, but I don't really know what to look for. |
Can you please try to build rustc from sources and check what symbols are being exported from This question would probably help us to find out when are they getting stripped (are they?) and adjust the build process. We are particularly looking for |
In my build the stage 0 build contains the LLVMContextDestroy symbol, but not LLVMContextCreate. That's a bit strange - if something is stripping symbols, why would it strip only one? I haven't been able to build stage 1 successfully yet (rust-lang/rust#53014). Will add more details when I can - I'm trying a clean rebuild without the |
The msvc linker exports precisely what it is told to export. Everything else is not exported, and if a symbol is not (transitively) referenced by something which is exported then it will be stripped entirely. If you're failing to find certain symbols in |
I think that means we would either have to land a patch to Rust explicitly exposing these functions in that crate (might be difficult, I doubt that's intended to be public API), or somehow make the llvm-proxy work without them. Is that possible? |
Shared LLVM lib exports a very limited amount of symbols for the targets.
tests fail with:
Unable to find symbol 'LLVMModuleCreateWithName' in the LLVM shared lib
ptx-linker fails with:
Unable to find symbol 'LLVMContextCreate' in the LLVM shared lib
If that can't be fixed, we should at least provide a meaningful error message and a hint to use
*-pc-windows-gnu
.The text was updated successfully, but these errors were encountered: