runtime: Windows ARM64 build gets stuck at installer.tasks
I’m trying to build dotnet/runtime for windows on ARM64 with the following command line:
build clr+libs+libs.tests -a arm64 -c release
The build seems to be stuck at the installer.tasks step:
C:\Users\prgovi\Desktop\Work\runtime>build clr+libs+libs.tests -a arm64 -c release
Determining projects to restore...
Tool 'coverlet.console' (version '1.7.2') was restored. Available commands: coverlet
Tool 'dotnet-reportgenerator-globaltool' (version '4.5.8') was restored. Available commands: reportgenerator
Tool 'microsoft.dotnet.xharness.cli' (version '1.0.0-prerelease.20329.4') was restored. Available commands: xharness
Restore was successful.
All projects are up-to-date for restore.
Determining projects to restore...
All projects are up-to-date for restore.
installer.tasks -> C:\Users\prgovi\Desktop\Work\runtime\artifacts\bin\installer.tasks\Debug\netstandard2.0\installer.tasks.dll
**The build just gets stuck at this point**
You might need a device to repro this. Let me know if you want to RDP into mine to test/repro or want logs.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (18 by maintainers)
I’ve confirmed that the incoming SDK version update from @ViktorHofer (#41947) solves this particular problem.
The root cause of the hang is https://github.com/dotnet/runtime/issues/39701
It’s rearing its ugly head at this callstack:
The exception goes unhandled and the out-of-proc packet processing loop breaks.
Until the underlying FCall issue is fixed, please try setting the
MSBuildUseLegacyStringInternerenvironment variable to 1. This disables the code that callsGCHandle.set_Target, which should work around the collision.Here’s my repro as requested by @safern:
@eiriktsarpalis I think we can reduce the log and make it smaller if you do:
Here’s my output using
build.cmd clr+libs -a arm64 -rc release -v diaglog.txt