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

[Android] .NET 9 android build breaks when using NDK 23 #111695

Open
jkurdek opened this issue Jan 22, 2025 · 2 comments
Open

[Android] .NET 9 android build breaks when using NDK 23 #111695

jkurdek opened this issue Jan 22, 2025 · 2 comments
Assignees
Labels
area-Infrastructure-mono os-android untriaged New issue has not been triaged by the area owner

Comments

@jkurdek
Copy link
Member

jkurdek commented Jan 22, 2025

63cb882 introduced a hotfix into .NET 9 to allow for building with NDK 27. This causes build to fail when using old NDK 23 locally:

  Libclang '~/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/lib64/libclang.so.12git /usr/local/lib/libclang.so' doesn't exist.

Error stems form incorrect conditions in mono.proj. _LibClang is an item not a property, it should be referred to using @.

runtime/src/mono/mono.proj

Lines 821 to 822 in 0b71788

<_LibClang Include="$(ANDROID_NDK_ROOT)/toolchains/llvm/prebuilt/$(MonoToolchainPrebuiltOS)/lib64/libclang.so.*" Condition=" '$(_LibClang)' == '' "/>
<_LibClang Include="/usr/local/lib/libclang.so" Condition="'$(_LibClang)' == ''" />

Reproduction steps:

export SDK
export NDK 23
./build.sh -arch x64 -s mono+libs+libs.tests -os android  -c Release

\cc: @steveisok

Copy link
Contributor

Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Jan 22, 2025
Copy link
Contributor

Tagging subscribers to this area: @akoeplinger, @matouskozak
See info in area-owners.md if you want to be subscribed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Infrastructure-mono os-android untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

1 participant