dotnet run fails on ARM64
See original GitHub issuedotnet run doesn’t work for me on Linux ARM64.
rich@live-pc:~/testapp$ uname -a
Linux live-pc 3.10.105-bsp-1.2 dotnet/sdk#4284 SMP PREEMPT Sat Oct 27 19:24:05 IST 2018 aarch64 aarch64 aarch64 GNU/Linux
rich@live-pc:~/testapp$ lsb_release -a
No LSB modules are available.
Distributor ID: neon
Description: KDE neon User Edition 5.14
Release: 18.04
Codename: bionic
rich@live-pc:~$ time dotnet new console -o testapp
The template "Console Application" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on testapp/testapp.csproj...
Restoring packages for /home/rich/testapp/testapp.csproj...
Generating MSBuild file /home/rich/testapp/obj/testapp.csproj.nuget.g.props.
Generating MSBuild file /home/rich/testapp/obj/testapp.csproj.nuget.g.targets.
Restore completed in 2 sec for /home/rich/testapp/testapp.csproj.
Restore succeeded.
real 0m17.732s
user 0m23.360s
sys 0m1.910s
rich@live-pc:~$ cd testapp/
rich@live-pc:~/testapp$ time dotnet build
Microsoft (R) Build Engine version 15.9.8-preview+g0a5001fc4d for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 342.77 ms for /home/rich/testapp/testapp.csproj.
/usr/share/dotnet/sdk/3.0.100-alpha1-009697/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(142,5): message NETSDK1057: You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview [/home/rich/testapp/testapp.csproj]
testapp -> /home/rich/testapp/bin/Debug/netcoreapp3.0/testapp.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:21.04
real 0m25.204s
user 0m25.080s
sys 0m2.180s
rich@live-pc:~/testapp$ time dotnet run
System.ComponentModel.Win32Exception (8): Exec format error
at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Microsoft.DotNet.Cli.Utils.Command.Execute()
at Microsoft.DotNet.Tools.Run.RunCommand.Execute()
at Microsoft.DotNet.Tools.Run.RunCommand.Run(String[] args)
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)
at Microsoft.DotNet.Cli.Program.Main(String[] args)
real 0m17.997s
user 0m23.190s
sys 0m2.150s
rich@live-pc:~/testapp$ time dotnet bin/Debug/netcoreapp3.0/testapp.dll
Hello World!
real 0m0.682s
user 0m0.570s
sys 0m0.060s
rich@live-pc:~/testapp$
Issue Analytics
- State:
- Created 5 years ago
- Comments:25 (22 by maintainers)
Top Results From Across the Web
dotnet run fails - Apple Community
I'm using macOS BigSur 11.3 on a Apple Silicon Mac mini M1 and when issuing at terminal command "dotnet run" following error occurs:....
Read more >How to build with dotnet for linux-arm64 on a windows 11 ...
Hi, I have a C# source code (from Terraria/tModLoader ... try to fix the problem to compile the source code that can work...
Read more >NET 6 not running on mac m1 arm processor machine
but when i use command line to run the APP , it is failing with below error. Failed to load /usr/local/share/dotnet/shared/Microsoft.NETCore.App ...
Read more >Run .netcore3.1 fail in Rider when both 6 and 3.1 SDK are ...
Open in Rider 2021.3 EAP7. Click Run. You get error. Failed to load A, error: dlopen(/usr/local/share/dotnet/host/fxr/6.0.0/libhostfxr.dylib, ...
Read more >NET 7 app developed from Arm64 won't run on x64
I'm developing a .NET 7 app on Windows 11, Arm64. Compiling for “any CPU”. When trying to run the app in X64 computers,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I validated that this bug is now fixed, with
3.0.100-preview-009762
.This should now be fixed in
3.0.100-preview-009738
. I don’t have an ARM device at the ready to test, but I did verify that the RID was correct in the bundled versions props file for arm tar.gz.