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: /Volumes/Android/buildbot/src/android/ndk-r13-release/external/libcxx/include/memory:635: error: undefined reference to ‘__atomic_load_4’ /Volumes/Android/buildbot/src/android/ndk-r13-release/external/libcxx/../../external/libcxxabi/src/cxa_handlers.cpp:112: error: undefined reference to ‘__atomic_exchange_4’ /Volumes/Android/buildbot/src/android/ndk-r13-release/external/libcxx/../../external/libcxxabi/src/cxa_default_handlers.cpp:106: error: undefined reference to ‘__atomic_exchange_4’ /Volumes/Android/buildbot/src/android/ndk-r13-release/external/libcxx/../../external/libcxxabi/src/cxa_default_handlers.cpp:117: error: undefined reference to ‘__atomic_exchange_4’ clang++: error: linker command failed with exit code 1 Read more…

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: ‘latinime::MultiBigramMap::BigramMap::BigramMap(const latinime::MultiBigramMap::BigramMap&)’: jni/src/suggest/core/dictionary/multi_bigram_map.h:56:9: error: base class ‘class latinime::NgramListener’ should be explicitly initialized in the copy Read more…