How to fix “undefined reference to ‘__atomic_exchange_4”

When I built native library for LatinIME I’ve got next error: undefined reference to ‘__atomic_exchange_4 Full stacktrace:

To avoid it open Android.mk file and add next string:

Build native libs for LatinIME. Error: base class ‘class latinime::NgramListener’ should be explicitly initialized in the copy constructor [-Werror=extra]

I working on LatinIME Android Keyboard keyboard. I’ve got source from Google repo. Here is structure: java – contains java code native – jni code. When I try to build native I receive next error:

Full stacktrace:

To avoid it I’ve edited Android.mk in jni dir and replace: Read more…