-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Crash when building the stdlib on arm64 Windows #70812
Comments
cc @compnerd |
@egorzhdan just to be clear, this is building Windows ARM64 on ARM64 right? I'm asking because I've been building the Windows ARM64 standard library on X64 and then using on ARM64. That is also what we are doing in CI currently, which does build the ARM64 standard library. |
Yes, I'm building a Windows arm64 standard library on a Windows arm64 machine. I don't have an X64 machine to try cross-compiling this out unfortunately. This particular build step was succeeding for me ~a month ago, but now it is failing consistently. |
I do the native windows arm64 build locally. I'll see if I can reproduce it. |
@egorzhdan no worries - just trying to figure out what exactly is different so we can hopefully isolate it more quickly. Fortunately @hjyamauchi has a ARM64 development environment to do the native side, I've been doing it mostly via cross-compilation. |
The way I build the whole toolchain with Before you run the ninja command, how do you run cmake? The build setup seems different from mine that I couldn't guess. If I run the command in
|
Thanks a lot @hjyamauchi! I'll try using So far I was building Swift with these CMake options:
|
@egorzhdan just FYI, the paths that you are using are emphatically discouraged. They are too long. The reason that the builds expect everything in |
@compnerd alright, thanks for the heads up! I worked around the crash by doing this:
It seems really strange that it is crashing inside I wasn't seeing this crash before because this code was merged fairly recently (96c87db). |
@egorzhdan I upgraded to Visual Studio 17.8.4, the current latest, and my build with |
Description
The compiler crashes while building the Swift stdlib on Windows. I only tested this on aarch64.
Reproduction
ninja swift-stdlib
Stack dump
Expected behavior
Should not crash
Environment
Windows 11 aarch64
Visual Studio Community 2022 17.8.3
C/C++ Compiler (C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostarm64/arm64/cl.exe) Version: 19.38.33133.0
No Swift toolchain installed.
UCRT 10.0.22621.0
CMake 3.27.8
Ninja 1.10.2
Additional information
No response
The text was updated successfully, but these errors were encountered: