Skip to content

[wasm] Linker failure breaking rolling builds #70363

@radical

Description

@radical

Multiple browser builds are breaking with this, build.

The changes since the last working build - f1cd516...bab1a1f .

/_/src/libraries/System.Composition.Hosting/src/System/Composition/Hosting/Providers/ImportMany/ImportManyExportDescriptorProvider.cs(14,9): error IL1005: System.Composition.Hosting.Providers.ImportMany.ImportManyExportDescriptorProvider..cctor(): Error processing method 'System.Composition.Hosting.Providers.ImportMany.ImportManyExportDescriptorProvider.GetImportManyDescriptor<TElement>(CompositionContract, CompositionContract, DependencyAccessor)' in assembly 'System.Composition.Hosting.dll'. [D:\a\_work\1\s\src\libraries\System.Composition.Hosting\tests\System.Composition.Hosting.Tests.csproj]
##[error]/_/src/libraries/System.Composition.Hosting/src/System/Composition/Hosting/Providers/ImportMany/ImportManyExportDescriptorProvider.cs(14,9): error IL1005: (NETCORE_ENGINEERING_TELEMETRY=Build) System.Composition.Hosting.Providers.ImportMany.ImportManyExportDescriptorProvider..cctor(): Error processing method 'System.Composition.Hosting.Providers.ImportMany.ImportManyExportDescriptorProvider.GetImportManyDescriptor<TElement>(CompositionContract, CompositionContract, DependencyAccessor)' in assembly 'System.Composition.Hosting.dll'.
  Mono.Linker.LinkerFatalErrorException: /_/src/libraries/System.Composition.Hosting/src/System/Composition/Hosting/Providers/ImportMany/ImportManyExportDescriptorProvider.cs(14,9): error IL1005: System.Composition.Hosting.Providers.ImportMany.ImportManyExportDescriptorProvider..cctor(): Error processing method 'System.Composition.Hosting.Providers.ImportMany.ImportManyExportDescriptorProvider.GetImportManyDescriptor<TElement>(CompositionContract, CompositionContract, DependencyAccessor)' in assembly 'System.Composition.Hosting.dll'.
   ---> System.Collections.Generic.KeyNotFoundException: The given key 'System.Composition.Hosting.Providers.ImportMany.ImportManyExportDescriptorProvider/<>c__3`1' was not present in the dictionary.
     at Mono.Linker.CompilerGeneratedState.<PopulateCacheForType>g__MapGeneratedTypeTypeParameters|8_2(TypeDefinition generatedType, <>c__DisplayClass8_0&)
     at Mono.Linker.CompilerGeneratedState.<PopulateCacheForType>g__MapGeneratedTypeTypeParameters|8_2(TypeDefinition generatedType, <>c__DisplayClass8_0&)
     at Mono.Linker.CompilerGeneratedState.PopulateCacheForType(TypeDefinition type)
     at Mono.Linker.CompilerGeneratedState.GetGeneratedTypeAttributes(TypeDefinition generatedType)
     at ILLink.Shared.TrimAnalysis.FlowAnnotations.BuildTypeAnnotations(TypeDefinition type)
     at ILLink.Shared.TrimAnalysis.FlowAnnotations.GetAnnotations(TypeDefinition type)
     at ILLink.Shared.TrimAnalysis.FlowAnnotations.GetGenericParameterAnnotation(GenericParameter genericParameter)
     at Mono.Linker.Steps.MarkStep.MarkGenericArguments(IGenericInstance instance)
     at Mono.Linker.Steps.MarkStep.GetOriginalType(TypeReference type, DependencyInfo reason)
     at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference, DependencyInfo reason, Nullable`1 origin)
     at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
     at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method, DependencyInfo& reason, MessageOrigin& origin)
     at Mono.Linker.Steps.MarkStep.ProcessQueue()
     --- End of inner exception stack trace ---
     at Mono.Linker.Steps.MarkStep.ProcessQueue()
     at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
     at Mono.Linker.Steps.MarkStep.Process()
     at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
     at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
     at Mono.Linker.Pipeline.Process(LinkContext context)
     at Mono.Linker.Driver.Run(ILogger customLogger, Boolean throwOnFatalLinkerException)
D:\a\_work\1\s\.dotnet\sdk\7.0.100-preview.3.22179.4\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ILLink.targets(108,5): error NETSDK1144: Optimizing assemblies for size failed. Optimization can be disabled by setting the PublishTrimmed property to false. [D:\a\_work\1\s\src\libraries\System.Composition.Hosting\tests\System.Composition.Hosting.Tests.csproj]

cc @eerhardt @agocke @vitek-karas

Metadata

Metadata

Assignees

Labels

arch-wasmWebAssembly architecturearea-AssemblyLoader-coreclrblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'linkable-frameworkIssues associated with delivering a linker friendly framework

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions