Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AARCH64 Aot build fail on linux with unrecognised emulation mode: aarch64linux #40916

Open
Coloryr opened this issue May 16, 2024 · 1 comment
Labels
Area-NativeAOT Native AOT compilation untriaged Request triage from a team member

Comments

@Coloryr
Copy link

Coloryr commented May 16, 2024

Describe the bug

AARCH64 Aot build fail on linux with sdk 8.0.300

  /usr/bin/ld.bfd: unrecognised emulation mode: aarch64linux
  Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om i386pep i386pe
clang : error : linker command failed with exit code 1 (use -v to see invocation) [/home/runner/work/ColorMC/ColorMC/src/ColorMC.Launcher/ColorMC.Launcher.csproj]
/home/runner/.nuget/packages/microsoft.dotnet.ilcompiler/8.0.5/build/Microsoft.NETCore.Native.targets(366,5): error MSB3073: The command ""clang" "obj/Release/net8.0/linux-arm64/native/ColorMC.Launcher.o" -o "bin/Release/net8.0/linux-arm64/native/ColorMC.Launcher" -Wl,--version-script=obj/Release/net8.0/linux-arm64/native/ColorMC.Launcher.exports -Wl,--export-dynamic -gz=zlib -fuse-ld=bfd /home/runner/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/8.0.5/sdk/libbootstrapper.o /home/runner/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/8.0.5/sdk/libRuntime.WorkstationGC.a /home/runner/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/8.0.5/sdk/libeventpipe-disabled.a /home/runner/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/8.0.5/sdk/libstdc++compat.a /home/runner/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/8.0.5/framework/libSystem.Native.a /home/runner/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/8.0.5/framework/libSystem.Globalization.Native.a /home/runner/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/8.0.5/framework/libSystem.IO.Compression.Native.a /home/runner/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/8.0.5/framework/libSystem.Net.Security.Native.a /home/runner/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/8.0.5/framework/libSystem.Security.Cryptography.Native.OpenSsl.a --target=aarch64-linux-gnu -g -Wl,-rpath,'$ORIGIN' -Wl,--build-id=sha1 -Wl,--as-needed -pthread -ldl -lz -lrt -lm -pie -Wl,-pie -Wl,-z,relro -Wl,-z,now -Wl,--eh-frame-hdr -Wl,--discard-all -Wl,--gc-sections" exited with code 1. [/home/runner/work/ColorMC/ColorMC/src/ColorMC.Launcher/ColorMC.Launcher.csproj]

To Reproduce

Exceptions (if any)

Further technical details

In github action
https://github.com/Coloryr/ColorMC/actions/runs/9105565070/job/25031348502#step:6:629

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-NativeAOT Native AOT compilation untriaged Request triage from a team member labels May 16, 2024
@Coloryr Coloryr changed the title AARCH64 Aot build fail AARCH64 Aot build fail on linux May 16, 2024
@Coloryr Coloryr changed the title AARCH64 Aot build fail on linux AARCH64 Aot build fail on linux with unrecognised emulation mode: aarch64linux May 16, 2024
@shallowtek
Copy link

I am having issues with deploying my Native AOT app to AKS. The AKS Node gives "exec format error" with Ubuntu Linux arm64 OS on Node. When I specified the app in the .csproj to use linux-arm64 runtime, during publish I get the "unrecognised emulation mode: aarch64linux".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-NativeAOT Native AOT compilation untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

2 participants