Skip to content

Unable to run hello world on ARM Linux #33034

@Const-me

Description

@Const-me

The command I'm running: dotnet my.dll

A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '...'.
Failed to run as a self-contained app. If this should be a framework-dependent app, add the ...runtimeconfig.json file specifying the appropriate framework.

Content of my runtimeconfig.json:

{
  "runtimeOptions": {
    "tfm": "netcoreapp2.1",
    "framework": {
      "name": "Microsoft.NETCore.App",
      "version": "2.1"
    }
  }
}

I’ve even verified that nano opens that file, by copy-pasting the path, opens OK.

Output of dotnet --info

Host (useful for support):
  Version: 2.1.16
  Commit:  5f979c18c1

.NET Core SDKs installed:
  No SDKs were found.

.NET Core runtimes installed:
  Microsoft.NETCore.App 2.1.16 [/opt/dotnet/shared/Microsoft.NETCore.App]

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

Another one, same bug:

Host (useful for support):
  Version: 2.2.8
  Commit:  b9aa1abc51

.NET Core SDKs installed:
  No SDKs were found.

.NET Core runtimes installed:
  Microsoft.NETCore.App 2.2.8 [/opt/dotnet/shared/Microsoft.NETCore.App]

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

Can reproduce with 100% probability, when running from a network mounted location.
Mount command: sudo mount -t cifs //192.168.0.55/z$/Something /home/pi/z -o 'username=*******@live.com,password=*******,uid=1000,gid=1000' -o vers=2.0

192.168.0.55 is my desktop PC, it’s running Windows 10 1903, both devices are connected with gigabit Ethernet to the same router.

Ideally, could you please stop requiring strange features from the file system so the .NET programs can run from network drives? As a bare minimum, at least fix the error message. I’ve spent half an hour trying different versions of the framework, and different settings in that JSON.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-arm32area-Hostneeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsiderationos-linuxLinux OS (any supported distro)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions