添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
一身肌肉的遥控器  ·  FFmpeg 5.0 ...·  2 周前    · 
暴走的海龟  ·  ⭐⭐⭐⭐⭐Linux C/C++ ...·  5 月前    · 
爱喝酒的牛肉面  ·  gnu Man Page: ()·  1 年前    · 

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

Generating native code
/usr/bin/ld: 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) [/mnt/c/splitjoin/SplitJoin.csproj]
/home/innosia/.nuget/packages/microsoft.dotnet.ilcompiler/7.0.0-alpha.1.21602.1/build/Microsoft.NETCore.Native.targets(356,5): error MSB3073: The command "clang "obj/Release/net6.0/linux-arm64/native/SplitJoin.o" -o "bin/Release/net6.0/linux-arm64/native/SplitJoin" /home/innosia/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/7.0.0-alpha.1.21608.2/sdk/libbootstrapper.a /home/innosia/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/7.0.0-alpha.1.21608.2/sdk/libRuntime.WorkstationGC.a /home/innosia/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/7.0.0-alpha.1.21608.2/framework/libSystem.Native.a /home/innosia/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/7.0.0-alpha.1.21608.2/framework/libSystem.Globalization.Native.a /home/innosia/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/7.0.0-alpha.1.21608.2/framework/libSystem.IO.Compression.Native.a /home/innosia/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/7.0.0-alpha.1.21608.2/framework/libSystem.Net.Security.Native.a /home/innosia/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/7.0.0-alpha.1.21608.2/framework/libSystem.Security.Cryptography.Native.OpenSsl.a --target=aarch64-linux-gnu -g -Wl,-rpath,'$ORIGIN' -Wl,--as-needed -pthread -lstdc++ -ldl -lm -lz -lgssapi_krb5 -lrt -pie -Wl,-z,relro -Wl,-z,now -Wl,--discard-all -Wl,--gc-sections" exited with code 1. [/mnt/c/splitjoin/SplitJoin.csproj]

the ubuntu installation install below library including dotnet

wget https://packages.microsoft.com/config/ubuntu/21.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb rm packages-microsoft-prod.deb sudo apt-get update; \ sudo apt-get install -y apt-transport-https && \ sudo apt-get update && \ sudo apt-get install -y dotnet-sdk-6.0 sudo apt install clang sudo apt-get install libtool sudo apt-get install libssl-dev sudo apt-get install -y make gcc libc-dev libpq-dev zlib1g-dev sudo -E apt-get install -y libpam-dev libedit-dev libselinux1-dev postgresql-contrib sudo -E apt-get install -y libssl-dev libkrb5-dev

then start command which fails, however linux-x64 built is successful

dotnet publish -r linux-arm64 -c Release -p:PublishTrimmed=true -p:EnableCompressionInSingleFile=true -p:TrimMode=Link --self-contained

error message

/usr/bin/ld: unrecognised emulation mode: aarch64linux