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

Unix build breaks with package errors on recent buildtools update #16729

Closed
Priya91 opened this issue Mar 16, 2016 · 7 comments
Closed

Unix build breaks with package errors on recent buildtools update #16729

Priya91 opened this issue Mar 16, 2016 · 7 comments
Assignees
Milestone

Comments

@Priya91
Copy link
Contributor

Priya91 commented Mar 16, 2016

23:08:31   [06:08:34.36] Restoring all packages...
23:08:37 EXEC : error : System.Globalization 4.0.0 provides a compile-time reference assembly for System.Globalization on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:08:37 EXEC : error : System.Threading 4.0.0 provides a compile-time reference assembly for System.Threading on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:08:37 EXEC : error : System.IO 4.0.0 provides a compile-time reference assembly for System.IO on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:08:37 EXEC : error : System.Threading.Tasks 4.0.0 provides a compile-time reference assembly for System.Threading.Tasks on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:08:37 EXEC : error : System.Text.Encoding 4.0.0 provides a compile-time reference assembly for System.Text.Encoding on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:08:37 EXEC : error : Some packages are not compatible with .NETCore,Version=v5.0 (ubuntu.14.04-x64). [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:08:45 EXEC : error : System.Runtime.InteropServices 4.0.0 provides a compile-time reference assembly for System.Runtime.InteropServices on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:08:45 EXEC : error : System.Text.Encoding 4.0.0 provides a compile-time reference assembly for System.Text.Encoding on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:08:45 EXEC : error : System.IO 4.0.0 provides a compile-time reference assembly for System.IO on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:08:45 EXEC : error : Some packages are not compatible with .NETCore,Version=v5.0 (ubuntu.14.04-x64). [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:00 EXEC : error : System.Collections 4.0.0 provides a compile-time reference assembly for System.Collections on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:00 EXEC : error : System.Threading 4.0.0 provides a compile-time reference assembly for System.Threading on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:00 EXEC : error : System.Globalization 4.0.0 provides a compile-time reference assembly for System.Globalization on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:00 EXEC : error : System.Threading.Tasks 4.0.0 provides a compile-time reference assembly for System.Threading.Tasks on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:00 EXEC : error : System.IO 4.0.0 provides a compile-time reference assembly for System.IO on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:00 EXEC : error : System.Text.Encoding 4.0.0 provides a compile-time reference assembly for System.Text.Encoding on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:00 EXEC : error : Some packages are not compatible with .NETCore,Version=v5.0 (ubuntu.14.04-x64). [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:03 EXEC : error : System.Globalization 4.0.0 provides a compile-time reference assembly for System.Globalization on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:03 EXEC : error : System.Runtime.Extensions 4.0.0 provides a compile-time reference assembly for System.Runtime.Extensions on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:03 EXEC : error : System.Threading.Tasks 4.0.0 provides a compile-time reference assembly for System.Threading.Tasks on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:03 EXEC : error : System.IO 4.0.0 provides a compile-time reference assembly for System.IO on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:03 EXEC : error : System.Text.Encoding 4.0.0 provides a compile-time reference assembly for System.Text.Encoding on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:03 EXEC : error : Some packages are not compatible with .NETCore,Version=v5.0 (ubuntu.14.04-x64). [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:19 EXEC : error : System.Diagnostics.Debug 4.0.0 provides a compile-time reference assembly for System.Diagnostics.Debug on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:20 EXEC : error : System.Threading.Tasks 4.0.0 provides a compile-time reference assembly for System.Threading.Tasks on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:20 EXEC : error : System.IO 4.0.0 provides a compile-time reference assembly for System.IO on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:20 EXEC : error : System.Text.Encoding 4.0.0 provides a compile-time reference assembly for System.Text.Encoding on .NETCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:20 EXEC : error : Some packages are not compatible with .NETCore,Version=v5.0 (ubuntu.14.04-x64). [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj]
23:09:32 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/build.proj(58,5): error MSB3073: The command ""/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/dotnetcli/bin/dotnet" restore --packages "/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/packages" --source https://dotnet.myget.org/F/dotnet-core/api/v3/index.json --source https://www.nuget.org/api/v2/ "/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src" "/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/pkg"" exited with code -1.
23:09:32   [06:09:35.51] Restoring all packages...Done.
23:09:33 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/PackageLibs.targets(155,5): error MSB4018: The "ValidatePackageTargetFramework" task failed unexpectedly. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src/Microsoft.CSharp/ref/Microsoft.CSharp.csproj]
23:09:33 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/PackageLibs.targets(155,5): error MSB4018: System.MissingFieldException: Field not found: 'CommonFrameworks.NetStandard'. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src/Microsoft.CSharp/ref/Microsoft.CSharp.csproj]
23:09:33 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/PackageLibs.targets(155,5): error MSB4018:    at Microsoft.DotNet.Build.Tasks.Packaging.ValidatePackageTargetFramework.Execute() [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src/Microsoft.CSharp/ref/Microsoft.CSharp.csproj]
23:09:33 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/PackageLibs.targets(155,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src/Microsoft.CSharp/ref/Microsoft.CSharp.csproj]
23:09:33 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/PackageLibs.targets(155,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__25.MoveNext() [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src/Microsoft.CSharp/ref/Microsoft.CSharp.csproj]
23:09:33 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/PackageLibs.targets(155,5): error MSB4018: The "ValidatePackageTargetFramework" task failed unexpectedly. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src/Microsoft.VisualBasic/ref/Microsoft.VisualBasic.csproj]
23:09:33 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/PackageLibs.targets(155,5): error MSB4018: System.MissingFieldException: Field not found: 'CommonFrameworks.NetStandard'. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src/Microsoft.VisualBasic/ref/Microsoft.VisualBasic.csproj]
23:09:33 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/PackageLibs.targets(155,5): error MSB4018:    at Microsoft.DotNet.Build.Tasks.Packaging.ValidatePackageTargetFramework.Execute() [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src/Microsoft.VisualBasic/ref/Microsoft.VisualBasic.csproj]
23:09:33 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/PackageLibs.targets(155,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src/Microsoft.VisualBasic/ref/Microsoft.VisualBasic.csproj]
23:09:33 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/PackageLibs.targets(155,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__25.MoveNext() [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src/Microsoft.VisualBasic/ref/Microsoft.VisualBasic.csproj]
23:09:33 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/PackageLibs.targets(155,5): error MSB4018: The "ValidatePackageTargetFramework" task failed unexpectedly. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src/Microsoft.Win32.Primitives/ref/Microsoft.Win32.Primitives.csproj]
23:09:33 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/PackageLibs.targets(155,5): error MSB4018: System.MissingFieldException: Field not found: 'CommonFrameworks.NetStandard'. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src/Microsoft.Win32.Primitives/ref/Microsoft.Win32.Primitives.csproj]
23:09:33 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/PackageLibs.targets(155,5): error MSB4018:    at Microsoft.DotNet.Build.Tasks.Packaging.ValidatePackageTargetFramework.Execute() [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src/Microsoft.Win32.Primitives/ref/Microsoft.Win32.Primitives.csproj]
23:09:33 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/PackageLibs.targets(155,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src/Microsoft.Win32.Primitives/ref/Microsoft.Win32.Primitives.csproj]
23:09:33 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/PackageLibs.targets(155,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__25.MoveNext() [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src/Microsoft.Win32.Primitives/ref/Microsoft.Win32.Primitives.csproj]
23:09:33 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/PackageLibs.targets(155,5): error MSB4018: The "ValidatePackageTargetFramework" task failed unexpectedly. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src/Microsoft.Win32.Registry.AccessControl/ref/Microsoft.Win32.Registry.AccessControl.csproj]
23:09:33 /mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/Tools/PackageLibs.targets(155,5): error MSB4018: System.MissingFieldException: Field not found: 'CommonFrameworks.NetStandard'. [/mnt/j/workspace/dotnet_corefx/outerloop_ubuntu14.04_debug/src/Microsoft.Win32.Registry.AccessControl/ref/Microsoft.Win32.Registry.AccessControl.csproj]

Full log:
http://dotnet-ci.cloudapp.net/job/dotnet_corefx/job/outerloop_ubuntu14.04_debug/31/console

@ericstj
Copy link
Member

ericstj commented Mar 16, 2016

any chance we can get the actual log file? Console output is not sufficient. /cc @mmitche @Priya91

@ericstj
Copy link
Member

ericstj commented Mar 16, 2016

/cc @dagood anyone with a repro to share the log file with me?

@Priya91
Copy link
Contributor Author

Priya91 commented Mar 16, 2016

@ericstj
The msbuild.log from Ubuntu14.04 build:
https://gist.github.com/Priya91/e8b077727a7a43159a8c

@dagood
Copy link
Member

dagood commented Mar 16, 2016

I repro'd the package restore issues to get at the nuget log: https://gist.github.com/dagood/63affeb2d3aaa7bb0f41

I also noticed this when running init-tools.sh:

Installing dotnet cli...
Restoring BuildTools version 1.0.25-prerelease-00199...
Initializing BuildTools...
/Users/dagood/git/corefx/packages/Microsoft.DotNet.BuildTools/1.0.25-prerelease-00199/lib/tool-runtime/project.json(26,21): warning NU1007: Dependency specified was NuGet.Client >= 3.4.0-rtm-0764 but ended up with NuGet.Client 3.4.0.
/Users/dagood/git/corefx/packages/Microsoft.DotNet.BuildTools/1.0.25-prerelease-00199/lib/tool-runtime/project.json(25,25): warning NU1007: Dependency specified was NuGet.Versioning >= 3.4.0-rtm-0764 but ended up with NuGet.Versioning 3.4.0.
Done initializing tools.

I could only find 3.4.0 on the dotnet.myget.org buildtools feed, and it looks like it's even older than the beta-488 version we were using before. I'm not completely sure where this dependency is used, but maybe this is breaking other package-reading stuff.

@ericstj
Copy link
Member

ericstj commented Mar 16, 2016

Indeed, I need to mirror the latest nuget on our feed from the nugetbuild feed. I'll look through restore errors shortly.

@ericstj
Copy link
Member

ericstj commented Mar 16, 2016

I mirrored the nuget packages, so that should fix the build failures. Looking into restore failures now.

@dagood
Copy link
Member

dagood commented Mar 16, 2016

Confirmed that the mirror fixed the build errors on my mac. (And that the RID PR fixes the restore.)

@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 1.0.0-rc2 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Jan 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants