-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Building CORE_ROOT is broken #107632
Comments
Tagging subscribers to this area: @hoyosjs |
I see some CI jobs use |
Those CI legs are separate SPMI related mostly, because they don't require crossgen2. This is passing in CI apparently. |
Trying to reproduce it on the latest runtime. Just yesterday, I was able to generate the CORE_ROOT just fine with a few days old clone and it worked, at least on Linux. |
Tried this locally using the exact instructions at https://github.com/dotnet/runtime/blob/main/docs/workflow/testing/coreclr/testing.md#building-the-core_root, can't repro. |
@BruceForstall This error means that your build does not have the live native AOT compiler that is needed by |
Was able to reproduce, but it seems to be an expected failure. The trigger to see the error is to not build the For reference, I used these commands to trigger the error: ./build.sh --subset host.native+clr.runtime+clr.corelib+clr.nativecorelib+clr.tools+clr.iltools+clr.alljits+clr.spmi+libs --configuration Release --runtimeConfiguration Checked
./src/tests/build.sh -x64 -checked -generatelayoutonly |
Yes, it is a new requirement after #106965. There is a separate discussion we can have on whether it is a good idea to depend on live aot toolchain or whether it would be better to depend on the aot toolchain from the SDK (#106965 (comment) and following comments). |
Ok, so there are two solutions:
Another solution might be using what Jan suggests above. |
I am hitting the same problem.
As much as I try to read into the messages above, I am not sure I can see what the correct solution is. I see that I could use For reference. The way that no longer works is:
I've tried also doing
it does not seem to help. |
src\tests\build.cmd x64 checked generatelayoutonly
fails withc:\gh\runtime\artifacts\bin\coreclr\windows.x64.Checked\build\Microsoft.NETCore.Native.Publish.targets(77,5): error : The PrivateSdkAssemblies ItemGroup is required for _ComputeAssembliesToCompileToNative [c:\gh\runtime\src\coreclr\tools\aot\crossgen2\crossgen2_publish.csproj]
full log:
Note that this is documented by https://github.com/dotnet/runtime/blob/main/docs/workflow/testing/coreclr/testing.md#building-the-core_root
This was possibly broken by #106965?
@am11 @jkotas
The text was updated successfully, but these errors were encountered: