# Android NDK 22.x and linking with lld

**URL:** <https://qa.fmod.com/t/android-ndk-22-x-and-linking-with-lld/17629>\
**Category:** FMOD Engine\
**Created:** [September 1, 2021, 10:01am UTC](https://qa.fmod.com/t/android-ndk-22-x-and-linking-with-lld/17629 "2021-09-01T10:01:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![akiim](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@akiim](https://qa.fmod.com/u/akiim)\
**Post date:** [September 1, 2021, 10:01am UTC](https://qa.fmod.com/t/android-ndk-22-x-and-linking-with-lld/17629/1 "2021-09-01T10:01:36Z")

</div>

Hi,

I’m trying to use lld linker in my android project, but build fails with error:

```auto
  ld: error: found local symbol '_edata' in global part of symbol table in file /Users/xxx/AndroidStudioProjects/MyApplication/app/src/main/cpp/../../../libs/fmod-android/lib/arm64-v8a/libfmod.so
  ld: error: found local symbol '_end' in global part of symbol table in file /Users/xxx/AndroidStudioProjects/MyApplication/app/src/main/cpp/../../../libs/fmod-android/lib/arm64-v8a/libfmod.so
  ld: error: found local symbol '__bss_start' in global part of symbol table in file /Users/xxx/AndroidStudioProjects/MyApplication/app/src/main/cpp/../../../libs/fmod-android/lib/arm64-v8a/libfmod.so
  clang++: error: linker command failed with exit code 1 (use -v to see invocation)
  ninja: build stopped: subcommand failed.

```

Any ideas what’s causing these errors?

Thanks,  
Aki

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [September 2, 2021, 1:23am UTC](https://qa.fmod.com/t/android-ndk-22-x-and-linking-with-lld/17629/2 "2021-09-02T01:23:04Z")

</div>

Which version of FMOD are you using? The latest version was built with the newer NDK so that should get around the issue, so maybe try again with FMOD version 2.02.02.

---

<div class="post-metadata">

**Author:** ![akiim](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@akiim](https://qa.fmod.com/u/akiim)\
**Post date:** [September 2, 2021, 5:15am UTC](https://qa.fmod.com/t/android-ndk-22-x-and-linking-with-lld/17629/3 "2021-09-02T05:15:22Z")

</div>

FMOD\_VERSION 0x00020111  
ndkVersion 22.1.7171670

---

<div class="post-metadata">

**Author:** ![akiim](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@akiim](https://qa.fmod.com/u/akiim)\
**Post date:** [September 2, 2021, 5:22am UTC](https://qa.fmod.com/t/android-ndk-22-x-and-linking-with-lld/17629/4 "2021-09-02T05:22:37Z")

</div>

Confirmed that 2.02.02 works. We’ll have to see if we can start using it instead of 2.01…

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [September 2, 2021, 10:58pm UTC](https://qa.fmod.com/t/android-ndk-22-x-and-linking-with-lld/17629/5 "2021-09-02T22:58:14Z")

</div>

Good to hear it’s working. You should be able to [update the studio project](https://fmod.com/resources/documentation-studio?version=2.02&page=advanced-topics.html#migrating-fmod-studio-projects) easily enough, the API might be a little more hassle but all of the relevant changes are described in [What’s New in 2.02](https://fmod.com/resources/documentation-api?version=2.02&page=welcome-whats-new-202.html#whats-new-in-202). Let us know if you need any help!
