You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
System.Private.CoreLib's fast up-to-date check is broken #68698
When building System.Runtime's src project, which depends on System.Private.CoreLib without making any changes to any of the assemblies, Systme.Private.CoreLib always incrementally builds:
3>FastUpToDate: Output 'C:\git\runtime5\artifacts\bin\coreclr\windows.x64.Debug\IL\System.Private.CoreLib.pdb' does not exist, not up-to-date. (System.Private.CoreLib)
The comment there mentions that they'd otherwise be overwritten. Are any outputs being updated in place? Moves and updates in place both make incremental build harder.
Yeah, each could be placed in a separate directory for its project, I think. I was just working around the NativeAOT/IL S.P.C collision. The broad view is having separate directories, instead of just for AOT
If I have some time I would be willing to send a PR to fix this. @jkotas@agocke just to clarify, did you mean that the pdb should be placed into the $(RuntimeBinDir)PDB / $(RuntimeBinDir)PDB/aotsdk directory or that the pdb belongs into the output directory of System.Private.CoreLib and that whatever tool requires the pdbs, should look into the project's individual output directories?
Activity
ViktorHofer commentedon Apr 29, 2022
@drewnoakes @davkean is it possible to diagnose why the fast up-to-date check fails for System.Private.CoreLib via some knobs?
ViktorHofer commentedon Apr 29, 2022
I already found the relevant documentation: https://github.com/dotnet/project-system/blob/main/docs/up-to-date-check.md#sdk-style-projects.
ViktorHofer commentedon Apr 29, 2022
Found the culprit. These two targets move the pdb from the build directory into a separate location and by that, invalidate the output:
runtime/src/coreclr/Directory.Build.targets
Lines 11 to 35 in 8656518
@trylek @agocke @jkotas does the pdb need to be moved or can it be copied instead?
danmoseley commentedon Apr 29, 2022
The comment there mentions that they'd otherwise be overwritten. Are any outputs being updated in place? Moves and updates in place both make incremental build harder.
jkotas commentedon Apr 29, 2022
I would be even better to place the .pdbs into the right directory so that they do not have to be moved or copied.
@agocke should be able to tell what can be done about this since he has investigated and changed this recently in #68063
agocke commentedon May 2, 2022
Yeah, each could be placed in a separate directory for its project, I think. I was just working around the NativeAOT/IL S.P.C collision. The broad view is having separate directories, instead of just for AOT
ViktorHofer commentedon May 2, 2022
If I have some time I would be willing to send a PR to fix this. @jkotas @agocke just to clarify, did you mean that the pdb should be placed into the
$(RuntimeBinDir)PDB/$(RuntimeBinDir)PDB/aotsdkdirectory or that the pdb belongs into the output directory of System.Private.CoreLib and that whatever tool requires the pdbs, should look into the project's individual output directories?Fix CoreLib fast up-to-date check
Fix CoreLib fast up-to-date check (#69240)