question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android NDK 18b issues

See original GitHub issue

Libffi latest stable version is incompatible with Android NDK 18b:

../src/arm/sysv.S:363:2: error: invalid instruction, did you mean: fldmiax?
 fldmiadgt ip, {d0-d7}
 ^
../src/arm/sysv.S:399:2: error: invalid instruction
 stmeqia r2, {r0, r1}
 ^
../src/arm/sysv.S:412:2: error: invalid instruction, did you mean: fstmiax?
 fstmiadeq r2, {d0-d3}
 ^
/tmp/sysv-5d4296.s:263:2: error: invalid instruction
 fstmfdd sp!, {d0-d7}
 ^
/tmp/sysv-5d4296.s:313:2: error: invalid instruction, did you mean: fldmiax?
 fldmiad sp, {d0-d1}
 ^
/tmp/sysv-5d4296.s:316:2: error: invalid instruction, did you mean: fldmiax?
 fldmiad sp, {d0-d3}

It appears to be because of clang 7.0, which doesn’t accept deprecated functions. The Android libffi version have fixes: https://android.googlesource.com/platform/external/libffi/+/ca22c3cb49a8cca299828c5ffad6fcfa76fdfa77

Didn’t tested if libffi master have the fixes, but stable don’t.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dbrnzcommented, Feb 11, 2019

FYI, libffi can be made to compile with NDK 19 by setting version = 3.3-rc0 and patches = [] in the libffi recipe.

0reactions
misl6commented, Jul 10, 2022

Fixed via #1722

Read more comments on GitHub >

github_iconTop Results From Across the Web

NDK Revision History | Android NDK - Android Developers
This page provides information on changes in all released stable versions of the NDK. To download the latest stable version of the NDK...
Read more >
NDK - problems after GNUSTL has been removed from the ...
Today I updated my Android Studio NDK to the most recent release 18.0.5002713 . After the successful installation process I tried to rerun ......
Read more >
Android: Standalone toolchain API level detection no longer ...
If you are using Android NDK 18b standalone then you are getting always a warning that the API level can't be identified.
Read more >
Android NDK r18b breaks Unreal 4.23
I'm trying to Android NDK 18b for Unreal's 4.23's included First Person Shooter sample program… I installed the Android NDK r18b from this ......
Read more >
Android SDK And NDK Troubleshooting - Castle Game Engine
The Android NDK for 32-bit Windows has a known error in version r12b, see https://github.com/android-ndk/ndk/issues/139 . The clang binaries are for 64-bit ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found