Skip to content

Linux Microbenchmarks failing to build due to CS1061 #5065

@LoopedBard3

Description

@LoopedBard3

Linux microbenchmarks are failing to build due to a CS1061 error:

--------------------------------------------
Building .NET micro benchmarks for 'net11.0'
--------------------------------------------
$ pushd "/datadisks/disk1/work/B1E309D4/w/B38509D3/e/performance/src/benchmarks/micro"
$ dotnet build /datadisks/disk1/work/B1E309D4/w/B38509D3/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj --configuration Release --framework net11.0 --no-restore /p:NuGetPackageRoot=/datadisks/disk1/work/B1E309D4/w/B38509D3/e/performance/artifacts/packages /p:RestorePackagesPath=/datadisks/disk1/work/B1E309D4/w/B38509D3/e/performance/artifacts/packages /p:UseSharedCompilation=false /p:BuildInParallel=false /m:1
  Reporting -> /datadisks/disk1/work/B1E309D4/w/B38509D3/e/performance/artifacts/bin/Reporting/Release/netstandard2.0/Reporting.dll
  BenchmarkDotNet.Extensions -> /datadisks/disk1/work/B1E309D4/w/B38509D3/e/performance/artifacts/bin/BenchmarkDotNet.Extensions/Release/netstandard2.0/BenchmarkDotNet.Extensions.dll
/datadisks/disk1/work/B1E309D4/w/B38509D3/e/performance/src/benchmarks/micro/libraries/System.IO.Hashing/Crc64_GetCurrentHashPerf.cs(15,24): error CS1061: 'Crc64' does not contain a definition for 'GetCurrentHashAsUInt64' and no accessible extension method 'GetCurrentHashAsUInt64' accepting a first argument of type 'Crc64' could be found (are you missing a using directive or an assembly reference?) [/datadisks/disk1/work/B1E309D4/w/B38509D3/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net11.0]
/datadisks/disk1/work/B1E309D4/w/B38509D3/e/performance/src/benchmarks/micro/libraries/System.IO.Hashing/Crc32_GetCurrentHashPerf.cs(15,24): error CS1061: 'Crc32' does not contain a definition for 'GetCurrentHashAsUInt32' and no accessible extension method 'GetCurrentHashAsUInt32' accepting a first argument of type 'Crc32' could be found (are you missing a using directive or an assembly reference?) [/datadisks/disk1/work/B1E309D4/w/B38509D3/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net11.0]

Build FAILED.

This was first seen in the CI for the PR to update us to using net11 TFM #5064, which was merged as all runs were broken before. The cause of this error is unclear as the GetCurrentHashAsUInt64 still seems to exist in dotnet/runtime main branch. The SDK version that this is happening on is: 11.0.100-alpha.1.25608.101 which was setup using dotnet-install -Channel 11 -Quality daily.

Metadata

Metadata

Labels

bugSomething isn't workingpipeline blockerissue blocks perf pipeline stays green. This be considered high priority.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions