runtime: Unable to build on Ubuntu 18.04
Iām struggling to build on Ubuntu 18.04 recently. Things get going for a few minutes and then:
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
System.ArgumentNullException: Value cannot be null. Parameter name: array at Microsoft.Build.Execution.BuildManager.EndBuild() at Microsoft.Build.CommandLine.MSBuildApp.BuildProject(String projectFile, String[] targets, String toolsVersion, Dictionary`2 globalProperties, Dictionary`2 restoreProperties, ILogger[] loggers, LoggerVerbosity verbosity, DistributedLoggerRecord[] distributedLoggerRecords, Int32 cpuCount, Boolean enableNodeReuse, TextWriter preprocessWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler, Boolean interactive, Boolean isolateProjects, Boolean graphBuild, String[] inputResultsCaches, String outputResultsCache)
Iām not sure if this is related to dotnet/runtime#29629 or not, but on the surface it seems like two different issues.
This error always occurs after this in the build log:
Verifying closure of runtime.linux-x64.Microsoft.Private.CoreFx.NETCoreApp runtime assemblies
Verifying no duplicate types in runtime.linux-x64.Microsoft.Private.CoreFx.NETCoreApp runtime assemblies
Microsoft.Private.CoreFx.NETCoreApp -> /code/personal/corefx/artifacts/packages/Debug/specs/runtime.linux-x64.Microsoft.Private.CoreFx.NETCoreApp.nuspec
runtime.native.System.IO.Ports -> /code/personal/corefx/artifacts/packages/Debug/specs/runtime.native.System.IO.Ports.nuspec
runtime.native.System.IO.Ports -> /code/personal/corefx/artifacts/packages/Debug/specs/runtime.linux-x64.runtime.native.System.IO.Ports.nuspec
š„
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 36 (36 by maintainers)
Nice job everyone helping root cause this. So the fix is already in Preview 6 then (plus the MSBuild change in next preview).
Thanks, folks! With a private of https://github.com/microsoft/msbuild/pull/4417, I get a better stack:
That looks like a corefx issue to me at first glance.
š regressed here: https://github.com/dotnet/corefx/commit/4214b09864bea0416f17727ffa39a55d950035d1 fixed here: https://github.com/dotnet/corefx/commit/1b6f45ca261467baea62ef577f8b8a7c6cf3b96c
Some more info on the relationship with vscode running: the issue occurs when there is a process with a command line that is long (
strlen(arg[0]) + strlen(arg[1]) + 2 > 512).