Skip to content

Please add support to run dotnet in arm64 (userland) #48389

Open

Description

@whatevergeek

Copying details here from the other issue (#41421)
as discussed with @vitek-karas.

Installation is by tarring arm64.tar.gz from the dotnet arm64 site

I've investigated further and got the following observations:

TLDR:

Latest arm64 package (dotnet-sdk-5.0.103-linux-arm64.tar.gz) doesn’t cause segmentation fault anymore when dotnet new is executed. However, build is failing without giving info.

Exhibit A

dotnet-sdk-5.0.103: segmentation fault during dotnet new is gone, but build is failing w/o info

image

image

Exhibit B

Previous version of .NET 5.0 that was working

image

image

Perhaps, segmentation fault is already resolved (or might be hiding since build failure is not showing).
Anyway, let me know if you or your team need further info.

I'm really looking forward to use the latest .NET 5.0 on my arm64 device.

Originally posted by @whatevergeek in #41421 (comment)

Activity

  1. ghost added
    untriaged
    on Feb 17, 2021
  2. jeffschwMSFT commented on Feb 17, 2021

    @jeffschwMSFT
    Member

    @mangod9 @agocke can y'all take a look? This looks like a potential regression.

  3. agocke commented on Feb 18, 2021

    @agocke
    Member

    @sbomer can you take a look?

  4. jeffschwMSFT commented on Feb 18, 2021

    @jeffschwMSFT
    Member
  5. janvorli commented on Feb 18, 2021

    @janvorli
    Member

    Let me try it on my local arm64 linux device

  6. sbomer commented on Feb 18, 2021

    @sbomer
    Member

    I was able to repro this in debian running on UserLAnd on my phone - but I don't have another ARM64 device on hand to check if it repros on a plain install without a compatibility layer. It's difficult to debug in UserLAnd since gdb/strace don't work.

  7. janvorli commented on Feb 18, 2021

    @janvorli
    Member

    In a debian 9 docker container running on my Odroid N2 arm64 device (host is Ubuntu 18.04), I've tried what was shown in the screenshots above and it worked:

    dotnet50/dotnet --info
    .NET SDK (reflecting any global.json):
     Version:   5.0.103
     Commit:    72dec52dbd
    
    Runtime Environment:
     OS Name:     debian
     OS Version:  9
     OS Platform: Linux
     RID:         debian.9-arm64
     Base Path:   /root/dotnet50/sdk/5.0.103/
    
    Host (useful for support):
      Version: 5.0.3
      Commit:  c636bbdc8a
    
    .NET SDKs installed:
      5.0.103 [/root/dotnet50/sdk]
    
    .NET runtimes installed:
      Microsoft.AspNetCore.App 5.0.3 [/root/dotnet50/shared/Microsoft.AspNetCore.App]
      Microsoft.NETCore.App 5.0.3 [/root/dotnet50/shared/Microsoft.NETCore.App]
    
    To install additional .NET runtimes or SDKs:
      https://aka.ms/dotnet-download
    
    dotnet50/dotnet new console -o console_dotnet-5.0
    The template "Console Application" was created successfully.
    
    Processing post-creation actions...
    Running 'dotnet restore' on console_dotnet-5.0/console_dotnet-5.0.csproj...
      Determining projects to restore...
      Restored /root/console_dotnet-5.0/console_dotnet-5.0.csproj (in 239 ms).
    Restore succeeded.
    
    root@fca9a3a071da:~# cd console_dotnet-5.0/
    root@fca9a3a071da:~/console_dotnet-5.0# ../dotnet50/dotnet restore
      Determining projects to restore...
      All projects are up-to-date for restore.
    root@fca9a3a071da:~/console_dotnet-5.0# ../dotnet50/dotnet build
    Microsoft (R) Build Engine version 16.8.3+39993bd9d for .NET
    Copyright (C) Microsoft Corporation. All rights reserved.
    
      Determining projects to restore...
      All projects are up-to-date for restore.
      console_dotnet-5.0 -> /root/console_dotnet-5.0/bin/Debug/net5.0/console_dotnet-5.0.dll
    
    Build succeeded.
        0 Warning(s)
        0 Error(s)
    
    Time Elapsed 00:00:04.15
    root@fca9a3a071da:~/console_dotnet-5.0# ../dotnet50/dotnet run
    Hello World!
    

    So I believe the issue is UserLAnd specific.

  8. agocke commented on Feb 18, 2021

    @agocke
    Member

    Ah, I somehow missed the userland-specific thing.

  9. removed
    untriaged
    on Jul 4, 2021
  10. added this to the Future milestone on Jul 4, 2021
  11. added
    backlog-cleanup-candidate
    on Jan 3, 2026
  12. whatevergeek commented on Jan 3, 2026

    @whatevergeek
    Author

    Would be nice to hear an update :-)

  13. removed
    backlog-cleanup-candidate
    on Jan 3, 2026
  14. agocke commented on Jan 4, 2026

    @agocke
    Member

    No plans here — Userland would be like a new custom Linux distribution. We don’t support specific Linux distributions, just “portable” distributions based on common versions of OpenSSL and glibc. If the portable versions don’t work on userland, it would be up to the community to figure out what’s wrong with that distribution in particular.

    We’d of course be happy to take any contributions from the community to enable the platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions