runtime: [9.0.1xx-rc1] `MSB0001: Internal MSBuild Error` while building command-line-api
While building in the CentOSStream9_Mono_Offline_CurrentSourceBuiltSdk_x64 leg (Mono Stage 2), the build encountered the following error:
Time Elapsed 00:00:02.47
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
Microsoft.Build.Framework.InternalErrorException: MSB0001: Internal MSBuild Error: Cannot acquire required number of nodes.
=============
System.AggregateException: One or more errors occurred. (Method has zero rva)
---> Microsoft.Build.BackEnd.NodeFailedToLaunchException: Method has zero rva
---> System.BadImageFormatException: Method has zero rva
File name: 'System.Diagnostics.Process'
at System.Runtime.Serialization.SerializationGuard.ThrowIfDeserializationInProgress(String switchSuffix, Int32& cachedValue)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
--- End of inner exception stack trace ---
at Microsoft.Build.BackEnd.NodeLauncher.StartInternal(String msbuildLocation, String commandLineArgs)
at Microsoft.Build.BackEnd.NodeLauncher.<>c__DisplayClass3_0.<Start>b__0()
at Microsoft.Build.BackEnd.NodeLauncher.DisableMSBuildServer(Func`1 func)
at Microsoft.Build.BackEnd.NodeLauncher.Start(String msbuildLocation, String commandLineArgs, Int32 nodeId)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>g__StartNewNode|2(Int32 nodeId)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.<>c__DisplayClass14_0.<GetNodes>b__0(Int32 nodeId)
--- End of inner exception stack trace ---
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 21 (18 by maintainers)
That’s the purpose of this build leg: it first uses coreclr SDK to build an SDK with mono runtime enabled. Then it uses that built SDK to build everything again.
Feel free to transfer it to runtime.
I reproduced it on a ppc64le test machine using .NET 9 Preview 7 to build itself. I can test with a newer version if that will be helpful.
Here’s the binlogs from the cecil project: binlogs.tar.gz
This is MSBuild reporting a failure to create a new worker process with a command line like
dotnet path/to/MSBuild.dll. Looking at it I’d suspect a runtime problem, maybeSystem.Processitself?Maybe @rainersigwald would have a better idea.