Skip to content
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

[Alpine Linux] Dotnet6 package #2782

Closed
ayakael opened this issue Dec 17, 2021 · 65 comments
Closed

[Alpine Linux] Dotnet6 package #2782

ayakael opened this issue Dec 17, 2021 · 65 comments

Comments

@ayakael
Copy link

ayakael commented Dec 17, 2021

I am currently working on an Alpine Linux dotnet6 package, and in the process of having packages merged for dotnet31 and dotnet5. As the build process is different for dotnet6 and above, I've been working on redesigning the APKBUILD.

Here is the repo where the work is being done: https://gitlab.alpinelinux.org/ayakael/aports/-/tree/testing/dotnet6

Patch notes

For issue page for dotnet31 and dotnet5 package, please see #2695

@omajid
Copy link
Member

omajid commented Jan 6, 2022

Nice!

I am one of the maintainers of .NET on Fedora and I definitely looking forward to more distributions adapting .NET!

As far as I am aware, there isn't any linux-musl-x64 Private.Source.Build.Artifacts file, unfortunately. You should be able to generate it manually, hopefully, by downloading the linux-musl-x64 versions of the linux-x64 nupkgs in Private.Source.Build.Artifacts. Something to watch out, though: some of the nupkgs - specially *.Intermediate.* packages - themselves contain other nupkgs, so you might want to do a recursive check for *linux-x64* binaries.

I wrote a quick and dirty script to find/download nuget package versions by name that you might find useful: https://gist.github.com/omajid/c04b6025de49d0b7b18ab4a7e789484e: nappo download package-name package-version

@ayakael
Copy link
Author

ayakael commented Jan 6, 2022

@omajid Oh very nice! Thanks! I saw how Fedora did x64 -> arm64 conversion of its Private.Source.Build.Artifacts, and figured that if all else fails that's how I'd implement that. I am wondering, though, how a local Private.Source.Build.Artifacts file can be built for proper N-1 => N builds. Whether I use linux-musl-x64 or alpine-3.x binaries, dotnet5 and dotnet6 still relies on those prebuilt binaries for building, which is not ideal.

@omajid
Copy link
Member

omajid commented Jan 6, 2022

Going from N-1 to N should be straightforward. Every build of .NET 6 should produce a artifacts/$RUNTIME_ID/Release/Private.SourceBuilt.Artifacts.*.tar.gz file. If you save it in the N-1 build (we do that in Fedora by packaging it up into -source-built-artifacts package), you can use it in the N build by placing it in the expected location (packages/archive/).

Fedora packages of .NET Core 3.1, .NET 5 and .NET 6 all use this approach.

@ayakael
Copy link
Author

ayakael commented Jan 6, 2022

Oh wicked! I'll get that subpackage going on all three versions.

@ayakael
Copy link
Author

ayakael commented Jan 18, 2022

Now back to dotnet6, I've implemented the proper artifacts file now with all linux-x64 nugets replaced linux-musl-x64 versions using your nappo.py utility. Archive gets successfully picked up in packages/archive. Unfortunately, source-build-reference-package is the first to be unhappy with this change:
Error:

  /var/build/dotnet6/testing/dotnet6/src/sources/src/source-build-reference-packages.897a9709eb370a92bce2391d77b03d06149cbb6c/artifacts/source-build/self/src/src/targetPacks/ILsrc/microsoft.aspnetcore.app.ref/3.1.2/Microsoft.AspNetCore.App.Ref.3.1.2.csproj : error NU1101: Unable to find package runtime.linux-x64.microsoft.netcore.ildasm. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/installer-6.0.101/sdk/6.0.101/NuGet.targets]

Indeed, SBRP doesn't know to look for runtime.linux-musl-x64.microsoft.netcore.ildasm. Anyway to help them in that regard?

@omajid
Copy link
Member

omajid commented Jan 18, 2022

Looks like source-build-reference-package has no understanding of linux-x64 vs linux-musl-x64 :(

I was able to build source-build-reference-packages standalone on alpine with this patch:

diff --git a/src/targetPacks/Directory.Build.targets b/src/targetPacks/Directory.Build.targets
index 3289635d..34f9af45 100644
--- a/src/targetPacks/Directory.Build.targets
+++ b/src/targetPacks/Directory.Build.targets
@@ -59,9 +59,19 @@
   </Target>
 
   <Target Name="GetILToolPackageReferences">
+    <Exec IgnoreExitCode="true" Command="ldd --version 2&gt;&amp;1 | grep -q musl">
+      <Output TaskParameter="ExitCode" PropertyName="OSPlatformIsMuslCheck" />
+    </Exec>
+
+    <PropertyGroup>
+      <OSPlatformIsMusl Condition="$(OSPlatformIsMuslCheck) == '0'">true</OSPlatformIsMusl>
+      <OSPlatformIsMusl Condition="$(OSPlatformIsMusl) == ''">false</OSPlatformIsMusl>
+    </PropertyGroup>
+
     <PropertyGroup>
       <_OSPlatform Condition="$([MSBuild]::IsOSPlatform('windows'))">win</_OSPlatform>
       <_OSPlatform Condition="$([MSBuild]::IsOSPlatform('linux'))">linux</_OSPlatform>
+      <_OSPlatform Condition="$([MSBuild]::IsOSPlatform('linux')) and '$(OSPlatformIsMusl)' == 'true'">linux-musl</_OSPlatform>
       <_OSPlatform Condition="$([MSBuild]::IsOSPlatform('osx'))">osx</_OSPlatform>
       <_OSPlatform Condition="$([MSBuild]::IsOSPlatform('freebsd'))">freebsd</_OSPlatform>
       <_OSPlatform Condition="$([MSBuild]::IsOSPlatform('netbsd'))">netbsd</_OSPlatform>

Could you apply this patch to your dotnet6 sources and try out building it?

@ayakael
Copy link
Author

ayakael commented Jan 18, 2022

That did it! Now it's command-line-api time to shine! Same error, I imagine it's also a matter of doing above change somewhere

/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Suggest/dotnet-suggest.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.linux-x64. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]

@ayakael
Copy link
Author

ayakael commented Jan 18, 2022

This ones not as obvious, command-line-api pulls source-build, which is where the bug occurs. It seems like it's not the only issue.

Missing packages:
Microsoft.NETCore.App.Runtime.$arch
Microsoft.AspNetCore.App.Runtime.$arch
Microsoft.NETCore.App.Host.$arch
system.reactive.core

Arch being=win-x64, win-x86, osx-x64, linux-x64.

Original Private.Sourcebuilt.Artifacts doesn't have any nupkgs for win-x64, win-x86, osx-x64, so I'm rather confused where source-build would usually pull these, and system.reactive.core is another question mark.

Full log:

  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.DragonFruit/System.CommandLine.DragonFruit.csproj : warning NU1603: System.CommandLine depends on Microsoft.CSharp (>= 4.4.1) but Microsoft.CSharp 4.4.1 was not found. An approximate best match of Microsoft.CSharp 4.7.0 was resolved. [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Hosting/System.CommandLine.Hosting.csproj : warning NU1603: System.CommandLine depends on Microsoft.CSharp (>= 4.4.1) but Microsoft.CSharp 4.4.1 was not found. An approximate best match of Microsoft.CSharp 4.7.0 was resolved. [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/samples/DragonFruit/DragonFruit.csproj : warning NU1603: System.CommandLine depends on Microsoft.CSharp (>= 4.4.1) but Microsoft.CSharp 4.4.1 was not found. An approximate best match of Microsoft.CSharp 4.7.0 was resolved. [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine/System.CommandLine.csproj : warning NU1603: System.CommandLine depends on Microsoft.CSharp (>= 4.4.1) but Microsoft.CSharp 4.4.1 was not found. An approximate best match of Microsoft.CSharp 4.7.0 was resolved. [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Rendering/System.CommandLine.Rendering.csproj : warning NU1603: System.CommandLine depends on Microsoft.CSharp (>= 4.4.1) but Microsoft.CSharp 4.4.1 was not found. An approximate best match of Microsoft.CSharp 4.7.0 was resolved. [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Hosting/System.CommandLine.Hosting.csproj : warning NU1603: System.CommandLine.Hosting depends on Microsoft.Extensions.Hosting (>= 2.2.0) but Microsoft.Extensions.Hosting 2.2.0 was not found. An approximate best match of Microsoft.Extensions.Hosting 6.0.0 was resolved. [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Hosting/System.CommandLine.Hosting.csproj : warning NU1603: System.CommandLine.Hosting depends on Microsoft.Extensions.Hosting (>= 3.1.5) but Microsoft.Extensions.Hosting 3.1.5 was not found. An approximate best match of Microsoft.Extensions.Hosting 6.0.0 was resolved. [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/samples/RenderingPlayground/RenderingPlayground.csproj : warning NU1603: System.CommandLine depends on Microsoft.CSharp (>= 4.4.1) but Microsoft.CSharp 4.4.1 was not found. An approximate best match of Microsoft.CSharp 4.7.0 was resolved. [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Suggest/dotnet-suggest.csproj : warning NU1603: System.CommandLine depends on Microsoft.CSharp (>= 4.4.1) but Microsoft.CSharp 4.4.1 was not found. An approximate best match of Microsoft.CSharp 4.7.0 was resolved. [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Benchmarks/System.CommandLine.Benchmarks.csproj : error NU1603: System.CommandLine depends on Microsoft.CSharp (>= 4.4.1) but Microsoft.CSharp 4.4.1 was not found. An approximate best match of Microsoft.CSharp 4.7.0 was resolved. [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/samples/RenderingPlayground/RenderingPlayground.csproj : error NU1101: Unable to find package system.reactive.core. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Benchmarks/System.CommandLine.Benchmarks.csproj : error NU1101: Unable to find package BenchmarkDotNet. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Benchmarks/System.CommandLine.Benchmarks.csproj : error NU1103: Unable to find a stable package Microsoft.CodeAnalysis.CSharp.Scripting with version (>= 3.5.0) [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Benchmarks/System.CommandLine.Benchmarks.csproj : error NU1103:   - Found 1 version(s) in previously-source-built [ Nearest version: 4.0.0-6.21519.19 ] [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Benchmarks/System.CommandLine.Benchmarks.csproj : error NU1103:   - Found 0 version(s) in source-built [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Benchmarks/System.CommandLine.Benchmarks.csproj : error NU1103:   - Found 0 version(s) in prebuilt [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Benchmarks/System.CommandLine.Benchmarks.csproj : error NU1103:   - Found 0 version(s) in reference-packages [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Suggest/dotnet-suggest.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.win-x64. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Suggest/dotnet-suggest.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.win-x86. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Suggest/dotnet-suggest.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.osx-x64. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Suggest/dotnet-suggest.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.linux-x64. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Suggest/dotnet-suggest.csproj : error NU1101: Unable to find package Microsoft.AspNetCore.App.Runtime.win-x64. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Suggest/dotnet-suggest.csproj : error NU1101: Unable to find package Microsoft.AspNetCore.App.Runtime.win-x86. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Suggest/dotnet-suggest.csproj : error NU1101: Unable to find package Microsoft.AspNetCore.App.Runtime.osx-x64. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Suggest/dotnet-suggest.csproj : error NU1101: Unable to find package Microsoft.AspNetCore.App.Runtime.linux-x64. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Suggest/dotnet-suggest.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.win-x64. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Suggest/dotnet-suggest.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.win-x86. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Suggest/dotnet-suggest.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.osx-x64. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/src/System.CommandLine.Suggest/dotnet-suggest.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.linux-x64. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/sources/src/command-line-api.82273cb56c83b589e8e5b63da0ac9745ffc6e105/artifacts/source-build/self/src/System.CommandLine.sln]
      9 Warning(s)
      16 Error(s)

@ayakael
Copy link
Author

ayakael commented Jan 18, 2022

Fixed issues relating to missing packages. Only issue is that those packages are rejected unless the exact version is provided. In my experience, that shouldn't matter as it'll simply give a warning that a different version was resolved. It is my understanding that when revolving is disabled, it is for stable builds. Any way to make command-line-api more lax in that regard?

@omajid
Copy link
Member

omajid commented Jan 18, 2022

I am not sure. Maybe @crummel, @lbussell or @MichaelSimons can help us out?

omajid referenced this issue in omajid/source-build-reference-packages Jan 18, 2022
Originally reported at https://github.com/dotnet/installer/issues/12859

Use the same logic as dotnet-isntall.sh to identify whether a system is
musl-based or not. For musl-based Linux systems, use `linux-musl` as the
platform name, which leads to better RID names.

Otherwise, we end up trying to use artifacts with an incorrect RID on
musl based systems.

In particular, we look for `runtime.linux-x64.microsoft.netcore.ildasm`
which doesn't work on musl-based systems. It's also not produced by
source-build builds, which makes building using a previous build of
source-build impossible.
omajid referenced this issue in omajid/source-build-reference-packages Jan 18, 2022
Originally reported at https://github.com/dotnet/installer/issues/12859

Use the same logic as dotnet-isntall.sh to identify whether a system is
musl-based or not. For musl-based Linux systems, use `linux-musl` as the
platform name, which leads to better RID names.

Otherwise, we end up trying to use artifacts with an incorrect RID on
musl based systems.

In particular, we look for `runtime.linux-x64.microsoft.netcore.ildasm`
which doesn't work on musl-based systems. It's also not produced by
source-build builds, which makes building using a previous build of
source-build impossible.
@ayakael
Copy link
Author

ayakael commented Jan 18, 2022

Fixed this issue with two tricks.

  1. Patching out the need for Microsoft.NETCore.App.Runtime and co of anything other than musl-x64
From f2e4487c7b8fd406e5ee69afaeb40c80f8ca0676 Mon Sep 17 00:00:00 2001
From: "build@apk-groulx" <build@apk-groulx.praxis>
Date: Tue, 18 Jan 2022 17:34:09 +0000
Subject: [PATCH 1/1] command-line-api_fix-musl-build

---
 src/System.CommandLine.Suggest/dotnet-suggest.csproj | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/System.CommandLine.Suggest/dotnet-suggest.csproj b/src/System.CommandLine.Suggest/dotnet-suggest.csproj
index ae97dfe6..276f0158 100644
--- a/src/System.CommandLine.Suggest/dotnet-suggest.csproj
+++ b/src/System.CommandLine.Suggest/dotnet-suggest.csproj
@@ -6,7 +6,7 @@
     <PackAsTool>true</PackAsTool>
     <PackageId>dotnet-suggest</PackageId>
     <ToolCommandName>dotnet-suggest</ToolCommandName>
-    <PackAsToolShimRuntimeIdentifiers>win-x64;win-x86;osx-x64;linux-x64</PackAsToolShimRuntimeIdentifiers>
+    <PackAsToolShimRuntimeIdentifiers>linux-musl-x64</PackAsToolShimRuntimeIdentifiers>
     <PackagedShimOutputRootDirectory>$(OutputPath)</PackagedShimOutputRootDirectory>
 
     <DotnetSuggestBuildNumber>.1</DotnetSuggestBuildNumber>
-- 
2.34.1
  1. Adding system.reactive.core.4.1.1.nupkg to artifacts.

That seemed to have fixed this issue. Evidently, this patch won't work with arm, but I'll cross that bridge when I have to.

@ayakael
Copy link
Author

ayakael commented Jan 18, 2022

Bon, un autre. This time with aspnet core:

  
  Build FAILED.
  
  /var/build/dotnet6/testing/dotnet6/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/self/src/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.linux-x64. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/installer-6.0.101/sdk/6.0.100/NuGet.targets]
  /var/build/dotnet6/testing/dotnet6/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/self/src/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Crossgen2.linux-x64. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/var/build/dotnet6/testing/dotnet6/src/installer-6.0.101/sdk/6.0.100/NuGet.targets]
      0 Warning(s)
      2 Error(s)

##vso[task.logissue type=error;sourcepath=/var/build/dotnet6/testing/dotnet6/src/sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets;linen/var/build/dotnet6/testing/dotnet6/src/sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets(194,5): error MSB3073: The command "/var/build/dotnet6/testing/dotnet6/src/installer-6.0.101//dotnet msbuild /m /nologo /clp:Summary /v:minimal /nr:false /warnaserror /p:TreatWarningsAsErrors=true /p:ContinuousIntegrationBuild=true /var/build/dotnet6/testing/dotnet6/src/sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj -p:RepoRoot=/var/build/dotnet6/testing/dotnet6/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/ /p:ArcadeBuildFromSource=true /p:CopyWipIntoInnerSourceBuildRepo=true /p:DotNetBuildOffline=true /p:CopySrcInsteadOfClone=true /p:DotNetPackageVersionPropsPath=/var/build/dotnet6/testing/dotnet6/src/sources/artifacts/obj/x64/Release/PackageVersions.props /p:AdditionalSourceBuiltNupkgCacheDir=/var/build/dotnet6/testing/dotnet6/src/sources/artifacts/obj/x64/Release/blob-feed/packages/ /p:ReferencePackageNupkgCacheDir=/var/build/dotnet6/testing/dotnet6/src/sources/packages/reference/packages/ /p:PreviouslySourceBuiltNupkgCacheDir=/usr/share/dotnet/artifacts/6.0.100/ /p:BuildNodeJs=false /p:PublishCompressedFilesPathPrefix=/var/build/dotnet6/testing/dotnet6/src/sources/artifacts/obj/x64/Release/blobs/aspnetcore/Runtime/ /p:MicrosoftNetFrameworkReferenceAssembliesVersion=1.0.0 /p:EnablePackageValidation=false /p:DotNetPackageVersionPropsPath=/var/build/dotnet6/testing/dotnet6/src/sources/artifacts/obj/x64/Release/PackageVersions.props -p:BuildManaged=true -p:Restore=true -p:Build=true -p:Pack=true -p:Test=false -p:TargetArchitecture=x64 -p:TargetOsName=linux -p:Configuration=Release /bl:/var/build/dotnet6/testing/dotnet6/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/log/Release/Build.binlog -logger:/var/build/dotnet6/testing/dotnet6/src/sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/net6.0/Microsoft.DotNet.ArcadeLogging.dll  /p:SourceBuildRuntimeIdentifier=linux-x64 /p:ArcadeInnerBuildFromSource=true /p:DotNetBuildFromSource=true /p:RepoRoot=/var/build/dotnet6/testing/dotnet6/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/self/src/ /p:ArtifactsDir=/var/build/dotnet6/testing/dotnet6/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/self/src/artifacts/ /bl:/var/build/dotnet6/testing/dotnet6/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/self/src/artifacts/sourcebuild.binlog /p:ContinuousIntegrationBuild=true /p:SourceBuildOutputDir=/var/build/dotnet6/testing/dotnet6/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/ /p:SourceBuiltBlobFeedDir= /p:EnableSourceControlManagerQueries=false /p:EnableSourceLink=false /p:DeterministicSourcePaths=false /p:DotNetBuildOffline=true /p:DotNetPackageVersionPropsPath=/var/build/dotnet6/testing/dotnet6/src/sources/artifacts/obj/x64/Release/PackageVersions.props" exited with code 1. [/var/build/dotnet6/testing/dotnet6/src/sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj]

This particular target file has logics in place for musl, it seems. Just maybe not the right logics. Investigating further

@ayakael
Copy link
Author

ayakael commented Jan 18, 2022

A note: I've excluded all linux-x64 and fedore33 nupkgs from artifacts, and replaced them with their musl counterparts. Idk how ill-advised that was, but I figured that non-musl binaries had no place in my build process, and would perhaps complicate debugging. Are there reasons to keep these, apart from crossgen use cases?

@ayakael
Copy link
Author

ayakael commented Jan 18, 2022

Well, that was easy! It turns out aspnetcore's build.sh has an --os-name argument where inserting linux-musl solves that particular issue. Thus modified repos/aspnetcore.proj injecting that build argument. Now to wait for the next failure, hopefully the end is near.

edit This had a downstream effect to installer, which looked for certain linux-x64 artifacts. Simple fix in repos/installer.proj by adjusting AspNetCoreSharedFxInstallerRid to linux-musl-$(Platform)

@ayakael
Copy link
Author

ayakael commented Jan 18, 2022

Another issue with installer: it's asking for microsoft.netcore.app.crossgen2.linux-x64 rather than its musl counterpart. Despite setting OSName to linux-musl for installer's build.sh, no dice.

Error

  /var/build/dotnet6/testing/dotnet6/src/installer-6.0.101/sdk/6.0.100/MSBuild.dll /nologo -logger:/var/build/dotnet6/testing/dotnet6/src/sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/net6.0/Microsoft.DotNet.ArcadeLogging.dll -maxcpucount /m -verbosity:m /v:minimal /v:minimal /bl:/var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/log/Release/Build.binlog /bl:/var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/artifacts/sourcebuild.binlog /clp:Summary /nr:false /p:TreatWarningsAsErrors=true /p:ContinuousIntegrationBuild=true /p:Configuration=Release /p:RepoRoot=/var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb// /p:Restore=true /p:Build=true /p:Rebuild=false /p:Test=false /p:Pack=true /p:IntegrationTest=false /p:PerformanceTest=false /p:Sign=false /p:Publish=true /p:ArcadeBuildFromSource=true /p:CopyWipIntoInnerSourceBuildRepo=true /p:DotNetBuildOffline=true /p:CopySrcInsteadOfClone=true /p:DotNetPackageVersionPropsPath=/var/build/dotnet6/testing/dotnet6/src/sources/artifacts/obj/x64/Release/PackageVersions.props /p:AdditionalSourceBuiltNupkgCacheDir=/var/build/dotnet6/testing/dotnet6/src/sources/artifacts/obj/x64/Release/blob-feed/packages/ /p:ReferencePackageNupkgCacheDir=/var/build/dotnet6/testing/dotnet6/src/sources/packages/reference/packages/ /p:PreviouslySourceBuiltNupkgCacheDir=/usr/share/dotnet/artifacts/6.0.100/ /p:Rid=alpine.3.15-x64 /p:NETCoreAppMaximumVersion=99.9 /p:OSName=alpine.3.15 /p:Rid=alpine.3.15-x64 /p:DOTNET_INSTALL_DIR=/var/build/dotnet6/testing/dotnet6/src/installer-6.0.101/ /p:AspNetCoreSharedFxInstallerRid=linux-musl-x64 /p:CoreSetupRid=alpine.3.15-x64 /p:PublicBaseURL=file:///var/build/dotnet6/testing/dotnet6/src/sources/artifacts/obj/x64/Release/blob-feed/assets/ /p:UsePortableLinuxSharedFramework=false /p:DotNetPackageVersionPropsPath=/var/build/dotnet6/testing/dotnet6/src/sources/artifacts/obj/x64/Release/PackageVersions.props /p:DotNetRestoreSourcePropsPath=/var/build/dotnet6/testing/dotnet6/src/sources/artifacts/obj/x64/Release/RestoreSources.props /p:DotNetBuildOffline=true /p:SkipBuildingInstallers=true /p:IncludeNuGetPackageArchive=false /p:IncludeAdditionalSharedFrameworks=false /p:IncludeSharedFrameworksForBackwardsCompatibilityTests=false /p:ArcadeInnerBuildFromSource=true /p:DotNetBuildFromSource=true /p:RepoRoot=/var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/ /p:ArtifactsDir=/var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/artifacts/ /p:ContinuousIntegrationBuild=true /p:SourceBuildOutputDir=/var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/ /p:SourceBuiltBlobFeedDir= /p:EnableSourceControlManagerQueries=false /p:EnableSourceLink=false /p:DeterministicSourcePaths=false /p:DotNetBuildOffline=true /p:DotNetPackageVersionPropsPath=/var/build/dotnet6/testing/dotnet6/src/sources/artifacts/obj/x64/Release/PackageVersions.props /warnaserror /var/build/dotnet6/testing/dotnet6/src/sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj
    Determining projects to restore...
    Restored /var/build/dotnet6/testing/dotnet6/src/sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/Tools.proj (in 135 ms).
  [SourceBuiltSdkResolver] Looking for SDK Microsoft.NET.Sdk. Detected config(s) in env: 'ARCADE' for 'Microsoft.DotNet.Arcade.Sdk/6.0.0-beta.21560.2' at '/var/build/dotnet6/testing/dotnet6/src/sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/'
  [SourceBuiltSdkResolver] Looking for SDK Microsoft.DotNet.Arcade.Sdk. Detected config(s) in env: 'ARCADE' for 'Microsoft.DotNet.Arcade.Sdk/6.0.0-beta.21560.2' at '/var/build/dotnet6/testing/dotnet6/src/sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/'
  [SourceBuiltSdkResolver] Overriding Microsoft.DotNet.Arcade.Sdk with 'ARCADE'
  [SourceBuiltSdkResolver] Looking for SDK Microsoft.NET.SDK.WorkloadAutoImportPropsLocator. Detected config(s) in env: 'ARCADE' for 'Microsoft.DotNet.Arcade.Sdk/6.0.0-beta.21560.2' at '/var/build/dotnet6/testing/dotnet6/src/sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/'
  [SourceBuiltSdkResolver] Looking for SDK Microsoft.NET.ILLink.Tasks. Detected config(s) in env: 'ARCADE' for 'Microsoft.DotNet.Arcade.Sdk/6.0.0-beta.21560.2' at '/var/build/dotnet6/testing/dotnet6/src/sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/'
  [SourceBuiltSdkResolver] Looking for SDK Microsoft.NET.SDK.WorkloadManifestTargetsLocator. Detected config(s) in env: 'ARCADE' for 'Microsoft.DotNet.Arcade.Sdk/6.0.0-beta.21560.2' at '/var/build/dotnet6/testing/dotnet6/src/sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/'
    Determining projects to restore...
    All projects are up-to-date for restore.
    Determining projects to restore...
    Restored /var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/src/core-sdk-tasks/core-sdk-tasks.csproj (in 300 ms).
    Microsoft.Dotnet.Sdk.Internal -> /var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/artifacts/bin/Microsoft.Dotnet.Sdk.Internal/Release/netstandard2.0/Microsoft.Dotnet.Sdk.Internal.dll
    core-sdk-tasks -> /var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/artifacts/bin/core-sdk-tasks/Release/net6.0/core-sdk-tasks.dll
    core-sdk-tasks -> /var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/artifacts/tasks/bin/core-sdk-tasks/Release/net6.0/core-sdk-tasks.dll
    redist -> /var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/artifacts/bin/redist/Release/net6.0/redist.dll
    Determining projects to restore...
    Restored /var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/src/redist/targets/DownloadPackage.csproj (in 105 ms).
    Determining projects to restore...
    Restored /var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/src/redist/targets/DownloadPackage.csproj (in 102 ms).
    Determining projects to restore...
    Restored /var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/src/redist/targets/DownloadPackage.csproj (in 155 ms).
    Determining projects to restore...
    Restored /var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/src/redist/targets/DownloadPackage.csproj (in 161 ms).
    Determining projects to restore...
    Restored /var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/artifacts/obj/redist/Release/net6.0/TemplatePackageDownloader/TemplatePackageDownloader.csproj (in 66 ms).
    Determining projects to restore...
    Restored /var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/src/redist/targets/LayoutTool.csproj (in 83 ms).
    Determining projects to restore...
    Restored /var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/src/redist/targets/LayoutTool.csproj (in 187 ms).
    Determining projects to restore...
  /var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/src/redist/targets/DownloadPackage.csproj : error NU1101: Unable to find package microsoft.netcore.app.crossgen2.linux-x64. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built
  ##vso[task.logissue type=error;sourcepath=/var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/src/redist/targets/DownloadPackage.csproj;linenumber=0;columnnumber=0;code=NU1101;](NETCORE_ENGINEERING_TELEMETRY=Build) Unable to find package microsoft.netcore.app.crossgen2.linux-x64. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built
    Failed to restore /var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/src/redist/targets/DownloadPackage.csproj (in 42 ms).
  
  Build FAILED.
  
  /var/build/dotnet6/testing/dotnet6/src/sources/src/installer.5a3c664c1a89bd1e0704348c733f9678e6917ceb/artifacts/source-build/self/src/src/redist/targets/DownloadPackage.csproj : error NU1101: Unable to find package microsoft.netcore.app.crossgen2.linux-x64. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built
      0 Warning(s)
      1 Error(s)

MichaelSimons referenced this issue in dotnet/source-build-reference-packages Jan 19, 2022
Originally reported at https://github.com/dotnet/installer/issues/12859

Use the same logic as dotnet-isntall.sh to identify whether a system is
musl-based or not. For musl-based Linux systems, use `linux-musl` as the
platform name, which leads to better RID names.

Otherwise, we end up trying to use artifacts with an incorrect RID on
musl based systems.

In particular, we look for `runtime.linux-x64.microsoft.netcore.ildasm`
which doesn't work on musl-based systems. It's also not produced by
source-build builds, which makes building using a previous build of
source-build impossible.
@ayakael
Copy link
Author

ayakael commented Jan 19, 2022

Well, terrific news! Found a fix for above error and build is complete. Installer had a few issues, here is the prelim patch that I've developped:

From aee338a0be16ba360a961aa56a29770d10c6ea46 Mon Sep 17 00:00:00 2001
From: "build@apk-groulx" <build@apk-groulx.praxis>
Date: Wed, 19 Jan 2022 15:52:52 +0000
Subject: [PATCH 1/1] installer_musl-build-fix

---
 build.sh                                              | 2 +-
 src/SourceBuild/tarball/content/Directory.Build.props | 2 +-
 src/redist/targets/Crossgen.targets                   | 2 +-
 src/redist/targets/GenerateLayout.targets             | 1 +
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/build.sh b/build.sh
index 594a355fa..ae575963a 100755
--- a/build.sh
+++ b/build.sh
@@ -55,5 +55,5 @@ if [ ! -z "$BUILD_IN_DOCKER" ]; then
 else
     # Run under sudo so we can set ulimit
     # See https://github.com/dotnet/core-eng/issues/14808
-    sudo -E $DIR/run-build.sh $args
+    $DIR/run-build.sh $args
 fi
diff --git a/src/SourceBuild/tarball/content/Directory.Build.props b/src/SourceBuild/tarball/content/Directory.Build.props
index 51f8e3c5a..2661667b5 100644
--- a/src/SourceBuild/tarball/content/Directory.Build.props
+++ b/src/SourceBuild/tarball/content/Directory.Build.props
@@ -190,7 +190,7 @@
   <PropertyGroup Condition="'$(PortableBuild)' == 'true'">
     <TargetRid Condition="'$(TargetOS)' == 'FreeBSD'">freebsd-$(Platform)</TargetRid>
     <TargetRid Condition="'$(TargetOS)' == 'OSX'">osx-$(Platform)</TargetRid>
-    <TargetRid Condition="'$(TargetOS)' == 'Linux'">linux-$(Platform)</TargetRid>
+    <TargetRid Condition="'$(TargetOS)' == 'Linux'">linux-musl-$(Platform)</TargetRid>
     <TargetRid Condition="'$(TargetOS)' == 'Windows_NT'">win-$(Platform)</TargetRid>
   </PropertyGroup>
 
diff --git a/src/redist/targets/Crossgen.targets b/src/redist/targets/Crossgen.targets
index 8949af132..afd2fa49c 100644
--- a/src/redist/targets/Crossgen.targets
+++ b/src/redist/targets/Crossgen.targets
@@ -6,7 +6,7 @@
     
     <PropertyGroup>
       <RuntimeNETCoreAppPackageName>microsoft.netcore.app.runtime.$(SharedFrameworkRid)</RuntimeNETCoreAppPackageName>
-      <RuntimeNETCrossgenPackageName>microsoft.netcore.app.crossgen2.$(HostOSName)-$(BuildArchitecture)</RuntimeNETCrossgenPackageName>
+      <RuntimeNETCrossgenPackageName>microsoft.netcore.app.crossgen2.$(SharedFrameworkRid)</RuntimeNETCrossgenPackageName>
       <CrossgenPath>$(NuGetPackageRoot)/$(RuntimeNETCrossgenPackageName)/$(MicrosoftNETCoreAppRuntimePackageVersion)/tools/crossgen2$(ExeExtension)</CrossgenPath>
       <!-- When ingesting stable pgo instrumented binaries, the shared framework will be a non-stable version,
            as will the archive file names themselves. -->
diff --git a/src/redist/targets/GenerateLayout.targets b/src/redist/targets/GenerateLayout.targets
index 3917efa60..3746e9c10 100644
--- a/src/redist/targets/GenerateLayout.targets
+++ b/src/redist/targets/GenerateLayout.targets
@@ -95,6 +95,7 @@
       <DownloadedAspNetTargetingPackInstallerFileName Condition=" '$(InstallerExtension)' == '.msi' ">aspnetcore-targeting-pack-$(MicrosoftAspNetCoreAppRefInternalPackageVersion)-$(AspNetCoreSharedFxInstallerRid)$(InstallerExtension)</DownloadedAspNetTargetingPackInstallerFileName>
       <DownloadedAspNetCoreV2ModuleInstallerFileName Condition=" '$(InstallerExtension)' == '.msi' ">aspnetcoremodule_$(Architecture)_en_v2_$(MicrosoftAspNetCoreAppRuntimePackageVersion)$(InstallerExtension)</DownloadedAspNetCoreV2ModuleInstallerFileName>
       <AspNetTargetingPackArchiveFileName>aspnetcore-targeting-pack-$(MicrosoftAspNetCoreAppRefPackageVersion)$(ArchiveExtension)</AspNetTargetingPackArchiveFileName>
+      <MicrosoftAspNetCoreAppRuntimePackageVersion>$(MicrosoftAspNetCoreAppRuntimewinx64PackageVersion)</MicrosoftAspNetCoreAppRuntimePackageVersion>
       <AspNetCoreSharedFxArchiveFileName>aspnetcore-runtime-internal-$(MicrosoftAspNetCoreAppRuntimePackageVersion)-$(AspNetCoreSharedFxArchiveRid)$(ArchiveExtension)</AspNetCoreSharedFxArchiveFileName>
 
       <!-- Used to detect if ASP.NET Core is built against the same version of Microsoft.NETCore.App. -->
-- 
2.34.1

I'm not sure if linux-musl-$(Platform) is stricly necessary. I'm gonna do more tests, and if so create a different TargetRid condition before creating a PR with installer (and indeed sudo is removed for my use-case, shouldn't be in final PR)

MichaelSimons referenced this issue in dotnet/source-build-reference-packages Jan 20, 2022
Originally reported at https://github.com/dotnet/installer/issues/12859

Use the same logic as dotnet-isntall.sh to identify whether a system is
musl-based or not. For musl-based Linux systems, use `linux-musl` as the
platform name, which leads to better RID names.

Otherwise, we end up trying to use artifacts with an incorrect RID on
musl based systems.

In particular, we look for `runtime.linux-x64.microsoft.netcore.ildasm`
which doesn't work on musl-based systems. It's also not produced by
source-build builds, which makes building using a previous build of
source-build impossible.
@ayakael
Copy link
Author

ayakael commented Jan 21, 2022

New issue, when rebuilding with that first successful, rebuild fails with following error:

    Restored /var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Bitbucket.Git/Microsoft.SourceLink.Bitbucket.Git.csproj (in 1.03 sec).
  /var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj : error NU1102: Unable to find package System.Runtime.CompilerServices.Unsafe with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/SourceLink.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj : error NU1102:   - Found 7 version(s) in previously-source-built [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/SourceLink.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj : error NU1102:   - Found 7 version(s) in reference-packages [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/SourceLink.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/SourceLink.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/SourceLink.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Runtime.CompilerServices.Unsafe with version (>= 6.0.0)%0A  - Found 7 version(s) in previously-source-built [ Nearest version: 5.0.0 %5D%0A  - Found 7 version(s) in reference-packages [ Nearest version: 5.0.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj : error NU1102: Unable to find package System.Text.Encodings.Web with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/SourceLink.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj : error NU1102:   - Found 4 version(s) in previously-source-built [ Nearest version: 5.0.1 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/SourceLink.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj : error NU1102:   - Found 4 version(s) in reference-packages [ Nearest version: 5.0.1 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/SourceLink.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/SourceLink.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/SourceLink.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Text.Encodings.Web with version (>= 6.0.0)%0A  - Found 4 version(s) in previously-source-built [ Nearest version: 5.0.1 %5D%0A  - Found 4 version(s) in reference-packages [ Nearest version: 5.0.1 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj : error NU1102: Unable to find package Microsoft.Bcl.AsyncInterfaces with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/SourceLink.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj : error NU1102:   - Found 3 version(s) in previously-source-built [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/SourceLink.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj : error NU1102:   - Found 3 version(s) in reference-packages [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/SourceLink.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/SourceLink.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/SourceLink.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package Microsoft.Bcl.AsyncInterfaces with version (>= 6.0.0)%0A  - Found 3 version(s) in previously-source-built [ Nearest version: 5.0.0 %5D%0A  - Found 3 version(s) in reference-packages [ Nearest version: 5.0.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
    Failed to restore /var/build/aports/dotnet6/dotnet6/src/sources/src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/src/src/SourceLink.Tools/Microsoft.SourceLink.Tools.Package.csproj (in 1.13 sec).

edit

Modifiying src/sourcelink.8031e5220baf2acad991e661d8308b783d2acf3e/artifacts/source-build/self/package-cache/system.text.json/6.0.1/system.text.json.nuspec with actual version fixed this - no idea why this is an issue now.

@ayakael
Copy link
Author

ayakael commented Jan 21, 2022

Well...

 /var/build/aports/dotnet6/dotnet6/src/installer-6.0.101/sdk/6.0.101/MSBuild.dll /nologo -logger:/var/build/aports/dotnet6/dotnet6/src/sources/packages/restored/ArcadeBootstrapPackage/microsoft.dotnet.arcade.sdk/6.0.0-beta.21560.2/tools/net6.0/Microsoft.DotNet.ArcadeLogging.dll -maxcpucount /m -verbosity:m /v:minimal /v:minimal /bl:/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/log/Release/Build.binlog /bl:/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/artifacts/sourcebuild.binlog /clp:Summary /nr:false /p:TreatWarningsAsErrors=false /p:ContinuousIntegrationBuild=true /p:Configuration=Release /p:RepoRoot=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86// /p:Restore=true /p:Build=true /p:Rebuild=false /p:Test=false /p:Pack=true /p:IntegrationTest=false /p:PerformanceTest=false /p:Sign=false /p:Publish=true /p:ArcadeBuildFromSource=true /p:CopyWipIntoInnerSourceBuildRepo=true /p:DotNetBuildOffline=true /p:CopySrcInsteadOfClone=true /p:DotNetPackageVersionPropsPath=/var/build/aports/dotnet6/dotnet6/src/sources/artifacts/obj/x64/Release/PackageVersions.props /p:AdditionalSourceBuiltNupkgCacheDir=/var/build/aports/dotnet6/dotnet6/src/sources/artifacts/obj/x64/Release/blob-feed/packages/ /p:ReferencePackageNupkgCacheDir=/var/build/aports/dotnet6/dotnet6/src/sources/packages/reference/packages/ /p:PreviouslySourceBuiltNupkgCacheDir=/usr/share/dotnet/artifacts/6.0.101/ /p:DotNetPackageVersionPropsPath=/var/build/aports/dotnet6/dotnet6/src/sources/artifacts/obj/x64/Release/PackageVersions.props /p:DotNetRestoreSourcePropsPath=/var/build/aports/dotnet6/dotnet6/src/sources/artifacts/obj/x64/Release/RestoreSources.props /p:DotNetBuildOffline=true /p:ArcadeInnerBuildFromSource=true /p:DotNetBuildFromSource=true /p:RepoRoot=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/ /p:ArtifactsDir=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/artifacts/ /p:ContinuousIntegrationBuild=true /p:SourceBuildOutputDir=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/ /p:SourceBuiltBlobFeedDir= /p:EnableSourceControlManagerQueries=false /p:EnableSourceLink=false /p:DeterministicSourcePaths=false /p:DotNetBuildOffline=true /p:DotNetPackageVersionPropsPath=/var/build/aports/dotnet6/dotnet6/src/sources/artifacts/obj/x64/Release/PackageVersions.props /var/build/aports/dotnet6/dotnet6/src/sources/packages/restored/ArcadeBootstrapPackage/microsoft.dotnet.arcade.sdk/6.0.0-beta.21560.2/tools/Build.proj
    Determining projects to restore...
    Restored /var/build/aports/dotnet6/dotnet6/src/sources/packages/restored/ArcadeBootstrapPackage/microsoft.dotnet.arcade.sdk/6.0.0-beta.21560.2/tools/Tools.proj (in 143 ms).
  [SourceBuiltSdkResolver] Looking for SDK Microsoft.NET.Sdk. Detected config(s) in env: 'ARCADE' for 'Microsoft.DotNet.Arcade.Sdk/6.0.0-beta.21560.2' at '/var/build/aports/dotnet6/dotnet6/src/sources/packages/restored/ArcadeBootstrapPackage/microsoft.dotnet.arcade.sdk/6.0.0-beta.21560.2/'
  [SourceBuiltSdkResolver] Looking for SDK Microsoft.DotNet.Arcade.Sdk. Detected config(s) in env: 'ARCADE' for 'Microsoft.DotNet.Arcade.Sdk/6.0.0-beta.21560.2' at '/var/build/aports/dotnet6/dotnet6/src/sources/packages/restored/ArcadeBootstrapPackage/microsoft.dotnet.arcade.sdk/6.0.0-beta.21560.2/'
  [SourceBuiltSdkResolver] Overriding Microsoft.DotNet.Arcade.Sdk with 'ARCADE'
  [SourceBuiltSdkResolver] Looking for SDK Microsoft.NET.SDK.WorkloadAutoImportPropsLocator. Detected config(s) in env: 'ARCADE' for 'Microsoft.DotNet.Arcade.Sdk/6.0.0-beta.21560.2' at '/var/build/aports/dotnet6/dotnet6/src/sources/packages/restored/ArcadeBootstrapPackage/microsoft.dotnet.arcade.sdk/6.0.0-beta.21560.2/'
  [SourceBuiltSdkResolver] Looking for SDK Microsoft.NET.ILLink.Tasks. Detected config(s) in env: 'ARCADE' for 'Microsoft.DotNet.Arcade.Sdk/6.0.0-beta.21560.2' at '/var/build/aports/dotnet6/dotnet6/src/sources/packages/restored/ArcadeBootstrapPackage/microsoft.dotnet.arcade.sdk/6.0.0-beta.21560.2/'
  [SourceBuiltSdkResolver] Looking for SDK Microsoft.NET.SDK.WorkloadManifestTargetsLocator. Detected config(s) in env: 'ARCADE' for 'Microsoft.DotNet.Arcade.Sdk/6.0.0-beta.21560.2' at '/var/build/aports/dotnet6/dotnet6/src/sources/packages/restored/ArcadeBootstrapPackage/microsoft.dotnet.arcade.sdk/6.0.0-beta.21560.2/'
    Determining projects to restore...
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk/src/Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk.csproj : error NU1102: Unable to find package System.Resources.Extensions with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk/src/Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk.csproj : error NU1102:   - Found 1 version(s) in previously-source-built [ Nearest version: 4.6.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk/src/Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk.csproj : error NU1102:   - Found 1 version(s) in reference-packages [ Nearest version: 4.6.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk/src/Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk/src/Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk/src/Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Resources.Extensions with version (>= 6.0.0)%0A  - Found 1 version(s) in previously-source-built [ Nearest version: 4.6.0 %5D%0A  - Found 1 version(s) in reference-packages [ Nearest version: 4.6.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Installers/Microsoft.DotNet.Build.Tasks.Installers.csproj : error NU1102: Unable to find package System.Resources.Extensions with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Installers/Microsoft.DotNet.Build.Tasks.Installers.csproj : error NU1102:   - Found 1 version(s) in previously-source-built [ Nearest version: 4.6.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Installers/Microsoft.DotNet.Build.Tasks.Installers.csproj : error NU1102:   - Found 1 version(s) in reference-packages [ Nearest version: 4.6.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Installers/Microsoft.DotNet.Build.Tasks.Installers.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Installers/Microsoft.DotNet.Build.Tasks.Installers.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Installers/Microsoft.DotNet.Build.Tasks.Installers.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Resources.Extensions with version (>= 6.0.0)%0A  - Found 1 version(s) in previously-source-built [ Nearest version: 4.6.0 %5D%0A  - Found 1 version(s) in reference-packages [ Nearest version: 4.6.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.SourceBuild/tasks/Microsoft.DotNet.SourceBuild.Tasks.csproj : error NU1102: Unable to find package System.Resources.Extensions with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.SourceBuild/tasks/Microsoft.DotNet.SourceBuild.Tasks.csproj : error NU1102:   - Found 1 version(s) in previously-source-built [ Nearest version: 4.6.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.SourceBuild/tasks/Microsoft.DotNet.SourceBuild.Tasks.csproj : error NU1102:   - Found 1 version(s) in reference-packages [ Nearest version: 4.6.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.SourceBuild/tasks/Microsoft.DotNet.SourceBuild.Tasks.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.SourceBuild/tasks/Microsoft.DotNet.SourceBuild.Tasks.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.SourceBuild/tasks/Microsoft.DotNet.SourceBuild.Tasks.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Resources.Extensions with version (>= 6.0.0)%0A  - Found 1 version(s) in previously-source-built [ Nearest version: 4.6.0 %5D%0A  - Found 1 version(s) in reference-packages [ Nearest version: 4.6.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj : error NU1102: Unable to find package System.Runtime.CompilerServices.Unsafe with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj : error NU1102:   - Found 7 version(s) in previously-source-built [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj : error NU1102:   - Found 7 version(s) in reference-packages [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Runtime.CompilerServices.Unsafe with version (>= 6.0.0)%0A  - Found 7 version(s) in previously-source-built [ Nearest version: 5.0.0 %5D%0A  - Found 7 version(s) in reference-packages [ Nearest version: 5.0.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj : error NU1102: Unable to find package System.Resources.Extensions with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj : error NU1102:   - Found 1 version(s) in previously-source-built [ Nearest version: 4.6.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj : error NU1102:   - Found 1 version(s) in reference-packages [ Nearest version: 4.6.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Resources.Extensions with version (>= 6.0.0)%0A  - Found 1 version(s) in previously-source-built [ Nearest version: 4.6.0 %5D%0A  - Found 1 version(s) in reference-packages [ Nearest version: 4.6.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj : error NU1102: Unable to find package System.Text.Encoding.CodePages with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj : error NU1102:   - Found 5 version(s) in previously-source-built [ Nearest version: 4.7.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj : error NU1102:   - Found 5 version(s) in reference-packages [ Nearest version: 4.7.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Text.Encoding.CodePages with version (>= 6.0.0)%0A  - Found 5 version(s) in previously-source-built [ Nearest version: 4.7.0 %5D%0A  - Found 5 version(s) in reference-packages [ Nearest version: 4.7.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj : error NU1102: Unable to find package System.Runtime.CompilerServices.Unsafe with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj : error NU1102:   - Found 7 version(s) in previously-source-built [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj : error NU1102:   - Found 7 version(s) in reference-packages [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Runtime.CompilerServices.Unsafe with version (>= 6.0.0)%0A  - Found 7 version(s) in previously-source-built [ Nearest version: 5.0.0 %5D%0A  - Found 7 version(s) in reference-packages [ Nearest version: 5.0.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj : error NU1102: Unable to find package System.Text.Encodings.Web with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj : error NU1102:   - Found 4 version(s) in previously-source-built [ Nearest version: 5.0.1 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj : error NU1102:   - Found 4 version(s) in reference-packages [ Nearest version: 5.0.1 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Text.Encodings.Web with version (>= 6.0.0)%0A  - Found 4 version(s) in previously-source-built [ Nearest version: 5.0.1 %5D%0A  - Found 4 version(s) in reference-packages [ Nearest version: 5.0.1 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102: Unable to find package System.Resources.Extensions with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102:   - Found 1 version(s) in previously-source-built [ Nearest version: 4.6.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102:   - Found 1 version(s) in reference-packages [ Nearest version: 4.6.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Resources.Extensions with version (>= 6.0.0)%0A  - Found 1 version(s) in previously-source-built [ Nearest version: 4.6.0 %5D%0A  - Found 1 version(s) in reference-packages [ Nearest version: 4.6.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102: Unable to find package System.Collections.Immutable with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102:   - Found 9 version(s) in previously-source-built [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102:   - Found 9 version(s) in reference-packages [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Collections.Immutable with version (>= 6.0.0)%0A  - Found 9 version(s) in previously-source-built [ Nearest version: 5.0.0 %5D%0A  - Found 9 version(s) in reference-packages [ Nearest version: 5.0.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102: Unable to find package System.Runtime.CompilerServices.Unsafe with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102:   - Found 7 version(s) in previously-source-built [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102:   - Found 7 version(s) in reference-packages [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Runtime.CompilerServices.Unsafe with version (>= 6.0.0)%0A  - Found 7 version(s) in previously-source-built [ Nearest version: 5.0.0 %5D%0A  - Found 7 version(s) in reference-packages [ Nearest version: 5.0.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102: Unable to find package System.Text.Encoding.CodePages with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102:   - Found 5 version(s) in previously-source-built [ Nearest version: 4.7.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102:   - Found 5 version(s) in reference-packages [ Nearest version: 4.7.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Text.Encoding.CodePages with version (>= 6.0.0)%0A  - Found 5 version(s) in previously-source-built [ Nearest version: 4.7.0 %5D%0A  - Found 5 version(s) in reference-packages [ Nearest version: 4.7.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj : error NU1102: Unable to find package System.Resources.Extensions with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj : error NU1102:   - Found 1 version(s) in previously-source-built [ Nearest version: 4.6.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj : error NU1102:   - Found 1 version(s) in reference-packages [ Nearest version: 4.6.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Resources.Extensions with version (>= 6.0.0)%0A  - Found 1 version(s) in previously-source-built [ Nearest version: 4.6.0 %5D%0A  - Found 1 version(s) in reference-packages [ Nearest version: 4.6.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj : error NU1102: Unable to find package System.Runtime.CompilerServices.Unsafe with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj : error NU1102:   - Found 7 version(s) in previously-source-built [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj : error NU1102:   - Found 7 version(s) in reference-packages [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Runtime.CompilerServices.Unsafe with version (>= 6.0.0)%0A  - Found 7 version(s) in previously-source-built [ Nearest version: 5.0.0 %5D%0A  - Found 7 version(s) in reference-packages [ Nearest version: 5.0.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj : error NU1102: Unable to find package System.Text.Encodings.Web with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj : error NU1102:   - Found 4 version(s) in previously-source-built [ Nearest version: 5.0.1 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj : error NU1102:   - Found 4 version(s) in reference-packages [ Nearest version: 5.0.1 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Text.Encodings.Web with version (>= 6.0.0)%0A  - Found 4 version(s) in previously-source-built [ Nearest version: 5.0.1 %5D%0A  - Found 4 version(s) in reference-packages [ Nearest version: 5.0.1 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102: Unable to find package System.Resources.Extensions with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 1 version(s) in previously-source-built [ Nearest version: 4.6.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 1 version(s) in reference-packages [ Nearest version: 4.6.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Resources.Extensions with version (>= 6.0.0)%0A  - Found 1 version(s) in previously-source-built [ Nearest version: 4.6.0 %5D%0A  - Found 1 version(s) in reference-packages [ Nearest version: 4.6.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102: Unable to find package System.Collections.Immutable with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 9 version(s) in previously-source-built [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 9 version(s) in reference-packages [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Collections.Immutable with version (>= 6.0.0)%0A  - Found 9 version(s) in previously-source-built [ Nearest version: 5.0.0 %5D%0A  - Found 9 version(s) in reference-packages [ Nearest version: 5.0.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102: Unable to find package System.Reflection.Metadata with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 9 version(s) in previously-source-built [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 9 version(s) in reference-packages [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Reflection.Metadata with version (>= 6.0.0)%0A  - Found 9 version(s) in previously-source-built [ Nearest version: 5.0.0 %5D%0A  - Found 9 version(s) in reference-packages [ Nearest version: 5.0.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102: Unable to find package System.Runtime.CompilerServices.Unsafe with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 7 version(s) in previously-source-built [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 7 version(s) in reference-packages [ Nearest version: 5.0.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Runtime.CompilerServices.Unsafe with version (>= 6.0.0)%0A  - Found 7 version(s) in previously-source-built [ Nearest version: 5.0.0 %5D%0A  - Found 7 version(s) in reference-packages [ Nearest version: 5.0.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102: Unable to find package System.Text.Encoding.CodePages with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 5 version(s) in previously-source-built [ Nearest version: 4.7.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 5 version(s) in reference-packages [ Nearest version: 4.7.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Text.Encoding.CodePages with version (>= 6.0.0)%0A  - Found 5 version(s) in previously-source-built [ Nearest version: 4.7.0 %5D%0A  - Found 5 version(s) in reference-packages [ Nearest version: 4.7.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj : error NU1605: Detected package downgrade: System.Collections.Immutable from 6.0.0 to 1.5.0. Reference the package directly from the project to select a different version.  [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj : error NU1605:  Microsoft.DotNet.CodeAnalysis -> Microsoft.CodeAnalysis.CSharp 4.0.1-1.21569.2 -> Microsoft.CodeAnalysis.Common 4.0.1-1.21569.2 -> System.Collections.Immutable (>= 6.0.0)  [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj : error NU1605:  Microsoft.DotNet.CodeAnalysis -> System.Collections.Immutable (>= 1.5.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj;linenumber=0;columnnumber=0;code=NU1605;](NETCORE_ENGINEERING_TELEMETRY=Restore) Detected package downgrade: System.Collections.Immutable from 6.0.0 to 1.5.0. Reference the package directly from the project to select a different version. %0A Microsoft.DotNet.CodeAnalysis -> Microsoft.CodeAnalysis.CSharp 4.0.1-1.21569.2 -> Microsoft.CodeAnalysis.Common 4.0.1-1.21569.2 -> System.Collections.Immutable (>= 6.0.0) %0A Microsoft.DotNet.CodeAnalysis -> System.Collections.Immutable (>= 1.5.0)
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj : error NU1605: Detected package downgrade: System.Reflection.Metadata from 6.0.0 to 1.6.0. Reference the package directly from the project to select a different version.  [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj : error NU1605:  Microsoft.DotNet.CodeAnalysis -> Microsoft.CodeAnalysis.CSharp 4.0.1-1.21569.2 -> Microsoft.CodeAnalysis.Common 4.0.1-1.21569.2 -> System.Reflection.Metadata (>= 6.0.0)  [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj : error NU1605:  Microsoft.DotNet.CodeAnalysis -> System.Reflection.Metadata (>= 1.6.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj;linenumber=0;columnnumber=0;code=NU1605;](NETCORE_ENGINEERING_TELEMETRY=Restore) Detected package downgrade: System.Reflection.Metadata from 6.0.0 to 1.6.0. Reference the package directly from the project to select a different version. %0A Microsoft.DotNet.CodeAnalysis -> Microsoft.CodeAnalysis.CSharp 4.0.1-1.21569.2 -> Microsoft.CodeAnalysis.Common 4.0.1-1.21569.2 -> System.Reflection.Metadata (>= 6.0.0) %0A Microsoft.DotNet.CodeAnalysis -> System.Reflection.Metadata (>= 1.6.0)
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj : error NU1102: Unable to find package System.Resources.Extensions with version (>= 6.0.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj : error NU1102:   - Found 1 version(s) in previously-source-built [ Nearest version: 4.6.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj : error NU1102:   - Found 1 version(s) in reference-packages [ Nearest version: 4.6.0 ] [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj : error NU1102:   - Found 0 version(s) in source-built [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj : error NU1102:   - Found 0 version(s) in prebuilt [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj;linenumber=0;columnnumber=0;code=NU1102;](NETCORE_ENGINEERING_TELEMETRY=Restore) Unable to find package System.Resources.Extensions with version (>= 6.0.0)%0A  - Found 1 version(s) in previously-source-built [ Nearest version: 4.6.0 %5D%0A  - Found 1 version(s) in reference-packages [ Nearest version: 4.6.0 %5D%0A  - Found 0 version(s) in source-built%0A  - Found 0 version(s) in prebuilt
    Failed to restore /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.CodeAnalysis/Microsoft.DotNet.CodeAnalysis.csproj (in 168 ms).
    Failed to restore /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Installers/Microsoft.DotNet.Build.Tasks.Installers.csproj (in 173 ms).
    Failed to restore /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj (in 171 ms).
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1605: Detected package downgrade: System.Reflection.Metadata from 6.0.0 to 1.6.0. Reference the package directly from the project to select a different version.  [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1605:  Microsoft.DotNet.GenFacades -> Microsoft.CodeAnalysis.CSharp 4.0.1-1.21569.2 -> Microsoft.CodeAnalysis.Common 4.0.1-1.21569.2 -> System.Reflection.Metadata (>= 6.0.0)  [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj : error NU1605:  Microsoft.DotNet.GenFacades -> System.Reflection.Metadata (>= 1.6.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj;linenumber=0;columnnumber=0;code=NU1605;](NETCORE_ENGINEERING_TELEMETRY=Restore) Detected package downgrade: System.Reflection.Metadata from 6.0.0 to 1.6.0. Reference the package directly from the project to select a different version. %0A Microsoft.DotNet.GenFacades -> Microsoft.CodeAnalysis.CSharp 4.0.1-1.21569.2 -> Microsoft.CodeAnalysis.Common 4.0.1-1.21569.2 -> System.Reflection.Metadata (>= 6.0.0) %0A Microsoft.DotNet.GenFacades -> System.Reflection.Metadata (>= 1.6.0)
    Failed to restore /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk/src/Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk.csproj (in 174 ms).
    Failed to restore /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.SourceBuild/tasks/Microsoft.DotNet.SourceBuild.Tasks.csproj (in 177 ms).
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj : error NU1605: Detected package downgrade: System.Collections.Immutable from 5.0.0 to 1.5.0. Reference the package directly from the project to select a different version.  [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj : error NU1605:  Microsoft.DotNet.Arcade.Sdk -> Microsoft.Build 17.0.0 -> System.Collections.Immutable (>= 5.0.0)  [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj : error NU1605:  Microsoft.DotNet.Arcade.Sdk -> System.Collections.Immutable (>= 1.5.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj;linenumber=0;columnnumber=0;code=NU1605;](NETCORE_ENGINEERING_TELEMETRY=Restore) Detected package downgrade: System.Collections.Immutable from 5.0.0 to 1.5.0. Reference the package directly from the project to select a different version. %0A Microsoft.DotNet.Arcade.Sdk -> Microsoft.Build 17.0.0 -> System.Collections.Immutable (>= 5.0.0) %0A Microsoft.DotNet.Arcade.Sdk -> System.Collections.Immutable (>= 1.5.0)
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj : error NU1605: Detected package downgrade: System.Collections.Immutable from 5.0.0 to 1.5.0. Reference the package directly from the project to select a different version.  [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj : error NU1605:  Microsoft.DotNet.Arcade.Sdk -> Microsoft.Build.Tasks.Core 17.0.0 -> System.Collections.Immutable (>= 5.0.0)  [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj : error NU1605:  Microsoft.DotNet.Arcade.Sdk -> System.Collections.Immutable (>= 1.5.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj;linenumber=0;columnnumber=0;code=NU1605;](NETCORE_ENGINEERING_TELEMETRY=Restore) Detected package downgrade: System.Collections.Immutable from 5.0.0 to 1.5.0. Reference the package directly from the project to select a different version. %0A Microsoft.DotNet.Arcade.Sdk -> Microsoft.Build.Tasks.Core 17.0.0 -> System.Collections.Immutable (>= 5.0.0) %0A Microsoft.DotNet.Arcade.Sdk -> System.Collections.Immutable (>= 1.5.0)
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj : error NU1605: Detected package downgrade: System.Collections.Immutable from 5.0.0 to 1.5.0. Reference the package directly from the project to select a different version.  [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj : error NU1605:  Microsoft.DotNet.Arcade.Sdk -> Microsoft.Arcade.Common -> Microsoft.Build.Utilities.Core 17.0.0 -> System.Collections.Immutable (>= 5.0.0)  [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj : error NU1605:  Microsoft.DotNet.Arcade.Sdk -> System.Collections.Immutable (>= 1.5.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj;linenumber=0;columnnumber=0;code=NU1605;](NETCORE_ENGINEERING_TELEMETRY=Restore) Detected package downgrade: System.Collections.Immutable from 5.0.0 to 1.5.0. Reference the package directly from the project to select a different version. %0A Microsoft.DotNet.Arcade.Sdk -> Microsoft.Arcade.Common -> Microsoft.Build.Utilities.Core 17.0.0 -> System.Collections.Immutable (>= 5.0.0) %0A Microsoft.DotNet.Arcade.Sdk -> System.Collections.Immutable (>= 1.5.0)
    Failed to restore /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj (in 187 ms).
    Failed to restore /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj (in 190 ms).
    Failed to restore /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj (in 180 ms).
    Failed to restore /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj (in 189 ms).
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.SignTool/Microsoft.DotNet.SignTool.csproj : error NU1605: Detected package downgrade: System.Collections.Immutable from 5.0.0 to 1.5.0. Reference the package directly from the project to select a different version.  [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.SignTool/Microsoft.DotNet.SignTool.csproj : error NU1605:  Microsoft.DotNet.SignTool -> Microsoft.Build.Utilities.Core 17.0.0 -> System.Collections.Immutable (>= 5.0.0)  [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.SignTool/Microsoft.DotNet.SignTool.csproj : error NU1605:  Microsoft.DotNet.SignTool -> System.Collections.Immutable (>= 1.5.0) [/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/Arcade.sln]
  ##vso[task.logissue type=error;sourcepath=/var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.SignTool/Microsoft.DotNet.SignTool.csproj;linenumber=0;columnnumber=0;code=NU1605;](NETCORE_ENGINEERING_TELEMETRY=Restore) Detected package downgrade: System.Collections.Immutable from 5.0.0 to 1.5.0. Reference the package directly from the project to select a different version. %0A Microsoft.DotNet.SignTool -> Microsoft.Build.Utilities.Core 17.0.0 -> System.Collections.Immutable (>= 5.0.0) %0A Microsoft.DotNet.SignTool -> System.Collections.Immutable (>= 1.5.0)
    Failed to restore /var/build/aports/dotnet6/dotnet6/src/sources/src/arcade.ee9b7f19853685805c612103282c8d9486c7db86/artifacts/source-build/self/src/src/Microsoft.DotNet.SignTool/Microsoft.DotNet.SignTool.csproj (in 206 ms).
    9 of 19 projects are up-to-date for restore.

So this business of mismatched versions is really curious. Anyone's got an idea on what this is about? The first build had only one instance of this bug (see above issue relating to command-line-api), but it cleared up once I added missing nuget system.reactive.core. Now, building using the binaries and artifacts from that build, causes all of these issues.

edit it's especially odd, as prebuilt Artifacts don't have 6.0.0 version of these files, so what changed b/w then and now?

@MichaelSimons
Copy link
Member

error NU1102: Unable to find package System.Runtime.CompilerServices.Unsafe with version (>= 6.0.0)

These issues looks like what I fixed with dotnet/installer#13009

@ayakael
Copy link
Author

ayakael commented Jan 21, 2022

@MichaelSimons Wicked, I'll try it out. I imagine this'll require rebuilding the first build, right?

@MichaelSimons
Copy link
Member

MichaelSimons commented Jan 21, 2022

I imagine this'll require rebuilding the first build, right?

Yes.

@ayakael
Copy link
Author

ayakael commented Jan 21, 2022

Libary question: runtime provides a set of .so libraries under shared/, is there a mechanism by which one can symbolically link these to /usr/lib? Would there be a point for this? Just weirded out by the ArchLinux team symbolically linking hostfxr.so to /usr/lib, and since the Alpine Linux builder is warning about a missing libmscordaccore.so, I was wanting to explore how I could provide it in a global setting. Problem is that if every runtime version provides a /usr/lib link, than they'll be conflicts. One can imagine, say a symbolic link in /usr/lib/libmscordaccore.so.6 that links to /usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.1/libmscordaccore.so.

@ayakael
Copy link
Author

ayakael commented Jan 22, 2022

Your patch did it, Michael. Thanks!

And hooray! We've got a full build going!!!

Not so fast, though. While I've managed to build dotnet6 in my environment on itself, for some reason, when the whole stack gets rebuilt within a docker container on Alpine's Gitlab pipeline, I get the following error during aspnet-core's build:

 /builds/ayakael/aports/testing/dotnet6-stage1/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/self/src/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj(447,5): error MSB3073: The command ""/builds/ayakael/aports/testing/dotnet6-stage1/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/self/package-cache/microsoft.netcore.app.crossgen2.linux-musl-x64/6.0.1/tools/crossgen2" --targetarch:x64 --targetos:linux -O @"/builds/ayakael/aports/testing/dotnet6-stage1/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/self/src/artifacts/obj/Microsoft.AspNetCore.App.Runtime/Release/net6.0/linux-musl-x64/crossgen/PlatformAssembliesPathsCrossgen2.rsp" --perfmap --perfmap-format-version:1 --perfmap-path:"/builds/ayakael/aports/testing/dotnet6-stage1/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/self/src/artifacts/bin/Microsoft.AspNetCore.App.Runtime/Release/net6.0/linux-musl-x64/" -o:"/builds/ayakael/aports/testing/dotnet6-stage1/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/self/src/artifacts/bin/Microsoft.AspNetCore.App.Runtime/Release/net6.0/linux-musl-x64/Microsoft.Extensions.Caching.Abstractions.dll" "/builds/ayakael/aports/testing/dotnet6-stage1/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/self/package-cache/microsoft.extensions.caching.abstractions/6.0.0/lib/netstandard2.0/Microsoft.Extensions.Caching.Abstractions.dll"" exited with code 139.
    ##vso[task.logissue type=error;sourcepath=/builds/ayakael/aports/testing/dotnet6-stage1/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/self/src/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj;linenumber=447;columnnumber=5;code=MSB3073;](NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/builds/ayakael/aports/testing/dotnet6-stage1/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/self/package-cache/microsoft.netcore.app.crossgen2.linux-musl-x64/6.0.1/tools/crossgen2" --targetarch:x64 --targetos:linux -O @"/builds/ayakael/aports/testing/dotnet6-stage1/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/self/src/artifacts/obj/Microsoft.AspNetCore.App.Runtime/Release/net6.0/linux-musl-x64/crossgen/PlatformAssembliesPathsCrossgen2.rsp" --perfmap --perfmap-format-version:1 --perfmap-path:"/builds/ayakael/aports/testing/dotnet6-stage1/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/self/src/artifacts/bin/Microsoft.AspNetCore.App.Runtime/Release/net6.0/linux-musl-x64/" -o:"/builds/ayakael/aports/testing/dotnet6-stage1/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/self/src/artifacts/bin/Microsoft.AspNetCore.App.Runtime/Release/net6.0/linux-musl-x64/Microsoft.Extensions.Caching.Abstractions.dll" "/builds/ayakael/aports/testing/dotnet6-stage1/src/sources/src/aspnetcore.4e7d976438b0fc17f435804e801d5d68d193ec33/artifacts/source-build/self/package-cache/microsoft.extensions.caching.abstractions/6.0.0/lib/netstandard2.0/Microsoft.Extensions.Caching.Abstractions.dll"" exited with code 139.

Last time I got a code 139 with anything was when trying to execute linux-x64 built ilasm on linux-musl-x64. Given that this binary comes from a linux-musl-x64 nupkg, I'm weirded out. An LDD of crossgen2 confirms that all shared objects are accounted for. All libraries are the same except my environment has lttn-ust version 2.13.1 while the other environment has 2.13.0, Both being broken, I set export complus_lttng=0, making this a moot hypothesis. I'm still crossing that T, but this is a different kind of fishy, I suspect.

Full log: https://gitlab.alpinelinux.org/ayakael/aports/-/jobs/601533/raw

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@MichaelSimons MichaelSimons transferred this issue from dotnet/installer Mar 1, 2022
@ayakael
Copy link
Author

ayakael commented Mar 7, 2022

@MichaelSimons Many thanks!

@ayakael
Copy link
Author

ayakael commented Mar 9, 2022

@omajid How did you get s390x architecture built on Fedora without prebuilt binaries? Did you crosscompile?

@omajid
Copy link
Member

omajid commented Mar 10, 2022

Basically, yes. @uweigand did the initial cross compile and produced the s390x SDK and nuget packages. I put them in a tarball and used them to bootstrap source-build on s390x, same way we did for arm64.

@uweigand, can you helps us figure out how to cross compile for alpine (musl, s390x)?

@ayakael
Copy link
Author

ayakael commented Mar 10, 2022

Basically, yes. @uweigand did the initial cross compile and produced the s390x SDK and nuget packages. I put them in a tarball and used them to bootstrap source-build on s390x, same way we did for arm64.

@uweigand, can you helps us figure out how to cross compile for alpine (musl, s390x)?

To plug easily into the current build process, it'd be a question of indeed having a prebuilt tarball available online similar to dotnet-sdk-6.0.102-linux-musl-x64.tar.gz and Private.SourceBuilt.Artifacts.0.1.0-6.0.100-bootstrap.29.tar.gz

@ayakael
Copy link
Author

ayakael commented Mar 14, 2022

I'm experimenting with https://github.com/redhat-developer/dotnet-regular-tests/ to see about using that testing suite for alpine. Unfortunately, lots of tests fail with dotnet 6.0.3, which makes me wonder if the testing suite is the problem. How portable is this testing suite to linux-musl environment?

@omajid
Copy link
Member

omajid commented Mar 14, 2022

That test suite was designed and tested with the assumption that it would be testing rpm-packaged .NET SDKs in a rpm+glibc based Linux distribution. There are going to be lots of test failures on other environments, even on linux-x64.

If you are interested, we can try and improve that test suite by diasbling certain tests on linux-musl and/or fixing the broken tests to handle linux-musl correctly. Can you share test results and/or logs?

Or, better yet, help me add Alpine to the CI matrix ?

@omajid
Copy link
Member

omajid commented Mar 14, 2022

To plug easily into the current build process, it'd be a question of indeed having a prebuilt tarball available online similar to dotnet-sdk-6.0.102-linux-musl-x64.tar.gz and Private.SourceBuilt.Artifacts.0.1.0-6.0.100-bootstrap.29.tar.gz

I think the SDK would have to be cross compiled, though I am not sure what a good cross-compile environment for linux-musl is. You don't need a full Private.SourceBuilt.Artifacst for s390x. Adding just a few nuget packages to the existing linux-musl-x64 version of the tarball will do the trick: runtime.linux-s390x.Microsoft.NETCore.ILDAsm.6.0.x.nupkg, Microsoft.NETCore.App.Ref.6.0.x.nupkg, runtime.linux-s390x.Microsoft.NETCore.ILAsm.6.0.x.nupkg and Microsoft.NETCore.App.Host.linux-s390x.6.0.x.nupkg.

@uweigand
Copy link

I created the initial bootstrap SDK via cross-compile on an Ubuntu 18.04, using the cross-compilers and cross-libraries that come with the distribution. The resulting binaries run on Ubuntu 18.04 or later, as well as on RHEL 8 and current Fedora versions. However, they're unlikely to run on a musl based distro.

It should be straightforward to run a similar cross-compile process targeting Alpine (I'd be happy to share the scripts I'm using), but I think we'll have to set up a proper cross-compile environment first. Maybe using an existing s390x Alpine as a sysroot?

@ayakael
Copy link
Author

ayakael commented Mar 31, 2022

@uweigand I'd appreciate access to those scripts :) As a package maintainer, I've never had the chance to experiment with crosscompiling, so this looks like a fun project. Ideally, I'd like to be able to run a single script in a alpine-x64 environment that builds an linux-musl-s390x sdk + artifacts tar that can be pulled by Alpine's dotnet6-stage0 package.

The completionist in me would eventually like to build for x86, armhf, ppc64le. Cross-compiling for s390x sets the groundworks for those.

BTW excellent news, dotnet6 is slated for inclusion in Alpine 3.16 on x86_64, aarch64 and armv7 platform ^^ looks like it'll be released in May. dotnet31 and dotnet5 won't make it for they're EOL soon. dotnet6 will be supported for a long time given its LTS status.

@ayakael
Copy link
Author

ayakael commented Apr 4, 2022

One last thing that has been in the back of mind is the naming convention. Why is runtime packaged under dotnet-runtime and sdk under dotnet-sdk? Why not have dotnet package runtime bits and dotnet-dev package sdk bits? I feel like that is more in line with how most distros do it. Alpine, for example, has the -dev subpackage. I suppose now that 3.16 is weeks away, I'm getting cold feet about certain decisions.

edit I'll keep as is, as in dotnetx-runtime and dotnetx-sdk to match upstream.

@ayakael
Copy link
Author

ayakael commented Apr 8, 2022

In trying to move the dotnet6 package to the community repo on Alpine, an error has appeared:

      [ 14%] Building C object Native.Unix/System.Security.Cryptography.Native/CMakeFiles/objlib.dir/pal_x509_root.c.o
      /home/buildozer/aports/community/dotnet6-stage0/src/source-build-tarball-6.0.102/src/runtime.839cdfb0ecca5e0be3dbccd926e7651ef50fdf10/artifacts/source-build/self/src/src/coreclr/pal/src/init/pal.cpp:350:24: error: no matching function for call to 'InterlockedCompareExchangePointerT'
                  if(NULL != InterlockedCompareExchangePointer(&init_critsec, &temp_critsec, NULL))
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/buildozer/aports/community/dotnet6-stage0/src/source-build-tarball-6.0.102/src/runtime.839cdfb0ecca5e0be3dbccd926e7651ef50fdf10/artifacts/source-build/self/src/src/coreclr/pal/src/include/pal/palinternal.h:727:43: note: expanded from macro 'InterlockedCompareExchangePointer'
      #define InterlockedCompareExchangePointer InterlockedCompareExchangePointerT
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/buildozer/aports/community/dotnet6-stage0/src/source-build-tarball-6.0.102/src/runtime.839cdfb0ecca5e0be3dbccd926e7651ef50fdf10/artifacts/source-build/self/src/src/coreclr/pal/src/include/pal/palinternal.h:715:11: note: candidate function template not viable: no known conversion from 'nullptr_t' to 'int' for 3rd argument
      inline T* InterlockedCompareExchangePointerT(
                ^
      /home/buildozer/aports/community/dotnet6-stage0/src/source-build-tarball-6.0.102/src/runtime.839cdfb0ecca5e0be3dbccd926e7651ef50fdf10/artifacts/source-build/self/src/src/coreclr/pal/src/include/pal/palinternal.h:684:4: note: candidate template ignored: could not match 'T *' against 'nullptr_t'
      T* InterlockedCompareExchangePointerT(
         ^
      /home/buildozer/aports/community/dotnet6-stage0/src/source-build-tarball-6.0.102/src/runtime.839cdfb0ecca5e0be3dbccd926e7651ef50fdf10/artifacts/source-build/self/src/src/coreclr/pal/src/include/pal/palinternal.h:705:11: note: candidate template ignored: could not match 'T *' against 'nullptr_t'
      inline T* InterlockedCompareExchangePointerT(
                ^
      1 error generated.

Similar bug to what appears here: dotnet/runtime#23650

Any ideas what this is about? @wfurt perhaps?

@ayakael
Copy link
Author

ayakael commented Apr 8, 2022

Above bug was introduced with musl 1.2.3, opened up an issue with runtime here dotnet/runtime#67763

@ayakael
Copy link
Author

ayakael commented Apr 9, 2022

dotnet6 is now in community, rejoice! After many moons of work, it is time to close this issue

@ayakael ayakael closed this as completed Apr 9, 2022
@uweigand
Copy link

@uweigand I'd appreciate access to those scripts :)

@ayakael sorry for the late reply, I've been out sick. Not sure if you still need those at this point, but I've attached the set of scripts I've been using to cross-build a 6.0.100 SDK for s390x. These are intended to run on Ubuntu 20.04 (or 18.04) with a cross-compile environment targeting s390x installed.

dotnet-s390x.tar.gz

@ayakael
Copy link
Author

ayakael commented Apr 11, 2022

@uweigand Awesome, much obliged! Do you consent for me to share this with a select few Alpine developpers so we can work on creating this cross-compile environment on Alpine? (I mean I know its a public forum here, but you know, due diligence)

@uweigand
Copy link

Absolutely, feel free to share.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants