Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

[AOT] Failure when the path to the temp folder contains accentuated characters and/or spaces #9523

Open
jeromelaban opened this issue Nov 18, 2024 · 3 comments
Assignees
Labels
Area: App+Library Build Issues when building Library projects or Application projects.

Comments

@jeromelaban
Copy link

jeromelaban commented Nov 18, 2024

Android framework version

net8.0-android

Affected platform version

8.0.11

Description

On Windows, when building with AOT enabled, and the user home folder has an accentuated character and/or a space, the build fails with:

C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.145\targets\Microsoft.Android.Sdk.Aot.targets(109,5): Precompiling failed for E:\Net2022files\WinNavUno5\WinNavUno5\obj\Release\net8.0-android\android-x64\linked\_Microsoft.Android.Resource.Designer.dll with exit code 1.
The specified response file can not be read [E:\Net2022files\WinNavUno5\WinNavUno5\WinNavUno5.csproj]

Steps to Reproduce

Build an app with AOT enabled, with a user folder with accentuated characters and/or spaces.

Did you find any workaround?

Changing the user folder path to be without spaces and accentuated characters.

Relevant log output

binlog (14).zip

@jeromelaban jeromelaban added Area: App+Library Build Issues when building Library projects or Application projects. needs-triage Issues that need to be assigned. labels Nov 18, 2024
@dellis1972
Copy link
Contributor

dellis1972 commented Nov 18, 2024

@jeromelaban very odd. So the temp folder path has an accented character in it :(

@akoeplinger any idea who works on the \mono-aot-cross.exe ? Looks like an issue in that area.

[WinNavUno5.dll] Running: C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x64\8.0.11\Sdk\..\tools\mono-aot-cross.exe --response="C:\Users\Werner König\AppData\Local\Temp\tmp12E0.tmp"

@jeromelaban
Copy link
Author

jeromelaban commented Nov 18, 2024

It is odd indeed.

I noticed this particular behavior when accounts are created using MS Entra Online-only (Azure AD) accounts, where the tooling does not "normalize" the folder to 7-bits ASCII and uses the user's original name instead of the SAMAccount field.

My own name has an accent in it, and it's also causing all sorts of issues which I avoid by changing the folder from the get-go...

@akoeplinger
Copy link
Member

would you mind trying with dotnet 9? there were some related fixes in that area.

@jpobst jpobst removed the needs-triage Issues that need to be assigned. label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: App+Library Build Issues when building Library projects or Application projects.
Projects
None yet
Development

No branches or pull requests

5 participants