Skip to content

Unable to build Android app on Windows with profiled AOT and EnableLLVM=true  #93788

@pjcollins

Description

@pjcollins

Description

This issue is not present when building on macOS, however Android build attempts with profiled AOT and LLVM are failing on Windows with .NET 8. For more context, I believe a somewhat related fix was made in #71411.

Reproduction Steps

dotnet new android -o androidtest
dotnet build -v:n androidtest\androidtest.csproj -c Release -p:EnableLLVM=true -p:AndroidEnableProfiledAot=true

Expected behavior

Attempts to build with profiled AOT and LLVM succeed.

Actual behavior

The build fails:

C:\a\_work\1\s\bin\Release\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-ci.pr.gh8441.26\targets\Microsoft.Android.Sdk.Aot.targets(109,5): error : Precompiling failed for C:\a\_work\1\a\TestRelease\10-20_03.00.43\temp\BuildBasicApplicationReleaseProfiledAotTrue\obj\Release\android-arm\linked\_Microsoft.Android.Resource.Designer.dll with exit code 1. [C:\a\_work\1\a\TestRelease\10-20_03.00.43\temp\BuildBasicApplicationReleaseProfiledAotTrue\UnnamedProject.csproj]
C:\a\_work\1\s\bin\Release\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-ci.pr.gh8441.26\targets\Microsoft.Android.Sdk.Aot.targets(109,5): error : The system cannot find the file specified. [C:\a\_work\1\a\TestRelease\10-20_03.00.43\temp\BuildBasicApplicationReleaseProfiledAotTrue\UnnamedProject.csproj]
C:\a\_work\1\s\bin\Release\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-ci.pr.gh8441.26\targets\Microsoft.Android.Sdk.Aot.targets(109,5): error : AOT of image C:\a\_work\1\a\TestRelease\10-20_03.00.43\temp\BuildBasicApplicationReleaseProfiledAotTrue\obj\Release\android-arm\linked\_Microsoft.Android.Resource.Designer.dll failed. [C:\a\_work\1\a\TestRelease\10-20_03.00.43\temp\BuildBasicApplicationReleaseProfiledAotTrue\UnnamedProject.csproj]

build.binlog.zip

Regression?

No response

Known Workarounds

No response

Configuration

.NET SDK:
Version: 8.0.100-rc.2.23468.1
Commit: e1fd7d9649

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22621
OS Platform: Windows
RID: win-x64

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions