`ld.lld: error: undefined symbol: __tls_get_addr' when trying to use ldc2 to compile to android24 target

kinke noone at nowhere.com
Wed Nov 27 14:47:02 UTC 2024


On Wednesday, 27 November 2024 at 11:50:29 UTC, TheZipCreator 
wrote:
> Compiling with `--emulated-tls` (and `-Xcc=-femulate-tls`) 
> doesn't seem to fix it. I'm using 
> `android-ndk-r27/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang` as my compiler. Running it with android 30 works, but it's not the target I'm trying to compile to.
>
> I'm not sure what I'm supposed to do to get this to compile.

LDC has switched to native ELF TLS for Android in v1.38, so API 
level 29/30 is required when using these newer LDC versions, no 
way to avoid that.


More information about the Digitalmars-d-learn mailing list