-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Intermittent errors building CoreCLR on Windows ARM #104674
Comments
Tagging subscribers to this area: @hoyosjs |
I think this is likely the problem. You want to be using HostArm64 compilers for this, not the one running on 32-bit x86 emulator. Is there HostArm64 compiler on your machine?
|
Seems related to #96141 |
Yes, it's included by default in ARM installations of VS with the C++ tools.
What do you suggest? I tried following @tannergooding's recommendation from #76516 hardcoding
It appears to be trying to use arm64 but then is falling back to x86_arm64 again. I'm not entirely sure if this is caused by the |
I'm guessing this is the culprit? runtime/src/coreclr/build-runtime.cmd Lines 369 to 371 in f657459
|
After hardcoding |
The native arm64 hosted compilers did not exist in the early days of arm64 port. Feel free to submit PR. I am not worried about it breaking anything. |
Also, you can delete the arm handling next to it. We do not support Windows arm32 anymore. |
Side question: does VS open folder of It may also works just fine for cross compilation if CMake integration of VS is sane. I'm using open folder as my primary coreclr developing approach, and |
Yes. It works without any issue. |
Reopening since the issue still occurs when cross compiling on ARM. |
🙇 thanks for the first PR, @eiriktsarpalis. This has significantly improved my build speed. I noticed there is one other HostX86 tool being used, here. runtime/eng/native/configurecompiler.cmake Line 999 in ebaa0cd
I don't think this is the end of the world as this one tool does not account for much of the build time, but if it's easy to fix it would be nice. I am not sure if makes sense to just change |
Did a simple search on the entire repo and seems that this one is the last piece contains |
When building CoreCLR on Windows ARM I sometimes get a
Failed to create virtual memory for PCH
error. I'm using a Snapdragon X Elite 78-100 CPU with 32 GB RAM and building the repo inside a Dev Drive. A few examples:cc @jkotas
The text was updated successfully, but these errors were encountered: