runtime: csc.dll code 139 error when building project on .NET Core 2.1.302 Ubuntu 16.04 ARM64

I have downloaded .NET Core SDK for linux ARM64 on my Jetson TX2 running ubuntu 16.04.

nvidia@tegra-ubuntu:~$ dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   2.1.302
 Commit:    9048955601

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  16.04
 OS Platform: Linux
 RID:         ubuntu.16.04-arm64
 Base Path:   /usr/share/dotnet/sdk/2.1.302/

Host (useful for support):
  Version: 2.1.2
  Commit:  811c3ce6c0

.NET Core SDKs installed:
  2.1.302 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.NETCore.App 2.1.2 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download
nvidia@tegra-ubuntu:~$ 

However I am unable to run any dotnet application (even the hello world example) on my Jetson TX2.

nvidia@tegra-ubuntu:~$ dotnet new console -o myApp --force
The template "Console Application" was created successfully.

Processing post-creation actions...
Running 'dotnet restore' on myApp/myApp.csproj...
  Restoring packages for /home/nvidia/myApp/myApp.csproj...
  Generating MSBuild file /home/nvidia/myApp/obj/myApp.csproj.nuget.g.props.
  Generating MSBuild file /home/nvidia/myApp/obj/myApp.csproj.nuget.g.targets.
  Restore completed in 1.58 sec for /home/nvidia/myApp/myApp.csproj.

Restore succeeded.
nvidia@tegra-ubuntu:~/myApp$ dotnet run
/usr/share/dotnet/sdk/2.1.302/Roslyn/Microsoft.CSharp.Core.targets(52,5): error MSB6006: "csc.dll" exited with code 139. [/home/nvidia/myApp/myApp.csproj]

The build failed. Please fix the build errors and run again.

I wish to build iotedge for Jetson TX2 and dotnet Core 2.1 is a dependency for the same.

This is my binary log file. I had to rename it with a .zip extension to upload here. just rename the file from msbuild.binlog.zip to msbuild.binlog

msbuild.binlog.zip

https://github.com/dotnet/roslyn/issues/29194

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 26 (14 by maintainers)

Most upvoted comments

The problem still exists on 2.1.402 and 2.2.100-preview3-009423. But the problem doesn’t exist on sdk 3.0.100-alpha1-009630 (host: 3.0.0-preview1-26928-03).

@janvorli Thenks for helpful hint. I was able to restore packages, but compilation still does not work. rock64@rock64:~/dev/myApp5$ dotnet restore Restoring packages for /home/rock64/dev/myApp5/myApp5.csproj… Installing Microsoft.NETCore.DotNetAppHost 2.2.0-preview3-27002-02. Installing Microsoft.NETCore.DotNetHostResolver 2.2.0-preview3-27002-02. Installing Microsoft.NETCore.DotNetHostPolicy 2.2.0-preview3-27002-02. Installing Microsoft.NETCore.Platforms 2.2.0-preview3-27002-02. Installing Microsoft.NETCore.Targets 2.0.0. Installing Microsoft.NETCore.App 2.2.0-preview3-27002-02. Generating MSBuild file /home/rock64/dev/myApp5/obj/myApp5.csproj.nuget.g.props. Generating MSBuild file /home/rock64/dev/myApp5/obj/myApp5.csproj.nuget.g.targets. Restore completed in 8.85 sec for /home/rock64/dev/myApp5/myApp5.csproj. rock64@rock64:~/dev/myApp5$ dotnet run /home/rock64/dotnet/sdk/2.2.100-preview3-009423/Roslyn/Microsoft.CSharp.Core.targets(52,5): error MSB6006: “csc.dll” exited with code 139. [/home/rock64/dev/myApp5/myApp5.csproj]

The build failed. Please fix the build errors and run again.

rock64@rock64:~/dev/myApp5$ dotnet --info .NET Core SDK (reflecting any global.json): Version: 2.2.100-preview3-009423 Commit: 559795b616

Runtime Environment: OS Name: ubuntu OS Version: 18.04 OS Platform: Linux RID: ubuntu.18.04-arm64 Base Path: /home/rock64/dotnet/sdk/2.2.100-preview3-009423/

Host (useful for support): Version: 2.2.0-preview3-27002-02 Commit: 525082ca3e

.NET Core SDKs installed: 2.2.100-preview3-009423 [/home/rock64/dotnet/sdk]

.NET Core runtimes installed: Microsoft.NETCore.App 2.2.0-preview3-27002-02 [/home/rock64/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download

@gauravagarwal28 sure it’s ubuntu 16 arm64. I’ve switched to using mono for the time being.