roslyn: MSB6006: "RunCsc" exited with code 131.

Version Used:

Archlinux x64
dotnet --version
2.2.0-preview1-007622

Steps to Reproduce:

  1. git clone https://github.com/dotnet/roslyn.git
  2. cd roslyn
  3. ./build/scripts/restore.sh
  4. dotnet build Compilers.sln

Expected Behavior: STEP 4 without any errors.

Actual Behavior: STEP 4 with errors:

 dotnet build Compilers.sln
Microsoft (R) Build Engine version 15.5.178.35674 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 48.9 ms for /tmp/roslyn/src/CodeStyle/CSharp/Tests/CSharpCodeStyleTests.csproj.
  Restore completed in 53.73 ms for /tmp/roslyn/src/CodeStyle/CSharp/CodeFixes/CSharpCodeStyleFixes.csproj.
  Restore completed in 39.13 ms for /tmp/roslyn/build/Toolset/Toolset.csproj.
  Restore completed in 53.97 ms for /tmp/roslyn/src/CodeStyle/CSharp/Analyzers/CSharpCodeStyle.csproj.
  Restore completed in 13.35 ms for /tmp/roslyn/src/CodeStyle/Core/Analyzers/CodeStyle.csproj.
  Restore completed in 14.59 ms for /tmp/roslyn/src/CodeStyle/VisualBasic/Analyzers/BasicCodeStyle.vbproj.
  Restore completed in 17.07 ms for /tmp/roslyn/src/CodeStyle/Core/CodeFixes/CodeStyleFixes.csproj.
  Restore completed in 16.51 ms for /tmp/roslyn/src/Compilers/CSharp/Portable/CSharpCodeAnalysis.csproj.
  Restore completed in 21.21 ms for /tmp/roslyn/src/CodeStyle/Core/Tests/CodeStyleTests.csproj.
  Restore completed in 8.62 ms for /tmp/roslyn/src/CodeStyle/VisualBasic/CodeFixes/BasicCodeStyleFixes.vbproj.
  Restore completed in 20.98 ms for /tmp/roslyn/src/Compilers/CSharp/Test/Semantic/CSharpCompilerSemanticTest.csproj.
  Restore completed in 20.59 ms for /tmp/roslyn/src/Compilers/CSharp/Test/Emit/CSharpCompilerEmitTest.csproj.
  Restore completed in 21.26 ms for /tmp/roslyn/src/Compilers/CSharp/Test/CommandLine/CSharpCommandLineTest.csproj.
  Restore completed in 26.79 ms for /tmp/roslyn/src/Compilers/CSharp/Test/WinRT/CSharpWinRTTest.csproj.
  Restore completed in 52.91 ms for /tmp/roslyn/src/CodeStyle/VisualBasic/Tests/BasicCodeStyleTests.vbproj.
  Restore completed in 53.92 ms for /tmp/roslyn/src/Compilers/CSharp/Test/Syntax/CSharpCompilerSyntaxTest.csproj.
  Restore completed in 20.31 ms for /tmp/roslyn/src/Compilers/Core/MSBuildTask/MSBuildTask.csproj.
  Restore completed in 28.16 ms for /tmp/roslyn/src/Compilers/Core/CodeAnalysisTest/CodeAnalysisTest.csproj.
  Restore completed in 5.12 ms for /tmp/roslyn/src/Compilers/Core/Portable/CodeAnalysis.csproj.
  Restore completed in 33.69 ms for /tmp/roslyn/src/Compilers/Core/MSBuildTaskTests/MSBuildTaskTests.csproj.
  Restore completed in 37.1 ms for /tmp/roslyn/src/Compilers/CSharp/csc/csc.csproj.
  Restore completed in 31.5 ms for /tmp/roslyn/src/Compilers/Server/PortableServer/PortableServer.csproj.
  Restore completed in 19.24 ms for /tmp/roslyn/src/Compilers/Test/Resources/Core/CompilerTestResources.csproj.
  Restore completed in 77.61 ms for /tmp/roslyn/src/Compilers/Server/VBCSCompiler/VBCSCompiler.csproj.
  Restore completed in 36.78 ms for /tmp/roslyn/src/Compilers/Test/Utilities/CSharp/CSharpCompilerTestUtilities.csproj.
  Restore completed in 5.04 ms for /tmp/roslyn/src/Compilers/VisualBasic/Portable/BasicCodeAnalysis.vbproj.
  Restore completed in 33.42 ms for /tmp/roslyn/src/Compilers/Test/Utilities/VisualBasic/BasicCompilerTestUtilities.vbproj.
  Restore completed in 75.11 ms for /tmp/roslyn/src/Compilers/Server/VBCSCompilerTests/VBCSCompilerTests.csproj.
  Restore completed in 49.23 ms for /tmp/roslyn/src/Compilers/VisualBasic/Test/CommandLine/BasicCommandLineTest.vbproj.
  Restore completed in 41.38 ms for /tmp/roslyn/src/Compilers/VisualBasic/Test/Emit/BasicCompilerEmitTest.vbproj.
  Restore completed in 34.47 ms for /tmp/roslyn/src/Compilers/VisualBasic/Test/Semantic/BasicCompilerSemanticTest.vbproj.
  Restore completed in 34.28 ms for /tmp/roslyn/src/Compilers/VisualBasic/Test/Symbol/BasicCompilerSymbolTest.vbproj.
  Restore completed in 110.2 ms for /tmp/roslyn/src/Compilers/VisualBasic/Test/Syntax/BasicCompilerSyntaxTest.vbproj.
  Restore completed in 25.44 ms for /tmp/roslyn/src/Scripting/CSharp/CSharpScripting.csproj.
  Restore completed in 36.44 ms for /tmp/roslyn/src/Compilers/VisualBasic/vbc/vbc.csproj.
  Restore completed in 11.74 ms for /tmp/roslyn/src/Scripting/Core/Scripting.csproj.
  Restore completed in 80.6 ms for /tmp/roslyn/src/Scripting/CSharpTest/CSharpScriptingTest.csproj.
  Restore completed in 30.86 ms for /tmp/roslyn/src/Interactive/csi/csi.csproj.
  Restore completed in 31.34 ms for /tmp/roslyn/src/Scripting/VisualBasic/BasicScripting.vbproj.
  Restore completed in 33.04 ms for /tmp/roslyn/src/Scripting/CoreTest/ScriptingTest.csproj.
  Restore completed in 64.37 ms for /tmp/roslyn/src/Scripting/CoreTestUtilities/ScriptingTestUtilities.csproj.
  Restore completed in 41.1 ms for /tmp/roslyn/src/Scripting/VisualBasicTest/BasicScriptingTest.vbproj.
  Restore completed in 27.2 ms for /tmp/roslyn/src/Test/PdbUtilities/PdbUtilities.csproj.
  Restore completed in 23.94 ms for /tmp/roslyn/src/Test/Utilities/Portable/TestUtilities.csproj.
  Restore completed in 1.98 ms for /tmp/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/CSharpErrorFactsGenerator/CSharpErrorFactsGenerator.csproj.
  Restore completed in 16.5 ms for /tmp/roslyn/src/Tools/ILAsm/ILAsm.csproj.
  Restore completed in 8.93 ms for /tmp/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/BoundTreeGenerator/CompilersBoundTreeGenerator.csproj.
  Restore completed in 13.52 ms for /tmp/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/CSharpSyntaxGenerator/CSharpSyntaxGenerator.csproj.
  Restore completed in 1.74 ms for /tmp/roslyn/src/Tools/Source/RunTests/RunTests.csproj.
  Restore completed in 2.98 ms for /tmp/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/VisualBasicErrorFactsGenerator/VisualBasicErrorFactsGenerator.vbproj.
  Restore completed in 9.8 ms for /tmp/roslyn/src/Workspaces/CSharp/Portable/CSharpWorkspace.csproj.
  Restore completed in 11.68 ms for /tmp/roslyn/src/Workspaces/Core/Portable/Workspaces.csproj.
  Restore completed in 7.62 ms for /tmp/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/VisualBasicSyntaxGenerator/VisualBasicSyntaxGenerator.vbproj.
  Restore completed in 26.8 ms for /tmp/roslyn/src/Workspaces/VisualBasic/Portable/BasicWorkspace.vbproj.
  Restore completed in 23 ms for /tmp/roslyn/src/Compilers/CSharp/Test/Symbol/CSharpCompilerSymbolTest.csproj.
/root/.nuget/packages/microsoft.netcore.compilers/2.6.0-beta3-62308-01/tools/Microsoft.CSharp.Core.targets(84,5): error MSB6006: "RunCsc" exited with code 131. [/tmp/roslyn/src/Compilers/Core/Portable/CodeAnalysis.csproj]
/root/.nuget/packages/microsoft.netcore.compilers/2.6.0-beta3-62308-01/tools/Microsoft.CSharp.Core.targets(84,5): error MSB6006: "RunCsc" exited with code 131. [/tmp/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/BoundTreeGenerator/CompilersBoundTreeGenerator.csproj]
/root/.nuget/packages/microsoft.netcore.compilers/2.6.0-beta3-62308-01/tools/Microsoft.CSharp.Core.targets(84,5): error MSB6006: "RunCsc" exited with code 131. [/tmp/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/CSharpErrorFactsGenerator/CSharpErrorFactsGenerator.csproj]
/root/.nuget/packages/microsoft.netcore.compilers/2.6.0-beta3-62308-01/tools/Microsoft.CSharp.Core.targets(84,5): error MSB6006: "RunCsc" exited with code 131. [/tmp/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/CSharpSyntaxGenerator/CSharpSyntaxGenerator.csproj]
/opt/microsoft/sdk/sdk/2.2.0-preview1-007622/Roslyn/Microsoft.VisualBasic.Core.targets(73,5): error MSB6006: "RunVbc" exited with code 131. [/tmp/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/VisualBasicSyntaxGenerator/VisualBasicSyntaxGenerator.vbproj]
/opt/microsoft/sdk/sdk/2.2.0-preview1-007622/Roslyn/Microsoft.VisualBasic.Core.targets(73,5): error MSB6006: "RunVbc" exited with code 131. [/tmp/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/VisualBasicErrorFactsGenerator/VisualBasicErrorFactsGenerator.vbproj]
/root/.nuget/packages/microsoft.netcore.compilers/2.6.0-beta3-62308-01/tools/Microsoft.CSharp.Core.targets(84,5): error MSB6006: "RunCsc" exited with code 131. [/tmp/roslyn/src/Tools/Source/RunTests/RunTests.csproj]
/root/.nuget/packages/microsoft.netcore.compilers/2.6.0-beta3-62308-01/tools/Microsoft.CSharp.Core.targets(84,5): error MSB6006: "RunCsc" exited with code 131. [/tmp/roslyn/src/Compilers/Core/MSBuildTask/MSBuildTask.csproj]
/root/.nuget/packages/microsoft.netcore.compilers/2.6.0-beta3-62308-01/tools/Microsoft.CSharp.Core.targets(84,5): error MSB6006: "RunCsc" exited with code 131. [/tmp/roslyn/src/Tools/ILAsm/ILAsm.csproj]

Build FAILED.

/root/.nuget/packages/microsoft.netcore.compilers/2.6.0-beta3-62308-01/tools/Microsoft.CSharp.Core.targets(84,5): error MSB6006: "RunCsc" exited with code 131. [/tmp/roslyn/src/Compilers/Core/Portable/CodeAnalysis.csproj]
/root/.nuget/packages/microsoft.netcore.compilers/2.6.0-beta3-62308-01/tools/Microsoft.CSharp.Core.targets(84,5): error MSB6006: "RunCsc" exited with code 131. [/tmp/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/BoundTreeGenerator/CompilersBoundTreeGenerator.csproj]
/root/.nuget/packages/microsoft.netcore.compilers/2.6.0-beta3-62308-01/tools/Microsoft.CSharp.Core.targets(84,5): error MSB6006: "RunCsc" exited with code 131. [/tmp/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/CSharpErrorFactsGenerator/CSharpErrorFactsGenerator.csproj]
/root/.nuget/packages/microsoft.netcore.compilers/2.6.0-beta3-62308-01/tools/Microsoft.CSharp.Core.targets(84,5): error MSB6006: "RunCsc" exited with code 131. [/tmp/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/CSharpSyntaxGenerator/CSharpSyntaxGenerator.csproj]
/opt/microsoft/sdk/sdk/2.2.0-preview1-007622/Roslyn/Microsoft.VisualBasic.Core.targets(73,5): error MSB6006: "RunVbc" exited with code 131. [/tmp/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/VisualBasicSyntaxGenerator/VisualBasicSyntaxGenerator.vbproj]
/opt/microsoft/sdk/sdk/2.2.0-preview1-007622/Roslyn/Microsoft.VisualBasic.Core.targets(73,5): error MSB6006: "RunVbc" exited with code 131. [/tmp/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/VisualBasicErrorFactsGenerator/VisualBasicErrorFactsGenerator.vbproj]
/root/.nuget/packages/microsoft.netcore.compilers/2.6.0-beta3-62308-01/tools/Microsoft.CSharp.Core.targets(84,5): error MSB6006: "RunCsc" exited with code 131. [/tmp/roslyn/src/Tools/Source/RunTests/RunTests.csproj]
/root/.nuget/packages/microsoft.netcore.compilers/2.6.0-beta3-62308-01/tools/Microsoft.CSharp.Core.targets(84,5): error MSB6006: "RunCsc" exited with code 131. [/tmp/roslyn/src/Compilers/Core/MSBuildTask/MSBuildTask.csproj]
/root/.nuget/packages/microsoft.netcore.compilers/2.6.0-beta3-62308-01/tools/Microsoft.CSharp.Core.targets(84,5): error MSB6006: "RunCsc" exited with code 131. [/tmp/roslyn/src/Tools/ILAsm/ILAsm.csproj]
    0 Warning(s)
    9 Error(s)

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

Hi, I have just encountered simmilar problem, also on Arch Linux. It seems to be caused by broken upgrade process - uninstalling dotnet, removing /opt/dotnet and installing dotnet again helped me:

pacman -R dotnet-runtime dotnet-sdk dotnet-host
rm -rf /opt/dotnet/
sudo pacman -S dotnet-runtime dotnet-sdk dotnet-host

I tested compilation on my new platform: debian 9.4 + net core 2.1 -> roslyn was compiled without any errors. Thank you for good work.