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
[SR-11873] [Windows] building the toolchain fails #54288
Comments
@swift-ci create |
There are multiple issues; the first two are errors in corelibs-dispatch, so let's start there. First, linking the blocks runtime fails with unresolved symbols due to a 32/64 bit issue:
Then there is a calling convention issue:
Then there are several clang assertions:
|
Comment by Yassine BENABBAS (JIRA) On the clang assertions part, it says on the first to last line that we should submit a bug to https://bugs.llvm.org/. Should I report this problem to LLVM bugs ? |
I think that this is due to the fact that the "x86 Developer Command Prompt" was used rather than the "x64 Developer Command Prompt". I don't think that there is much we can do in this case. You are building for 64-bit with a compiler that only targets 32-bit code. |
If you are still running into this from the "x64 Developer Command Prompt" please re-open. |
Comment by Yassine BENABBAS (JIRA) Hi, thanks. I'll try again. |
This issue is reproducible when building libdispatch in an x86 Developer Command Prompt (SR-14314), and seems to stem from CMake adding a bunch of extra `LIBPATH` options to the linker command referencing the x64 toolchain (see linker command above). Any idea what this could be caused by? Building other CMake C++ projects using clang-cl in the same Developer Command Prompt works fine, so I don’t think it’s an issue with the compiler. |
Attachment: Download
Environment
OS: Windows 10.0.19030
Visual Studio 2019
Swift: 5.1.1
Additional Detail from JIRA
md5: 0d2c363ee19e991475ae07cfc20d0a77
relates to:
Issue Description:
Followed instructions to build swift on Windows: https://github.com/apple/swift/blob/master/docs/WindowsBuild.md#MSVC
Reached "building the toolchain step"
The command "ninja -C S:\b\toolchain" fails with errors (ninja and cmake outputs attached)
The text was updated successfully, but these errors were encountered: