Skip to content

[Operational Issue]: VMR Linux_x64 SDK is missing libdotnet-aot.so #7981

Closed

Description

@ellahathaway

Error

Linux_x64 SDK artifact is missing sdk/<version>/libdotnet-aot.so.

This was surfaced by source-build SDK diff baseline PR #7921. Source-build includes libdotnet-aot.so, but the Microsoft SDK used for comparison does not.

In the Linux_x64 SDK binlog:

Linux_x64_BuildLogs_Attempt1
artifacts/log/Release/sdk/Build.binlog

src/sdk/src/Layout/redist/redist.csproj has:

TargetOS = linux
HostOS = linux
TargetArchitecture = x64
BuildArchitecture = x64
TargetRid = linux-x64
NativeAotSupported = true
CrossBuild = true
_ShouldPublishDotnetAot = false

Because _ShouldPublishDotnetAot=false, PublishDotnetAot does not run, so libdotnet-aot.so is not copied into the SDK layout.

The SDK layout comments say dotnet-aot should be published for supported Windows, Linux, and macOS builds when the target OS equals the host OS.

The VMR Linux_x64 job does target Linux from Linux, and NativeAOT is supported. However, that job uses a same-arch rootfs:

crossRootFs: '/crossrootfs/x64'
targetOS: linux
targetArchitecture: x64

That causes /p:CrossBuild=true to be passed.

The current SDK layout condition treats this as neither a native build nor a cross-arch build:

  • not native, because CrossBuild=true
  • not cross-arch, because target/build architecture are both x64

As a result, PublishDotnetAot is skipped for the normal VMR Linux_x64 SDK artifact.

Links

The Microsoft SDK comes from Linux_x64_Artifacts.

Root Cause

Same-arch rootfs VMR Linux builds pass CrossBuild=true, which causes _ShouldPublishDotnetAot=false even though TargetOS=HostOS=linux, TargetArchitecture=BuildArchitecture=x64, and NativeAotSupported=true.

Activity

  1. mthalman commented on Jul 27, 2026

    @mthalman
    Member
  2. baronfel commented on Jul 27, 2026

    @baronfel
    Member

    What an interesting wrinkle!

  3. ellahathaway commented on Jul 27, 2026

    @ellahathaway
    MemberAuthor

    This is also surfacing in 11.0.1xx-preview7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions