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

Homebrew formula for .NET 6 #2719

Closed
asbjornu opened this issue Dec 20, 2021 · 27 comments
Closed

Homebrew formula for .NET 6 #2719

asbjornu opened this issue Dec 20, 2021 · 27 comments
Labels
community-support Issues related to community bring up of distros.

Comments

@asbjornu
Copy link
Member

As per #2602, I'm trying to update Homebrew's dotnet formula from version 5.0.207 to version 6.0.101. Since the build process has changed, I need to modify the Homebrew formula to reflect these changes. Right off the bat, it seems like this sudo statement makes installation with Homebrew impossible:

https://github.com/dotnet/installer/blob/ef49f6213a0256d5e8b10d9a573f8dd355bc8593/build.sh#L58

Now I see that this sudo statement is removed in dotnet/installer#12736, but there's no release yet that contain this commit. I've added a patch for f8e115fadf6e8b392fa007e78d9b77fc64590cdd to the dotnet formula, but would rather avoid it, especially if this fix is expected to be released soon. The next issue is that the Start Cloning Repo runtime step fails by asking for dev.azure.com credentials:

  Initialized empty Git repository in /usr/local/Cellar/dotnet/6.0.101/libexec/src/src/runtime.3a25a7f1cc446b60678ed25c9d829420d6321eba/.git/
Username for 'https://dev.azure.com':
Password for 'https://dev.azure.com':
  fatal: Authentication failed for 'https://dev.azure.com/dnceng/internal/_git/dotnet-runtime/'
/private/tmp/dotnet-20211221-59863-79tz4r/src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets(163,5): error MSB3073: The command "git fetch --depth 1 origin 3a25a7f1cc446b60678ed25c9d829420d6321eba" exited with code 128. [/private/tmp/dotnet-20211221-59863-79tz4r/src/SourceBuild/tarball/BuildSourceBuildTarball.proj]

Build FAILED.

/private/tmp/dotnet-20211221-59863-79tz4r/src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets(163,5): error MSB3073: The command "git fetch --depth 1 origin 3a25a7f1cc446b60678ed25c9d829420d6321eba" exited with code 128. [/private/tmp/dotnet-20211221-59863-79tz4r/src/SourceBuild/tarball/BuildSourceBuildTarball.proj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:04:26.93
Build failed with exit code 1. Check errors above.

Is the authentication problem I've stumbled into fixed in a revision I can patch as well, or is this news to you? Thoughts and guidance would be highly appreciated. 🙏🏼

@asbjornu
Copy link
Member Author

If I cd into the created local repository /usr/local/Cellar/dotnet/6.0.101/libexec/src/runtime.3a25a7f1cc446b60678ed25c9d829420d6321eba/, its remote origin points to https://dev.azure.com/dnceng/internal/_git/dotnet-runtime, which is indeed behind authentication.

Doing a curl request towards the remote URL reveals this in the x-tfs-serviceerror header:

TF400813: The user '' is not authorized to access this resource.

Why is the .NET installer dependent on internal AzDO repositories requiring authentication?

@robertleeblairjr
Copy link

If I cd into the created local repository /usr/local/Cellar/dotnet/6.0.101/libexec/src/runtime.3a25a7f1cc446b60678ed25c9d829420d6321eba/, its remote origin points to https://dev.azure.com/dnceng/internal/_git/dotnet-runtime, which is indeed behind authentication.

Doing a curl request towards the remote URL reveals this in the x-tfs-serviceerror header:

TF400813: The user '' is not authorized to access this resource.

Why is the .NET installer dependent on internal AzDO repositories requiring authentication?

I assume you knew of the linux build for source. I've not compiled it myself and I assume you aren't having a prerequisite problem. There seems to be an issue with the linux instructions for building on what's called the prep stage for pulling these packages which may be related.

Bootstrap Source-Built Package Fails
https://github.com/dotnet/source-build/issues/2599

.NET Source Build
https://github.com/dotnet/source-build

Linux Prerequisites
https://github.com/dotnet/runtime/blob/main/docs/workflow/requirements/linux-requirements.md

@asbjornu
Copy link
Member Author

Thanks @robertleeblairjr. As per #2602 (comment) it seems like version 6.0.101 for some reason requires authentication while version 6.0.100 does not. I'll try the latter and see if it helps.

@asbjornu
Copy link
Member Author

As can be seen in Homebrew/homebrew-core#92991, 6.0.100 seems to work fine. 👍🏼

@asbjornu
Copy link
Member Author

Scratch that. What works in 6.0.100 is ./build.sh --configuration Release which downloads prebuilt binaries. With /p:ArcadeBuildTarball=true the build fails on the following line in prep.sh:

https://github.com/dotnet/installer/blob/4697f8ff785766af82fdf038a3b1052cf4a1df4d/src/SourceBuild/tarball/content/prep.sh#L121

When building dotnet from source, how can it be expected that $DOTNET_SDK_PATH is set and the dotnet binary available? Doesn't this require .NET to already be installed on the system which dotnet is being built from source? This catch-22 conundrum makes me dizzy, so some assistance would be highly appreciated.

@asbjornu
Copy link
Member Author

asbjornu commented Jan 12, 2022

I just now noticed the following disclaimer:

The source directory should be outside (and not somewhere under) the installer directory.

By providing a temporary path to /p:TarballDir=, I was able to execute prep.sh successfully. However, build.sh now fails. I've applied dotnet/installer#12642 manually, but the build errs out with the following message:

'source-build-reference-packages' failed during build.
See '/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/ci-XXXXXXXXXX.DahQFOH1/artifacts/logs/source-build-reference-packages.log' for more information.

I've created a gist of the source-build-reference-packages.log file. Version v6.0.200-preview fails with the same problem. Just for fun, I found dotnet/installer@162b987 to be the last successful commit on main and gave that a go as well, but it too fails. 😕

@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 Jan 13, 2022
@carlocab
Copy link

When building dotnet from source, how can it be expected that $DOTNET_SDK_PATH is set and the dotnet binary available? Doesn't this require .NET to already be installed on the system which dotnet is being built from source? This catch-22 conundrum makes me dizzy, so some assistance would be highly appreciated.

It might be that dotnet needs itself to bootstrap. This is not uncommon (this is also the case for GHC, Rust, Go...). We could probably install a pre-built dotnet into a temporary directory (somewhere in buildpath should work) and then use that to bootstrap.

@omajid
Copy link
Member

omajid commented Jan 14, 2022

It might be that dotnet needs itself to bootstrap.

This is true. Every version of dotnet needs a previous recent build of dotnet to compile. This is what the prep.sh script is supposed to do. If/when it works correctly, it should download all the binaries needed to bootstrap dotnet (an SDK at .dotnet, and a few .tar.gz files).

@asbjornu
Copy link
Member Author

asbjornu commented Jan 14, 2022

@carlocab, @omajid, you are correct. I've left the description of the prep.sh problem I had just for brevity. After providing a temp path to the initial build.sh script, prep.sh now works. But I'm now stuck on the second build.sh script failing:

'source-build-reference-packages' failed during build.
See '/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/ci-XXXXXXXXXX.DahQFOH1/artifacts/logs/source-build-reference-packages.log' for more information.

I've created a gist of the source-build-reference-packages.log file. Version v6.0.200-preview fails with the same problem. Just for fun, I found dotnet/installer@162b987 to be the last successful commit on main and gave that a go as well, but it too fails. 😕

@crummel
Copy link
Contributor

crummel commented Jan 14, 2022

I think the problem is that we don't have an OSX build running right now in 6.0 so those OSX runtime packages aren't being produced and put into previously-source-built. The full way we've gotten around this in the past is by constructing a special bootstrap previously-source-built that isn't actually 100% previously-source-built - it also contains Microsoft-built bits. The easiest way to do this is probably to take the Private.SourceBuilt.Artifacts tarball that gets downloaded, extract it somewhere handy, and add the required OSX packages. Then you can use the --with-packages flag to pass in that directory to the SBRP and stage1 builds (probably easiest to modify the bootstrapping script). Then you should be able to use that stage1 to continue on with the bootstrapping process.

Just as a fair warning, source-build 6.0 isn't currently working on OSX and we're not working on fixing it right now so you might run into quite a few issues even after getting SBRP building. We'd be happy for any contributions you have to fix them but probably won't be able to devote a lot of time to it ourselves right now.

@asbjornu
Copy link
Member Author

asbjornu commented Jan 17, 2022

@crummel, thanks for the information. I was able to find ./tarball/packages/archive/Private.SourceBuilt.Artifacts.0.1.0-6.0.100-bootstrap.29.tar.gz, extracted it to ./artifacts/packages/ and then executed:

./build.sh --with-packages /Users/…/dotnet/installer/artifacts/packages/

However, the build fails with the same error message still:

error NU1101: Unable to find package runtime.osx-x64.microsoft.netcore.ildasm. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.hfuhxrbK/.dotnet/sdk/6.0.200-preview.21603.2/NuGet.targets]
[…]
  'source-build-reference-packages' failed during build.

I have a fresh gist of source-build-reference-packages.log if that's of any help.

@omajid
Copy link
Member

omajid commented Jan 18, 2022

I don't have anything to test this on, but if you download the matching version of runtime.osx-x64.microsoft.netcore.ildasm from https://www.nuget.org/packages/runtime.osx-x64.Microsoft.NETCore.ILDAsm (and I guess the .ilasm package too), and place it at /Users/…/dotnet/installer/artifacts/packages/, does that help?

@asbjornu
Copy link
Member Author

asbjornu commented Jan 19, 2022

@omajid, thanks! I can't find a "matching version" since I'm now building v6.0.200-preview. But I downloaded runtime.osx-x64.microsoft.netcore.ilasm.6.0.0.nupkg and runtime.osx-x64.microsoft.netcore.ildasm.6.0.0.nupkg and that did progress the build from source-build-reference-packages to nuget-client which now fails:

  /private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.yISZjMm6/src/nuget-client.9187a50daec29061772a2057490697c6c0e4c354/eng/source-build/source-build.proj(59,5): error MSB3073: The command "git --work-tree=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.yISZjMm6/src/nuget-client.9187a50daec29061772a2057490697c6c0e4c354/eng/source-build/../../ apply --ignore-whitespace --whitespace=nowarn "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.yISZjMm6/src/nuget-client.9187a50daec29061772a2057490697c6c0e4c354/eng/source-build-patches/0001-Rename-NuGet.Config-to-NuGet.config-to-account-for-a.patch"" exited with code 1.

  'nuget-client' failed during build.
  See '/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.yISZjMm6/artifacts/logs/nuget-client.log' for more information.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.yISZjMm6/repos/nuget-client.proj" (Build target(s)) -- FAILED.
ReportRepoError:
  'templating' failed during build.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.yISZjMm6/repos/templating.proj" (Build target(s)) -- FAILED.
ReportRepoError:
  'known-good' failed during build.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.yISZjMm6/repos/known-good.proj" (Build target(s)) -- FAILED.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.yISZjMm6/build.proj" (default targets) -- FAILED.

gist of nuget-client.log. May the build failure be due to the versions not matching exactly?

@asbjornu
Copy link
Member Author

asbjornu commented Jan 19, 2022

May the build failure be due to the versions not matching exactly?

I think I can answer that with a "yes and no". I've now tried to build version 6.0.100, going through the following motions:

git checkout v6.0.100
git am 12642.patch
tarball_dir="$(mktemp -d)"
./build.sh --configuration Release /p:ArcadeBuildTarball=true /p:TarballDir="$tarball_dir"
cd "$tarball_dir"
./prep.sh
tar -xzf $(find . -name '*Private.SourceBuilt.Artifacts*') --directory ./packages/
wget --directory-prefix=./packages/ https://www.nuget.org/api/v2/package/runtime.osx-x64.Microsoft.NETCore.ILAsm/6.0.0
wget --directory-prefix=./packages/ https://www.nuget.org/api/v2/package/runtime.osx-x64.Microsoft.NETCore.ILDAsm/6.0.0
./build.sh --with-packages ./packages/

And now the build fails on the runtime step:

    Time Elapsed 00:11:28.20
    Build failed with exit code 1. Check errors above.
  /private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets(194,5): error MSB3073: The command "./build.sh  --arch x64 --configuration Release --allconfigurations --verbosity minimal --nodereuse false --warnAsError false /p:MicrosoftNetFrameworkReferenceAssembliesVersion=1.0.2 /p:PackageRid=osx-x64 /p:NoPgoOptimize=true /p:KeepNativeSymbols=true /p:RuntimeOS=osx /p:PortableBuild=false /p:BuildDebPackage=false /p:ArcadeInnerBuildFromSource=true /p:DotNetBuildFromSource=true /p:RepoRoot=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/ /p:ArtifactsDir=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/artifacts/ /bl:/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/artifacts/sourcebuild.binlog /p:ContinuousIntegrationBuild=true /p:SourceBuildOutputDir=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/ /p:SourceBuiltBlobFeedDir= /p:EnableSourceControlManagerQueries=false /p:EnableSourceLink=false /p:DeterministicSourcePaths=false /p:DotNetBuildOffline=true /p:DotNetPackageVersionPropsPath=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/artifacts/obj/x64/Release/PackageVersions.props" exited with code 1. [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj]
  ##vso[task.logissue type=error;sourcepath=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets;linenumber=194;columnnumber=5;code=MSB3073;]The command "./build.sh  --arch x64 --configuration Release --allconfigurations --verbosity minimal --nodereuse false --warnAsError false /p:MicrosoftNetFrameworkReferenceAssembliesVersion=1.0.2 /p:PackageRid=osx-x64 /p:NoPgoOptimize=true /p:KeepNativeSymbols=true /p:RuntimeOS=osx /p:PortableBuild=false /p:BuildDebPackage=false /p:ArcadeInnerBuildFromSource=true /p:DotNetBuildFromSource=true /p:RepoRoot=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/ /p:ArtifactsDir=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/artifacts/ /bl:/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/artifacts/sourcebuild.binlog /p:ContinuousIntegrationBuild=true /p:SourceBuildOutputDir=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/ /p:SourceBuiltBlobFeedDir= /p:EnableSourceControlManagerQueries=false /p:EnableSourceLink=false /p:DeterministicSourcePaths=false /p:DotNetBuildOffline=true /p:DotNetPackageVersionPropsPath=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/artifacts/obj/x64/Release/PackageVersions.props" exited with code 1.

  Build FAILED.

  /private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets(194,5): error MSB3073: The command "./build.sh  --arch x64 --configuration Release --allconfigurations --verbosity minimal --nodereuse false --warnAsError false /p:MicrosoftNetFrameworkReferenceAssembliesVersion=1.0.2 /p:PackageRid=osx-x64 /p:NoPgoOptimize=true /p:KeepNativeSymbols=true /p:RuntimeOS=osx /p:PortableBuild=false /p:BuildDebPackage=false /p:ArcadeInnerBuildFromSource=true /p:DotNetBuildFromSource=true /p:RepoRoot=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/ /p:ArtifactsDir=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/artifacts/ /bl:/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/artifacts/sourcebuild.binlog /p:ContinuousIntegrationBuild=true /p:SourceBuildOutputDir=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/ /p:SourceBuiltBlobFeedDir= /p:EnableSourceControlManagerQueries=false /p:EnableSourceLink=false /p:DeterministicSourcePaths=false /p:DotNetBuildOffline=true /p:DotNetPackageVersionPropsPath=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/artifacts/obj/x64/Release/PackageVersions.props" exited with code 1. [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj]
      0 Warning(s)
      1 Error(s)

  Time Elapsed 00:11:51.40
  Build failed with exit code 1. Check errors above.
  ##vso[task.complete result=Failed;]msbuild execution failed.

  'runtime' failed during build.
  See '/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/artifacts/logs/runtime.log' for more information.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/repos/runtime.proj" (Build target(s)) -- FAILED.
ReportRepoError:
  'msbuild' failed during build.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/repos/msbuild.proj" (Build target(s)) -- FAILED.
ReportRepoError:
  'known-good' failed during build.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/repos/known-good.proj" (Build target(s)) -- FAILED.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/build.proj" (default targets) -- FAILED.

Here's a gist of the runtime.log file. I can see the following logged to the console:

/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/repos/Directory.Build.targets(364,5): warning : Newtonsoft.Json/9.0.1 : Nupkg found at '/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/packages/Newtonsoft.Json.9.0.1.nupkg' [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/repos/runtime.proj]

Thoughts?

@omajid
Copy link
Member

omajid commented Jan 20, 2022

I've now tried to build version 6.0.100

I think that's the right thing to do for now; 6.0.200 hasn't really been tested for this, though perhaps @MichaelSimons can correct me.

From the runtime.log, the error seems to be this:

error MSB4018: The "Microsoft.DotNet.Compatibility.ValidatePackage" task failed unexpectedly. [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.IO.Ports/src/System.IO.Ports.csproj]
error MSB4018: System.MissingMethodException: Method not found: 'Int32 Microsoft.CodeAnalysis.ISymbol.get_MetadataToken()'. [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.IO.Ports/src/System.IO.Ports.csproj]
error MSB4018:    at Microsoft.CodeAnalysis.CSharp.Symbols.AssemblySymbol.CreateISymbol() [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.IO.Ports/src/System.IO.Ports.csproj]
error MSB4018:    at Microsoft.CodeAnalysis.CSharp.Symbol.get_ISymbol() [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.IO.Ports/src/System.IO.Ports.csproj]
error MSB4018:    at Microsoft.CodeAnalysis.CSharp.Symbols.SymbolExtensions.GetPublicSymbol[TISymbol](Symbol symbol) [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.IO.Ports/src/System.IO.Ports.csproj]
error MSB4018:    at Microsoft.CodeAnalysis.CSharp.Symbols.SymbolExtensions.GetPublicSymbol(Symbol symbol) [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.aTq10FzU/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.IO.Ports/src/System.IO.Ports.csproj]

That sounds like dotnet/runtime#60881. It was merged into 6.0, but I can now see that it missed the 6.0.0 cuttoff.

To manually turn off package validation, can you run a command like this to add the property EnablePackageValidation=false before running ./build.sh --with-packages ./packages/?

sed -i -E 's|( /p:BuildDebPackage=false)|\1 /p:EnablePackageValidation=false|' src/runtime.*/eng/SourceBuild.props

(I tested this command on Linux/bash, so might need some tweaks for macOS)

@MichaelSimons
Copy link
Member

I think that's the right thing to do for now; 6.0.200 hasn't really been tested for this

That is correct. source-build is currently not building in 6.0.200. It has not been a top priority for us at the moment.

@MichaelSimons MichaelSimons added community-support Issues related to community bring up of distros. discussion and removed untriaged labels Jan 20, 2022
@asbjornu
Copy link
Member Author

I think that's the right thing to do for now; 6.0.200 hasn't really been tested for this

That is correct. source-build is currently not building in 6.0.200. It has not been a top priority for us at the moment.

Ok.

To manually turn off package validation, can you run a command like this to add the property EnablePackageValidation=false before running ./build.sh --with-packages ./packages/?

sed -i -E 's|( /p:BuildDebPackage=false)|\1 /p:EnablePackageValidation=false|' src/runtime.*/eng/SourceBuild.props

Sure. I ran the command and inspected a few of the SourceBuild.props files to verify that the replacement was indeed present, but could only find it in the file src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/eng/SourceBuild.props. Is that correct?

<InnerBuildArgs>$(InnerBuildArgs) /p:BuildDebPackage=false /p:EnablePackageValidation=false</InnerBuildArgs>

Alas, that did not help. The build now failed as such:

/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/.dotnet/sdk/6.0.100-rc.2.21426.20/MSBuild.dll -maxcpucount -verbosity:m /v:minimal /bl:/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/src/nuget-client.078701b97eeef2283c1f4605032b5bcf55a80653/eng/source-build/../../artifacts/source-build/self/log/source-build.binlog /p:Configuration=Release /p:DotNetBuildFromSource=true /p:ArcadeBuildFromSource=true /p:RepoRoot=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/src/nuget-client.078701b97eeef2283c1f4605032b5bcf55a80653/eng/source-build/../../ /p:ArcadeBuildFromSource=true /p:CopyWipIntoInnerSourceBuildRepo=true /p:DotNetBuildOffline=true /p:CopySrcInsteadOfClone=true /p:DotNetPackageVersionPropsPath=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/artifacts/obj/x64/Release/PackageVersions.props /p:AdditionalSourceBuiltNupkgCacheDir=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/artifacts/obj/x64/Release/blob-feed/packages/ /p:ReferencePackageNupkgCacheDir=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/packages/reference/packages/ /p:PreviouslySourceBuiltNupkgCacheDir=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/packages/ /p:DotNetPackageVersionPropsPath=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/artifacts/obj/x64/Release/PackageVersions.props /private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/src/nuget-client.078701b97eeef2283c1f4605032b5bcf55a80653/eng/source-build/source-build.proj
  [SourceBuiltSdkResolver] Looking for SDK Microsoft.DotNet.Arcade.Sdk. Detected config(s) in env: 'ARCADE' for 'Microsoft.DotNet.Arcade.Sdk/6.0.0-beta.21519.3' at '/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/packages/restored/ArcadeBootstrapPackage/microsoft.dotnet.arcade.sdk/6.0.0-beta.21519.3'
  [SourceBuiltSdkResolver] Overriding Microsoft.DotNet.Arcade.Sdk with 'ARCADE'
    Check for patches in /private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/src/nuget-client.078701b97eeef2283c1f4605032b5bcf55a80653/eng/source-build/../../eng/source-build-patches/*.patch
  EXEC : error : NuGet.config: already exists in working directory [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/src/nuget-client.078701b97eeef2283c1f4605032b5bcf55a80653/eng/source-build/source-build.proj]
  /private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/src/nuget-client.078701b97eeef2283c1f4605032b5bcf55a80653/eng/source-build/source-build.proj(59,5): error MSB3073: The command "git --work-tree=/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/src/nuget-client.078701b97eeef2283c1f4605032b5bcf55a80653/eng/source-build/../../ apply --ignore-whitespace --whitespace=nowarn "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/src/nuget-client.078701b97eeef2283c1f4605032b5bcf55a80653/eng/source-build-patches/0001-Rename-NuGet.Config-to-NuGet.config-to-account-for-a.patch"" exited with code 1.

  'nuget-client' failed during build.
  See '/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/artifacts/logs/nuget-client.log' for more information.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/repos/nuget-client.proj" (Build target(s)) -- FAILED.
ReportRepoError:
  'templating' failed during build.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/repos/templating.proj" (Build target(s)) -- FAILED.
ReportRepoError:
  'known-good' failed during build.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/repos/known-good.proj" (Build target(s)) -- FAILED.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.uXCfHHjM/build.proj" (default targets) -- FAILED.

The contents of nuget-client.log is the same as the above error message.

@omajid
Copy link
Member

omajid commented Jan 21, 2022

Is that correct?

Yup. That looks right. It should only be modifying that file. I only used the * glob in the command because the name of the directory runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6 changes between every couple of upstream commits.

EXEC : error : NuGet.config: already exists in working directory

Sorry, never seen this before. Are you starting from a fresh/clean directory? Incremental builds are probably broken.

@asbjornu
Copy link
Member Author

EXEC : error : NuGet.config: already exists in working directory

Sorry, never seen this before. Are you starting from a fresh/clean directory? Incremental builds are probably broken.

The dotnet/installer directory is not re-cloned before every build, but as I'm assigning /p:TarballDir to a directory created with mktemp -d, the build output is given a fresh directory every time.

@asbjornu
Copy link
Member Author

asbjornu commented Jan 27, 2022

Just for fun I now ran the build again, but this time I extracted packages to a temporary folder instead of to the ./packages directory. That made runtime (instead of nuget-client) fail again.

  'runtime' failed during build.
  See '/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/artifacts/logs/runtime.log' for more information.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/repos/runtime.proj" (Build target(s)) -- FAILED.
ReportRepoError:
  'msbuild' failed during build.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/repos/msbuild.proj" (Build target(s)) -- FAILED.
ReportRepoError:
  'known-good' failed during build.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/repos/known-good.proj" (Build target(s)) -- FAILED.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/build.proj" (default targets) -- FAILED.
Deferred Messages

Here is a gist of runtime.log. The terminal is also filled with warnings such as these:

"/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/build.proj" (default target) (1) ->
"/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/repos/known-good.proj" (Build target) (3) ->
"/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/repos/msbuild.proj" (Build target) (17:9) ->
"/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/repos/runtime.proj" (Build target) (23:9) ->
  /private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/repos/Directory.Build.targets(364,5): warning : runtime.osx-x64.Microsoft.NETCore.ILDAsm/6.0.0 : Nupkg found at '/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.cGgQeDwq/runtime.osx-x64.microsoft.netcore.ildasm.6.0.0.nupkg' [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/repos/runtime.proj]

Now, I wonder: Is the runtime task executed before or after nuget-client? I.e. am I further ahead now than when nuget-client was failing?

@omajid
Copy link
Member

omajid commented Feb 4, 2022

Hey @asbjornu! This is the new error messages in the gist you posted:

error MSB4018: The "Microsoft.DotNet.Compatibility.ValidatePackage" task failed unexpectedly. [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.ilproj]
error MSB4018: System.TypeLoadException: Method 'CompareSourceLocations' in type 'Microsoft.CodeAnalysis.CSharp.CSharpCompilation' from assembly 'Microsoft.CodeAnalysis.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation. [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.ilproj]
error MSB4018:    at Microsoft.DotNet.ApiCompatibility.AssemblySymbolLoader..ctor(Boolean resolveAssemblyReferences) [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.ilproj]
error MSB4018:    at Microsoft.DotNet.PackageValidation.ApiCompatRunner.GetAssemblySymbolFromStream(Stream assemblyStream, MetadataInformation assemblyInformation, Boolean& resolvedReferences) in /tarball/src/sdk.a4161aeba7fb98361d48de38d9f1b4e384de0d04/artifacts/source-build/self/src/src/Compatibility/Microsoft.DotNet.PackageValidation/ApiCompatRunner.cs:line 113 [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.ilproj]
error MSB4018:    at Microsoft.DotNet.PackageValidation.ApiCompatRunner.RunApiCompat() in /tarball/src/sdk.a4161aeba7fb98361d48de38d9f1b4e384de0d04/artifacts/source-build/self/src/src/Compatibility/Microsoft.DotNet.PackageValidation/ApiCompatRunner.cs:line 50 [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.ilproj]
error MSB4018:    at Microsoft.DotNet.PackageValidation.CompatibleFrameworkInPackageValidator.Validate(Package package) in /tarball/src/sdk.a4161aeba7fb98361d48de38d9f1b4e384de0d04/artifacts/source-build/self/src/src/Compatibility/Microsoft.DotNet.PackageValidation/CompatibleFrameworkInPackageValidator.cs:line 62 [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.ilproj]
error MSB4018:    at Microsoft.DotNet.Compatibility.ValidatePackage.ExecuteCore() in /tarball/src/sdk.a4161aeba7fb98361d48de38d9f1b4e384de0d04/artifacts/source-build/self/src/src/Compatibility/Microsoft.DotNet.Compatibility/ValidatePackage.cs:line 92 [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.ilproj]
error MSB4018:    at Microsoft.NET.Build.Tasks.TaskBase.Execute() in /tarball/src/sdk.a4161aeba7fb98361d48de38d9f1b4e384de0d04/artifacts/source-build/self/src/src/Tasks/Common/TaskBase.cs:line 38 [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.ilproj]
error MSB4018:    at Microsoft.DotNet.Compatibility.ValidatePackage.Execute() in /tarball/src/sdk.a4161aeba7fb98361d48de38d9f1b4e384de0d04/artifacts/source-build/self/src/src/Compatibility/Microsoft.DotNet.Compatibility/ValidatePackage.cs:line 49 [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.ilproj]
error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.ilproj]
error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.6FW6UC7n/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.ilproj]

This is the same error as before....

Can you confirm that your src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/eng/SourceBuild.props has EnablePackageValidation=false? There should be a line like this:

<InnerBuildArgs>$(InnerBuildArgs) /p:BuildDebPackage=false /p:EnablePackageValidation=false</InnerBuildArgs>

@asbjornu
Copy link
Member Author

asbjornu commented Feb 7, 2022

Sorry, I forgot the sed command. 🤦🏼 So I just now did this:

git checkout v6.0.100
git am 12642.patch
tarball_dir="$(mktemp -d)"
package_dir="$(mktemp -d)"
./build.sh --configuration Release /p:ArcadeBuildTarball=true /p:TarballDir="$tarball_dir"
cd "$tarball_dir"
./prep.sh
tar -xzf $(find . -name '*Private.SourceBuilt.Artifacts*') --directory "$package_dir"
wget --directory-prefix="$package_dir" https://www.nuget.org/api/v2/package/runtime.osx-x64.Microsoft.NETCore.ILAsm/6.0.0
wget --directory-prefix="$package_dir" https://www.nuget.org/api/v2/package/runtime.osx-x64.Microsoft.NETCore.ILDAsm/6.0.0
sed -i -E 's|( /p:BuildDebPackage=false)|\1 /p:EnablePackageValidation=false|' src/runtime.*/eng/SourceBuild.props
./build.sh --with-packages "$package_dir"

And ended up with nuget-client failing (again):

  'nuget-client' failed during build.
  See '/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/artifacts/logs/nuget-client.log' for more information.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/repos/nuget-client.proj" (Build target(s)) -- FAILED.
ReportRepoError:
  'templating' failed during build.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/repos/templating.proj" (Build target(s)) -- FAILED.
ReportRepoError:
  'known-good' failed during build.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/repos/known-good.proj" (Build target(s)) -- FAILED.
Done Building Project "/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/build.proj" (default targets) -- FAILED.

Here's nuget-client.log. The console is yet again full of these warnings:

"/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/build.proj" (default target) (1) ->
"/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/repos/known-good.proj" (Build target) (3) ->
"/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/repos/msbuild.proj" (Build target) (17:9) ->
"/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/repos/runtime.proj" (Build target) (23:9) ->
  /private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/repos/Directory.Build.targets(363,5): warning : Detected packages in the cache that should be source-built, but contents don't match. See /private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/artifacts/conflict-report/before-runtime/ for usage details: [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/repos/runtime.proj]

"/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/build.proj" (default target) (1) ->
"/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/repos/known-good.proj" (Build target) (3) ->
"/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/repos/msbuild.proj" (Build target) (17:9) ->
"/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/repos/runtime.proj" (Build target) (23:9) ->
  /private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/repos/Directory.Build.targets(364,5): warning : Microsoft.ApplicationInsights/2.0.0 : Nupkg found at '/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.KEmOthsq/Microsoft.ApplicationInsights.2.0.0.nupkg' [/private/var/folders/hk/csqj0djx4nldg11ys92y6yb80000gn/T/tmp.k30rywjd/repos/runtime.proj]

@cho-m
Copy link

cho-m commented Feb 13, 2022

I was able to build v6.0.102 on ARM but not Intel macOS Monterey. Still trying to go through Intel failures.

Following workarounds for ARM build:

  1. Add ILAsm and ILDAsm to src/SourceBuild/tarball/content/scripts/bootstrap/buildBootstrapPreviouslySB.csproj like Linux ARM (First discussed issue)
  2. Delete 0001-Rename-NuGet.Config-to-NuGet.config-to-account-for-a.patch since patch fails on case-insensitive systems like macOS (Should be related to above failures - see error MSB3073: The command "git ... in the logs).
  3. Use GNU sed instead of BSD sed due to incompatible sed -i usage in https://github.com/dotnet/arcade/blob/ff6cc4e9c3eef575f62a33a642ca80e79d27c9bb/eng/SourceBuild.props#L38
  4. [ARM-specific] Change osx-x64 to osx-$(Platform) for RID/etc in runtime.proj and installer.proj

On Intel, it then fails at phase Building 'installer in tarball' with

error MSB4018: System.AggregateException: One or more errors occurred. (Could not find file '/private/tmp/dotnet-sources/artifacts/obj/x64/Release/blob-feed/assets/aspnetcore-runtime-internal-6.0.0-osx-x64.tar.gz'.) [/private/tmp/dotnet-sources/src/installer.02d5242ed7ca7c3747fc89196cf67aeff260c6ac/artifacts/source-build/self/src/src/redist/redist.csproj]

It is looking for 6.0.0 and failing. There is a 6.0.2 version in that directory. Haven't had chance to find where these version numbers are coming from.

I currently updated open Homebrew PR with changes, but it will probably still fail on Intel CI runners due to this. Everything else (nuget-client, fsharp, etc.) was able to build.

@omajid
Copy link
Member

omajid commented Feb 14, 2022

Hey, @crummel, is the tag v6.0.102 currently working for source-build? I recall hearing that there's a later commit needed to get source-build working and pick up a bug fix?

@cho-m
Copy link

cho-m commented Feb 14, 2022

Notes from trying some other tags:

  • v6.0.102-source-build fails at same place when building installer due to mismatch aspnetcore-runtime-internal version (6.0.0 vs. 6.0.2).
  • v6.0.101 fails due to sudo usage

Snippet of failure logs for installer.log
##vso[task.setvariable variable=Artifacts;isSecret=false;isOutput=true]/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts
##vso[task.setvariable variable=Artifacts.Toolset;isSecret=false;isOutput=true]/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/toolset
##vso[task.setvariable variable=Artifacts.Log;isSecret=false;isOutput=true]/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/log/Release
##vso[task.setvariable variable=Temp;isSecret=false;isOutput=true]/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/tmp/Release
##vso[task.setvariable variable=TMP;isSecret=false;isOutput=true]/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/tmp/Release
##vso[task.setvariable variable=NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS;isSecret=false;isOutput=true]20
##vso[task.setvariable variable=NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS;isSecret=false;isOutput=true]20
##vso[task.setvariable variable=NUGET_ENABLE_EXPERIMENTAL_HTTP_RETRY;isSecret=false;isOutput=true]true
##vso[task.setvariable variable=NUGET_EXPERIMENTAL_MAX_NETWORK_TRY_COUNT;isSecret=false;isOutput=true]6
##vso[task.setvariable variable=NUGET_EXPERIMENTAL_NETWORK_RETRY_DELAY_MILLISECONDS;isSecret=false;isOutput=true]1000
/private/tmp/dotnet-sources/.dotnet/sdk/6.0.100/MSBuild.dll /nologo -logger:/private/tmp/dotnet-sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/net6.0/Microsoft.DotNet.ArcadeLogging.dll -maxcpucount /m -verbosity:m /v:minimal /v:minimal /bl:/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/log/Release/Build.binlog /clp:Summary /nr:false /p:TreatWarningsAsErrors=true /p:ContinuousIntegrationBuild=true /p:Configuration=Release /p:RepoRoot=/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe// /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=/private/tmp/dotnet-sources/artifacts/obj/x64/Release/PackageVersions.props /p:AdditionalSourceBuiltNupkgCacheDir=/private/tmp/dotnet-sources/artifacts/obj/x64/Release/blob-feed/packages/ /p:ReferencePackageNupkgCacheDir=/private/tmp/dotnet-sources/packages/reference/packages/ /p:PreviouslySourceBuiltNupkgCacheDir=/private/tmp/dotnet-sources/packages/previously-source-built/ /p:Rid=osx-x64 /p:NETCoreAppMaximumVersion=99.9 /p:OSName=osx /p:DOTNET_INSTALL_DIR=/private/tmp/dotnet-sources/.dotnet/ /p:CoreSetupRid=osx-x64 /p:PublicBaseURL=file:///private/tmp/dotnet-sources/artifacts/obj/x64/Release/blob-feed/assets/ /p:UsePortableLinuxSharedFramework=false /p:DotNetPackageVersionPropsPath=/private/tmp/dotnet-sources/artifacts/obj/x64/Release/PackageVersions.props /p:DotNetRestoreSourcePropsPath=/private/tmp/dotnet-sources/artifacts/obj/x64/Release/RestoreSources.props /p:DotNetBuildOffline=true /warnaserror /private/tmp/dotnet-sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj
  /private/tmp/dotnet-sources/.dotnet/sdk/6.0.100/MSBuild.dll /nologo -logger:/private/tmp/dotnet-sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/net6.0/Microsoft.DotNet.ArcadeLogging.dll -maxcpucount /m -verbosity:m /v:minimal /v:minimal /bl:/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/log/Release/Build.binlog /bl:/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/artifacts/sourcebuild.binlog /clp:Summary /nr:false /p:TreatWarningsAsErrors=true /p:ContinuousIntegrationBuild=true /p:Configuration=Release /p:RepoRoot=/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe// /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=/private/tmp/dotnet-sources/artifacts/obj/x64/Release/PackageVersions.props /p:AdditionalSourceBuiltNupkgCacheDir=/private/tmp/dotnet-sources/artifacts/obj/x64/Release/blob-feed/packages/ /p:ReferencePackageNupkgCacheDir=/private/tmp/dotnet-sources/packages/reference/packages/ /p:PreviouslySourceBuiltNupkgCacheDir=/private/tmp/dotnet-sources/packages/previously-source-built/ /p:Rid=osx-x64 /p:NETCoreAppMaximumVersion=99.9 /p:OSName=osx /p:DOTNET_INSTALL_DIR=/private/tmp/dotnet-sources/.dotnet/ /p:CoreSetupRid=osx-x64 /p:PublicBaseURL=file:///private/tmp/dotnet-sources/artifacts/obj/x64/Release/blob-feed/assets/ /p:UsePortableLinuxSharedFramework=false /p:DotNetPackageVersionPropsPath=/private/tmp/dotnet-sources/artifacts/obj/x64/Release/PackageVersions.props /p:DotNetRestoreSourcePropsPath=/private/tmp/dotnet-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=/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/ /p:ArtifactsDir=/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/artifacts/ /p:ContinuousIntegrationBuild=true /p:SourceBuildOutputDir=/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/ /p:SourceBuiltBlobFeedDir= /p:EnableSourceControlManagerQueries=false /p:EnableSourceLink=false /p:DeterministicSourcePaths=false /p:DotNetBuildOffline=true /p:DotNetPackageVersionPropsPath=/private/tmp/dotnet-sources/artifacts/obj/x64/Release/PackageVersions.props /warnaserror /private/tmp/dotnet-sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj
    Determining projects to restore...
    Restored /private/tmp/dotnet-sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/Tools.proj (in 370 ms).
  [SourceBuiltSdkResolver] Looking for SDK Microsoft.NET.Sdk. Detected config(s) in env: 'ARCADE' for 'Microsoft.DotNet.Arcade.Sdk/6.0.0-beta.21609.4' at '/private/tmp/dotnet-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.21609.4' at '/private/tmp/dotnet-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.21609.4' at '/private/tmp/dotnet-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.21609.4' at '/private/tmp/dotnet-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.21609.4' at '/private/tmp/dotnet-sources/Tools/source-built/Microsoft.DotNet.Arcade.Sdk/'
    Determining projects to restore...
    Restored /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/Microsoft.Dotnet.Sdk.Internal/Microsoft.Dotnet.Sdk.Internal.csproj (in 354 ms).
    Restored /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/redist.csproj (in 450 ms).
    Restored /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/core-sdk-tasks/core-sdk-tasks.csproj (in 849 ms).
    Determining projects to restore...
    Microsoft.Dotnet.Sdk.Internal -> /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/artifacts/bin/Microsoft.Dotnet.Sdk.Internal/Release/netstandard2.0/Microsoft.Dotnet.Sdk.Internal.dll
    core-sdk-tasks -> /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/artifacts/bin/core-sdk-tasks/Release/net6.0/core-sdk-tasks.dll
    Restored /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/core-sdk-tasks/core-sdk-tasks.csproj (in 759 ms).
    core-sdk-tasks -> /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/artifacts/tasks/bin/core-sdk-tasks/Release/net6.0/core-sdk-tasks.dll
    redist -> /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/artifacts/bin/redist/Release/net6.0/redist.dll
  /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/targets/GenerateLayout.targets(373,5): error MSB4018: The "DownloadFile" task failed unexpectedly. [/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/redist.csproj]
  /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/targets/GenerateLayout.targets(373,5): error MSB4018: System.AggregateException: One or more errors occurred. (Could not find file '/private/tmp/dotnet-sources/artifacts/obj/x64/Release/blob-feed/assets/aspnetcore-runtime-internal-6.0.0-osx-x64.tar.gz'.) [/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/redist.csproj]
  /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/targets/GenerateLayout.targets(373,5): error MSB4018:  ---> System.IO.FileNotFoundException: Could not find file '/private/tmp/dotnet-sources/artifacts/obj/x64/Release/blob-feed/assets/aspnetcore-runtime-internal-6.0.0-osx-x64.tar.gz'. [/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/redist.csproj]
  /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/targets/GenerateLayout.targets(373,5): error MSB4018: File name: '/private/tmp/dotnet-sources/artifacts/obj/x64/Release/blob-feed/assets/aspnetcore-runtime-internal-6.0.0-osx-x64.tar.gz' [/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/redist.csproj]
  /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/targets/GenerateLayout.targets(373,5): error MSB4018:    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter) [/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/redist.csproj]
  /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/targets/GenerateLayout.targets(373,5): error MSB4018:    at Interop.CheckIo(Error error, String path, Boolean isDirectory, Func`2 errorRewriter) [/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/redist.csproj]
  /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/targets/GenerateLayout.targets(373,5): error MSB4018:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode) [/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/redist.csproj]
  /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/targets/GenerateLayout.targets(373,5): error MSB4018:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) [/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/redist.csproj]
  /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/targets/GenerateLayout.targets(373,5): error MSB4018:    at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite) [/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/redist.csproj]
  /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/targets/GenerateLayout.targets(373,5): error MSB4018:    at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite) [/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/redist.csproj]
  /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/targets/GenerateLayout.targets(373,5): error MSB4018:    at Microsoft.DotNet.Arcade.Sdk.DownloadFile.DownloadFromUriAsync(String uri) in /private/tmp/dotnet-sources/src/arcade.7421b55f46aff8373764016d942b23cbf87c75cb/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs:line 108 [/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/redist.csproj]
  /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/targets/GenerateLayout.targets(373,5): error MSB4018:    --- End of inner exception stack trace --- [/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/redist.csproj]
  /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/targets/GenerateLayout.targets(373,5): error MSB4018:    at Microsoft.DotNet.Arcade.Sdk.DownloadFile.Execute() in /private/tmp/dotnet-sources/src/arcade.7421b55f46aff8373764016d942b23cbf87c75cb/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs:line 49 [/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/redist.csproj]
  /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/targets/GenerateLayout.targets(373,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/redist.csproj]
  /private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/targets/GenerateLayout.targets(373,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/redist.csproj]
  ##vso[task.logissue type=error;sourcepath=/private/tmp/dotnet-sources/src/installer.49861cb924cdd74be8de19206b48de4f04c0ecbe/artifacts/source-build/self/src/src/redist/targets/GenerateLayout.targets;linenumber=373;columnnumber=5;code=MSB4018;](NETCORE_ENGINEERING_TELEMETRY=Build) The "DownloadFile" task failed unexpectedly.%0ASystem.AggregateException: One or more errors occurred. (Could not find file '/private/tmp/dotnet-sources/artifacts/obj/x64/Release/blob-feed/assets/aspnetcore-runtime-internal-6.0.0-osx-x64.tar.gz'.)%0A ---> System.IO.FileNotFoundException: Could not find file '/private/tmp/dotnet-sources/artifacts/obj/x64/Release/blob-feed/assets/aspnetcore-runtime-internal-6.0.0-osx-x64.tar.gz'.%0AFile name: '/private/tmp/dotnet-sources/artifacts/obj/x64/Release/blob-feed/assets/aspnetcore-runtime-internal-6.0.0-osx-x64.tar.gz'%0A   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)%0A   at Interop.CheckIo(Error error, String path, Boolean isDirectory, Func`2 errorRewriter)%0A   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)%0A   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)%0A   at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)%0A   at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)%0A   at Microsoft.DotNet.Arcade.Sdk.DownloadFile.DownloadFromUriAsync(String uri) in /private/tmp/dotnet-sources/src/arcade.7421b55f46aff8373764016d942b23cbf87c75cb/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs:line 108%0A   --- End of inner exception stack trace ---%0A   at Microsoft.DotNet.Arcade.Sdk.DownloadFile.Execute() in /private/tmp/dotnet-sources/src/arcade.7421b55f46aff8373764016d942b23cbf87c75cb/artifacts/source-build/self/src/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs:line 49%0A   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)
  
  Build FAILED.

EDIT: Now using v6.0.100 since it doesn't have the aspnetcore-runtime-internal issue

@asbjornu
Copy link
Member Author

Homebrew/homebrew-core#92991 is now merged and brew install dotnet is finally working again. 😃 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-support Issues related to community bring up of distros.
Projects
None yet
Development

No branches or pull requests

7 participants