-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
Error:
System.CommandLine.CommandLineException: Unrecognized instruction set popcnt
at System.CommandLine.Helpers.ConfigureInstructionSetSupport(String, Int32, Boolean, TargetArchitecture, TargetOS, String, String, Logger, Boolean) + 0xcca
at ILCompiler.Program.Run() + 0x7a1
at ILCompiler.ILCompilerRootCommand.<>c__DisplayClass261_0.<.ctor>b__0(ParseResult) + 0x31f
Info:
.NET SDK:
Version: 10.0.100-rc.2.25502.107
Commit: 89c8f6a112
Workload version: 10.0.100-manifests.4d32cd9e
MSBuild version: 18.0.0-preview-25502-107+89c8f6a11
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.100-rc.2.25502.107\
Host:
Version: 10.0.0-rc.2.25502.107
Architecture: x64
Commit: 89c8f6a112
I set the Attribute
//[SimpleJob(RuntimeMoniker.Net80)]
//[SimpleJob(RuntimeMoniker.NativeAot80)]
//[SimpleJob(RuntimeMoniker.Net10_0)]
[SimpleJob(RuntimeMoniker.NativeAot10_0)]
[MemoryDiagnoser]
Net80 and NativeAot80 and Net10-0 runs well, but NativeAut10-0 has the following errors
Generating native code
EXEC : error : Unrecognized instruction set popcnt [E:\ThingsGateway_AOT\ThingsGateway.Foundation.Benchmark\bin\Release\net10.0\ThingsGateway.Foundation.Benchmark-1\BenchmarkDotNet.Autogenerated.csproj]
System.CommandLine.CommandLineException: Unrecognized instruction set popcnt
at System.CommandLine.Helpers.ConfigureInstructionSetSupport(String, Int32, Boolean, TargetArchitecture, TargetOS, String, String, Logger, Boolean) + 0xcca
at ILCompiler.Program.Run() + 0x7a1
at ILCompiler.ILCompilerRootCommand.<>c__DisplayClass261_0.<.ctor>b__0(ParseResult) + 0x31f
The following is the content of BenchmarkDotNet.Autogenerated.cproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<ImportDirectoryBuildProps>false</ImportDirectoryBuildProps>
<ImportDirectoryBuildTargets>false</ImportDirectoryBuildTargets>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<RuntimeFrameworkVersion></RuntimeFrameworkVersion>
<AssemblyName>ThingsGateway.Foundation.Benchmark-1</AssemblyName>
<AssemblyTitle>ThingsGateway.Foundation.Benchmark-1</AssemblyTitle>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PlatformTarget>x64</PlatformTarget>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
<DebugSymbols>false</DebugSymbols>
<UseSharedCompilation>false</UseSharedCompilation>
<Deterministic>true</Deterministic>
<RunAnalyzers>false</RunAnalyzers>
<PublishAot Condition="$([MSBuild]::VersionGreaterThan('$(NETCoreSdkVersion)', '6.0'))">true</PublishAot>
<IlcOptimizationPreference>Speed</IlcOptimizationPreference>
<OptimizationPreference>Speed</OptimizationPreference>
<TrimMode>link</TrimMode><TrimmerDefaultAction>link</TrimmerDefaultAction>
<IlcGenerateStackTraceData>True</IlcGenerateStackTraceData>
<StackTraceSupport>True</StackTraceSupport>
<EnsureNETCoreAppRuntime>false</EnsureNETCoreAppRuntime> <!-- workaround for 'This runtime may not be supported by.NET Core.' error -->
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles> <!-- workaround for 'Found multiple publish output files with the same relative path.' error -->
<ValidateExecutableReferencesMatchSelfContained>false</ValidateExecutableReferencesMatchSelfContained>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> <!-- Suppress warning for nuget package used in old (unsupported) tfm. -->
<IlcInstructionSet>base,sse4.2,popcnt,avx,avx2,bmi,bmi2,fma,lzcnt,aes,pclmul</IlcInstructionSet>
</PropertyGroup>
<PropertyGroup>
<ServerGarbageCollection>false</ServerGarbageCollection>
<ConcurrentGarbageCollection>true</ConcurrentGarbageCollection>
</PropertyGroup>
<ItemGroup>
<Compile Include="ThingsGateway.Foundation.Benchmark-1.notcs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="E:\ThingsGateway_AOT\ThingsGateway.Foundation.Benchmark\ThingsGateway.Foundation.Benchmark.csproj" />
</ItemGroup>
<ItemGroup>
<RdXmlFile Include="bdn_generated.rd.xml" />
</ItemGroup>
</Project>