Repository navigation
Closed
Labels
ask-modeissue-type-tracking-externalTo track dependencies with other teams or reposrank20Rank: Priority/rank on a scale of (1..100)regressionstatus: This issue is a regression from a previous build or release
Milestone
Description
From @dagood on Friday, 19 April 2019 18:26:06
When the build attempts to crossgen these files, we get warnings:
Warning: Could not load type 'System.Runtime.CompilerServices.SuppressMergeCheckAttribute' from assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. while resolving 0x1000002 - System.Runtime.CompilerServices.SuppressMergeCheckAttribute.
Warning: Could not load type 'System.Runtime.CompilerServices.DecoratedNameAttribute' from assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. while resolving 0x1000044 - System.Runtime.CompilerServices.DecoratedNameAttribute.
Warning: Could not load type 'System.Runtime.CompilerServices.AssemblyAttributesGoHereM' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. while resolving 0x100006d - System.Runtime.CompilerServices.AssemblyAttributesGoHereM.
Warning: Could not load type 'System.Runtime.CompilerServices.AssemblyAttributesGoHere' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. while resolving 0x1000071 - System.Runtime.CompilerServices.AssemblyAttributesGoHere.
Warning: Could not load type 'System.Runtime.InteropServices.Marshal' from assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. while resolving 0x1000090 - System.Runtime.InteropServices.Marshal.
Warning: Could not load type 'System.Runtime.CompilerServices.SuppressMergeCheckAttribute' from assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. while resolving 0xa000001 - System.Runtime.CompilerServices.SuppressMergeCheckAttribute..ctor.
Warning: Could not load type 'System.Runtime.CompilerServices.DecoratedNameAttribute' from assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. while resolving 0xa000014 - System.Runtime.CompilerServices.DecoratedNameAttribute..ctor.
Warning: Could not load type 'System.Runtime.InteropServices.Marshal' from assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. while resolving 0xa0000c2 - System.Runtime.InteropServices.Marshal.GetExceptionPointers.
Native image wd-out/DirectWriteForwarder.dll generated successfully.
Warning: Could not load type 'System.Runtime.CompilerServices.DecoratedNameAttribute' from assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. while resolving 0x1000004 - System.Runtime.CompilerServices.DecoratedNameAttribute.
Warning: Could not load type 'System.Runtime.CompilerServices.IsVolatile' from assembly 'System.Runtime.CompilerServices.VisualC, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. while resolving 0x100000b - System.Runtime.CompilerServices.IsVolatile.
Warning: Could not load type 'System.Runtime.CompilerServices.AssemblyAttributesGoHere' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. while resolving 0x10000a7 - System.Runtime.CompilerServices.AssemblyAttributesGoHere.
Warning: Could not load type 'System.Runtime.CompilerServices.AssemblyAttributesGoHereM' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. while resolving 0x10000b9 - System.Runtime.CompilerServices.AssemblyAttributesGoHereM.
Warning: Could not load type 'System.Runtime.InteropServices.Marshal' from assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. while resolving 0x100013b - System.Runtime.InteropServices.Marshal.
Warning: Could not load type 'System.Runtime.CompilerServices.DecoratedNameAttribute' from assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. while resolving 0xa000002 - System.Runtime.CompilerServices.DecoratedNameAttribute..ctor.
Warning: Could not load type 'System.Runtime.InteropServices.Marshal' from assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. while resolving 0xa0002cc - System.Runtime.InteropServices.Marshal.GetExceptionPointers.
Native image wd-out/System.Printing.dll generated successfully.
Core-Setup seems to be missing some dependency input to crossgen. There's an ongoing email thread to identify what it would be.
The files are safe to use, but the warnings should be fixed.
Copied from original issue: dotnet/core-setup#5940
Metadata
Metadata
Assignees
Labels
ask-modeissue-type-tracking-externalTo track dependencies with other teams or reposrank20Rank: Priority/rank on a scale of (1..100)regressionstatus: This issue is a regression from a previous build or release
Activity
vatsan-madhavan commentedon May 1, 2019
From @ericstj on Friday, 19 April 2019 19:28:35
Actually all these look like they have the wrong AssemblyRef. That's a problem with the C++/CLI compiler. It looks to me like it's assuming a bunch of types are in the core library rather than resolving the type from references. /cc @tgani-msft
vatsan-madhavan commentedon May 1, 2019
From @vatsan-madhavan on Friday, 19 April 2019 20:52:09
/cc @dotnet/wpf-developers
vatsan-madhavan commentedon May 1, 2019
From @dleeapho on Wednesday, 01 May 2019 16:46:19
@vatsan-madhavan can you move this issue to your repo. Also @tgani-msft is there a compiler issue logged to track?
vatsan-madhavan commentedon May 4, 2019
/cc @okman523
vatsan-madhavan commentedon May 8, 2019
/cc @tgani-msft
vatsan-madhavan commentedon Jul 23, 2019
slip to P9
New C++ toolset with partial fixes for #634 (#1375)
vatsan-madhavan commentedon Aug 10, 2019
We will have a new toolset in a couple of days and should be able to update the builds. This is still likely doable in Preview 9.
vatsan-madhavan commentedon Aug 12, 2019
This is partially mitigated by #1604.
#1604 (comment)
vatsan-madhavan commentedon Aug 12, 2019
@sbomer, @fadimounir, if we still have these dangling type-refs, how does it negatively affect our ability to crossgen DirectWriteForwarder and System.Printing in .NET core 3.0 ?
/cc @rladuca, @tgani-msft
fadimounir commentedon Aug 13, 2019
@vatsan-madhavan crossgen will emit warnings on dangling typerefs, but won't fail to produce a R2R image. The affected code will be jitted at execution time, and could potentially throw exceptions at that point
[-]Fix WindowsDesktop crossgen warnings for DirectWriteForwarder and System.Printing[/-][+]Fix dangling type-refs in DirectWriteForwarder and System.Printing[/+]