| Summary: | dev-dotnet/dotnet-sdk-7.0.105-r1 build failure: Generator 'JSExportGenerator' failed to initialize | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | ppw0 |
| Component: | Current packages | Assignee: | dotnet project <dotnet> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| See Also: | https://github.com/dotnet/runtime/issues/74944 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
build log
runtime.log emerge --info emerge --info '=dev-dotnet/dotnet-sdk-7.0.105-r1::gentoo' Build log for dev-dotnet/dotnet-sdk-7.0.105-r1 |
||
|
Description
ppw0
2023-10-08 07:34:26 UTC
Created attachment 872285 [details]
runtime.log
Created attachment 872286 [details]
emerge --info
I am observing the same issue, with dev-dotnet/dotnet-sdk-7.0.105-r1.
It does seem to build Microsoft.Interop.SourceGeneration.dll for .NET Standard 2.0:
```
Microsoft.Interop.SourceGeneration -> /var/tmp/portage/dev-dotnet/dotnet-sdk-7.0.105-r1/work/dotnet-sdk-7.0.105/src/runtime/artifacts/source-build/self/src/artifacts/bin/Microsoft.Interop.SourceGeneration/Release/netstandard2.0/Microsoft.Interop.SourceGeneration.dll
```
But later on in the build, it's unable to reference it:
```
CSC : warning CS8784: Generator 'JSExportGenerator' failed to initialize. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'FileNotFoundException' with message 'Could not load file or assembly 'Microsoft.Interop.SourceGeneration, Version=7.0.8.25901, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. [/var/tmp/portage/dev-dotnet/dotnet-sdk-7.0.105-r1/work/dotnet-sdk-7.0.105/src/runtime/artifacts/source-build/self/src/src/libraries/System.Net.WebSockets.Client/src/System.Net.WebSockets.Client.csproj::TargetFramework=net7.0-Browser]
CSC : warning CS8784: Generator 'JSImportGenerator' failed to initialize. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'FileNotFoundException' with message 'Could not load file or assembly 'Microsoft.Interop.SourceGeneration, Version=7.0.8.25901, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. [/var/tmp/portage/dev-dotnet/dotnet-sdk-7.0.105-r1/work/dotnet-sdk-7.0.105/src/runtime/artifacts/source-build/self/src/src/libraries/System.Net.WebSockets.Client/src/System.Net.WebSockets.Client.csproj::TargetFramework=net7.0-Browser]
```
Created attachment 878945 [details]
emerge --info '=dev-dotnet/dotnet-sdk-7.0.105-r1::gentoo'
Created attachment 878946 [details]
Build log for dev-dotnet/dotnet-sdk-7.0.105-r1
Hello Markus! Do you have the same issue with .NET 8.0? If so please pen a new bug report. From-source is gone from the ::gentoo tree due to security vulnerabilities. For your security please do not use the 7.0.105 version and update your projects that you control to 8.0. |