Describe the Bug
I tried building .NET 8 preview 4 from source by cloning the dotnet/dotnet repository and checking out the tag v8.0.0-preview.4.23259.5.
The first time, I tried building using the command: VERBOSE=1 ./build.sh --clean-while-building --with-sdk ./previously-built-dotnet -- /v:n /p:SkipPortableRuntimeBuild=true /p:LogVerbosity=n /p:MinimalConsoleLogOutput=false /p:ContinueOnPrebuiltBaselineError=true
Which resulted in:
...
Build FAILED.
"/home/ubuntu/dn8/dotnet8-preview4/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj" (default target) (1) ->
"/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/Razor.Slim.slnf" (Restore target) (8) ->
(Restore target) ->
/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/src/Shared/Microsoft.AspNetCore.Razor.Utilities.Shared/Microsoft.AspNetCore.Razor.Utilities.Shared.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Ref with version (= 7.0.2) [/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/Razor.Slim.slnf]
/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/src/Shared/Microsoft.AspNetCore.Razor.Utilities.Shared/Microsoft.AspNetCore.Razor.Utilities.Shared.csproj : error NU1102: - Found 5 version(s) in previously-source-built [ Nearest version: 8.0.0-preview.3.23174.8 ] [/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/Razor.Slim.slnf]
/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/src/Shared/Microsoft.AspNetCore.Razor.Utilities.Shared/Microsoft.AspNetCore.Razor.Utilities.Shared.csproj : error NU1102: - Found 5 version(s) in reference-packages [ Nearest version: 7.0.0 ] [/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/Razor.Slim.slnf]
/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/src/Shared/Microsoft.AspNetCore.Razor.Utilities.Shared/Microsoft.AspNetCore.Razor.Utilities.Shared.csproj : error NU1102: - Found 0 version(s) in source-built [/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/Razor.Slim.slnf]
/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/src/Shared/Microsoft.AspNetCore.Razor.Utilities.Shared/Microsoft.AspNetCore.Razor.Utilities.Shared.csproj : error NU1102: - Found 0 version(s) in prebuilt [/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/Razor.Slim.slnf]
/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/src/Shared/Microsoft.AspNetCore.Razor.Utilities.Shared/Microsoft.AspNetCore.Razor.Utilities.Shared.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Ref with version (= 7.0.2) [/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/Razor.Slim.slnf]
/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/src/Shared/Microsoft.AspNetCore.Razor.Utilities.Shared/Microsoft.AspNetCore.Razor.Utilities.Shared.csproj : error NU1102: - Found 4 version(s) in previously-source-built [ Nearest version: 8.0.0-preview.3.23177.8 ] [/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/Razor.Slim.slnf]
/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/src/Shared/Microsoft.AspNetCore.Razor.Utilities.Shared/Microsoft.AspNetCore.Razor.Utilities.Shared.csproj : error NU1102: - Found 3 version(s) in reference-packages [ Nearest version: 7.0.0 ] [/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/Razor.Slim.slnf]
/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/src/Shared/Microsoft.AspNetCore.Razor.Utilities.Shared/Microsoft.AspNetCore.Razor.Utilities.Shared.csproj : error NU1102: - Found 0 version(s) in source-built [/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/Razor.Slim.slnf]
/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/src/Shared/Microsoft.AspNetCore.Razor.Utilities.Shared/Microsoft.AspNetCore.Razor.Utilities.Shared.csproj : error NU1102: - Found 0 version(s) in prebuilt [/home/ubuntu/dn8/dotnet8-preview4/src/razor/artifacts/source-build/self/src/Razor.Slim.slnf]
0 Warning(s)
2 Error(s)
...
Full log file: https://drive.google.com/file/d/1CpGIlq1bDBVHr1onCCrpKCDPasZn3RBW/view?usp=sharing
Then, on a clean clone of the same repo and tag, I tried adding the --online flag to the same command as above, which resulted in a failed build a bit later in the process:
...
Build FAILED.
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.Build.Tasks.Console/NuGet.Build.Tasks.Console.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Host.ubuntu.23.10-x64 with version (= 7.0.2) [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.Build.Tasks.Console/NuGet.Build.Tasks.Console.csproj : error NU1102: - Found 1 version(s) in source-built [ Nearest version: 8.0.0-preview.4.23259.5 ] [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.Build.Tasks.Console/NuGet.Build.Tasks.Console.csproj : error NU1102: - Found 1 version(s) in previously-source-built [ Nearest version: 8.0.0-preview.3.23174.8 ] [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.Build.Tasks.Console/NuGet.Build.Tasks.Console.csproj : error NU1102: - Found 0 version(s) in prebuilt [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.Build.Tasks.Console/NuGet.Build.Tasks.Console.csproj : error NU1102: - Found 0 version(s) in reference-packages [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.Build.Tasks.Console/NuGet.Build.Tasks.Console.csproj : error NU1102: - Found 0 version(s) in dotnet-eng [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.Build.Tasks.Console/NuGet.Build.Tasks.Console.csproj : error NU1102: - Found 0 version(s) in dotnet-public [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.Build.Tasks.Console/NuGet.Build.Tasks.Console.csproj : error NU1102: - Found 0 version(s) in myget-legacy@Local [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.Build.Tasks.Console/NuGet.Build.Tasks.Console.csproj : error NU1102: - Versions from nuget-build were not considered [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.Build.Tasks.Console/NuGet.Build.Tasks.Console.csproj : error NU1102: - Versions from vside were not considered [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.CommandLine.XPlat/NuGet.CommandLine.XPlat.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Host.ubuntu.23.10-x64 with version (= 7.0.2) [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.CommandLine.XPlat/NuGet.CommandLine.XPlat.csproj : error NU1102: - Found 1 version(s) in source-built [ Nearest version: 8.0.0-preview.4.23259.5 ] [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.CommandLine.XPlat/NuGet.CommandLine.XPlat.csproj : error NU1102: - Found 1 version(s) in previously-source-built [ Nearest version: 8.0.0-preview.3.23174.8 ] [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.CommandLine.XPlat/NuGet.CommandLine.XPlat.csproj : error NU1102: - Found 0 version(s) in prebuilt [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.CommandLine.XPlat/NuGet.CommandLine.XPlat.csproj : error NU1102: - Found 0 version(s) in reference-packages [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.CommandLine.XPlat/NuGet.CommandLine.XPlat.csproj : error NU1102: - Found 0 version(s) in dotnet-eng [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.CommandLine.XPlat/NuGet.CommandLine.XPlat.csproj : error NU1102: - Found 0 version(s) in dotnet-public [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.CommandLine.XPlat/NuGet.CommandLine.XPlat.csproj : error NU1102: - Found 0 version(s) in myget-legacy@Local [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.CommandLine.XPlat/NuGet.CommandLine.XPlat.csproj : error NU1102: - Versions from nuget-build were not considered [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/src/NuGet.Core/NuGet.CommandLine.XPlat/NuGet.CommandLine.XPlat.csproj : error NU1102: - Versions from vside were not considered [/home/ubuntu/dn8/dotnet8-preview4-online/src/nuget-client/build/restorehelper.targets]
0 Warning(s)
2 Error(s)
...
Full log file: https://drive.google.com/file/d/1XPrtvpec-eI8uj8oJ3J2V6Qjj_BS7Pzi/view?usp=sharing
Steps to Reproduce
- Launch a clean Ubuntu 23.10 LXD container with
lxc launch ubuntu:23.10
- Install the .NET build prerequisites for Linux as documented
- Add this PPA to the apt sources
- Run
sudo apt update && sudo apt upgrade
- Run
sudo apt install dotnet-sdk-8.0 dotnet-sdk-8.0-source-built-artifacts
git clone https://github.com/dotnet/dotnet && cd dotnet
git checkout v8.0.0-preview.4.23259.5
- Run
ln -s /usr/lib/dotnet/source-built-artifacts/Private.SourceBuilt.Artifacts.8.0.100.ubuntu.23.10-x64.tar.gz ./prereqs/packages/archive/ from the repo root
- Run
cp -RLp /usr/lib/dotnet/ ./previously-built-dotnet from the repo root
- Run either of the
./build.sh commands described above
Other Information
- The
dotnet-sdk-8.0-source-built-artifacts includes the pre-built binaries from the bootstrap package, which are placed under /usr/lib/dotnet/source-built-artifacts/Private.SourceBuilt.Artifacts.8.0.100.ubuntu.23.10-x64.tar.gz
cc @MichaelSimons
Describe the Bug
I tried building .NET 8 preview 4 from source by cloning the
dotnet/dotnetrepository and checking out the tagv8.0.0-preview.4.23259.5.The first time, I tried building using the command:
VERBOSE=1 ./build.sh --clean-while-building --with-sdk ./previously-built-dotnet -- /v:n /p:SkipPortableRuntimeBuild=true /p:LogVerbosity=n /p:MinimalConsoleLogOutput=false /p:ContinueOnPrebuiltBaselineError=trueWhich resulted in:
Full log file: https://drive.google.com/file/d/1CpGIlq1bDBVHr1onCCrpKCDPasZn3RBW/view?usp=sharing
Then, on a clean clone of the same repo and tag, I tried adding the
--onlineflag to the same command as above, which resulted in a failed build a bit later in the process:Full log file: https://drive.google.com/file/d/1XPrtvpec-eI8uj8oJ3J2V6Qjj_BS7Pzi/view?usp=sharing
Steps to Reproduce
lxc launch ubuntu:23.10sudo apt update && sudo apt upgradesudo apt install dotnet-sdk-8.0 dotnet-sdk-8.0-source-built-artifactsgit clone https://github.com/dotnet/dotnet && cd dotnetgit checkout v8.0.0-preview.4.23259.5ln -s /usr/lib/dotnet/source-built-artifacts/Private.SourceBuilt.Artifacts.8.0.100.ubuntu.23.10-x64.tar.gz ./prereqs/packages/archive/from the repo rootcp -RLp /usr/lib/dotnet/ ./previously-built-dotnetfrom the repo root./build.shcommands described aboveOther Information
dotnet-sdk-8.0-source-built-artifactsincludes the pre-built binaries from the bootstrap package, which are placed under/usr/lib/dotnet/source-built-artifacts/Private.SourceBuilt.Artifacts.8.0.100.ubuntu.23.10-x64.tar.gzcc @MichaelSimons