googlearchive / android-audio-high-performance

We now recommend you use the Oboe libraries:
https://github.com/google/oboe
Apache License 2.0
720 stars 275 forks source link

Error: Linker failed while linking libhowie.so #30

Closed AmandaRiu closed 7 years ago

AmandaRiu commented 8 years ago

I'm running through the Google Codelab for this project. I pulled down the sample project "audio-echo" and updated the local.properties file with the location of the android-ndk. Tried to build it from Android Studio, but it won't even let me...complaining about an incompatible gradle plugin version. So I tried from command line and got the error pasted below. I'm not sure if this is a problem with the code or my android ndk? Any help would be awesome. Thanks in advance!

Atalanta:audio-echo amanda$ ./gradlew assembleDebug --stacktrace :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42301Library UP-TO-DATE :app:prepareDebugDependencies :app:compileDebugAidl UP-TO-DATE :app:compileDebugRenderscript UP-TO-DATE :app:generateDebugBuildConfig UP-TO-DATE :app:generateDebugAssets UP-TO-DATE :app:mergeDebugAssets UP-TO-DATE :app:generateDebugResValues UP-TO-DATE :app:generateDebugResources UP-TO-DATE :app:mergeDebugResources UP-TO-DATE :app:processDebugManifest UP-TO-DATE :app:processDebugResources UP-TO-DATE :app:generateDebugSources UP-TO-DATE :app:compileDebugJavaWithJavac UP-TO-DATE :app:copyArm64-v8aDebugAudio-echoSharedLibraryGdbServer UP-TO-DATE :app:createArm64-v8aDebugAudio-echoSharedLibraryGdbsetup The source property has been deprecated and is scheduled to be removed in Gradle 3.0. Please use the inputs property instead. :app:compileArm64-v8aDebugAudio-echoSharedLibraryAudio-echoMainCpp UP-TO-DATE :app:linkArm64-v8aDebugAudio-echoSharedLibrary UP-TO-DATE :app:arm64-v8aDebugAudio-echoSharedLibrary UP-TO-DATE :app:stripSymbolsArm64-v8aDebugAudio-echoSharedLibrary UP-TO-DATE :app:ndkBuildArm64-v8aDebugAudio-echoSharedLibrary :app:ndkBuildArm64-v8aDebugAudio-echoStaticLibrary UP-TO-DATE :app:copyArmeabi-v7aDebugAudio-echoSharedLibraryGdbServer UP-TO-DATE :app:createArmeabi-v7aDebugAudio-echoSharedLibraryGdbsetup :app:compileArmeabi-v7aDebugAudio-echoSharedLibraryAudio-echoMainCpp UP-TO-DATE :app:linkArmeabi-v7aDebugAudio-echoSharedLibrary UP-TO-DATE :app:armeabi-v7aDebugAudio-echoSharedLibrary UP-TO-DATE :app:stripSymbolsArmeabi-v7aDebugAudio-echoSharedLibrary UP-TO-DATE :app:ndkBuildArmeabi-v7aDebugAudio-echoSharedLibrary :app:ndkBuildArmeabi-v7aDebugAudio-echoStaticLibrary UP-TO-DATE :app:copyArmeabiDebugAudio-echoSharedLibraryGdbServer UP-TO-DATE :app:createArmeabiDebugAudio-echoSharedLibraryGdbsetup :app:compileArmeabiDebugAudio-echoSharedLibraryAudio-echoMainCpp UP-TO-DATE :app:linkArmeabiDebugAudio-echoSharedLibrary UP-TO-DATE :app:armeabiDebugAudio-echoSharedLibrary UP-TO-DATE :app:stripSymbolsArmeabiDebugAudio-echoSharedLibrary UP-TO-DATE :app:ndkBuildArmeabiDebugAudio-echoSharedLibrary :app:ndkBuildArmeabiDebugAudio-echoStaticLibrary UP-TO-DATE :app:copyMips64DebugAudio-echoSharedLibraryGdbServer UP-TO-DATE :app:createMips64DebugAudio-echoSharedLibraryGdbsetup :app:compileMips64DebugAudio-echoSharedLibraryAudio-echoMainCpp UP-TO-DATE :app:linkMips64DebugAudio-echoSharedLibrary UP-TO-DATE :app:mips64DebugAudio-echoSharedLibrary UP-TO-DATE :app:stripSymbolsMips64DebugAudio-echoSharedLibrary UP-TO-DATE :app:ndkBuildMips64DebugAudio-echoSharedLibrary :app:ndkBuildMips64DebugAudio-echoStaticLibrary UP-TO-DATE :app:copyMipsDebugAudio-echoSharedLibraryGdbServer UP-TO-DATE :app:createMipsDebugAudio-echoSharedLibraryGdbsetup :app:compileMipsDebugAudio-echoSharedLibraryAudio-echoMainCpp UP-TO-DATE :app:linkMipsDebugAudio-echoSharedLibrary UP-TO-DATE :app:mipsDebugAudio-echoSharedLibrary UP-TO-DATE :app:stripSymbolsMipsDebugAudio-echoSharedLibrary UP-TO-DATE :app:ndkBuildMipsDebugAudio-echoSharedLibrary :app:ndkBuildMipsDebugAudio-echoStaticLibrary UP-TO-DATE :app:copyX86DebugAudio-echoSharedLibraryGdbServer UP-TO-DATE :app:createX86DebugAudio-echoSharedLibraryGdbsetup :app:compileX86DebugAudio-echoSharedLibraryAudio-echoMainCpp UP-TO-DATE :app:linkX86DebugAudio-echoSharedLibrary UP-TO-DATE :app:x86DebugAudio-echoSharedLibrary UP-TO-DATE :app:stripSymbolsX86DebugAudio-echoSharedLibrary UP-TO-DATE :app:ndkBuildX86DebugAudio-echoSharedLibrary :app:ndkBuildX86DebugAudio-echoStaticLibrary UP-TO-DATE :app:copyX86_64DebugAudio-echoSharedLibraryGdbServer UP-TO-DATE :app:createX86_64DebugAudio-echoSharedLibraryGdbsetup :app:compileX86_64DebugAudio-echoSharedLibraryAudio-echoMainCpp UP-TO-DATE :app:linkX86_64DebugAudio-echoSharedLibrary UP-TO-DATE :app:x86_64DebugAudio-echoSharedLibrary UP-TO-DATE :app:stripSymbolsX86_64DebugAudio-echoSharedLibrary UP-TO-DATE :app:ndkBuildX86_64DebugAudio-echoSharedLibrary :app:ndkBuildX86_64DebugAudio-echoStaticLibrary UP-TO-DATE :app:debug :app:compileDebugSources :app:transformClassesAndResourcesWithExtractJarsForDebug UP-TO-DATE :app:transformClassesWithDexForDebug UP-TO-DATE :app:processDebugJavaRes UP-TO-DATE :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE :app:validateDebugSigning :app:packageDebug UP-TO-DATE :app:zipalignDebug UP-TO-DATE :app:assembleDebug :howie:compileLint :howie:copyDebugLint UP-TO-DATE :howie:copyArm64-v8aDebugHowieSharedLibraryGdbServer UP-TO-DATE :howie:createArm64-v8aDebugHowieSharedLibraryGdbsetup :howie:compileArm64-v8aDebugHowieSharedLibraryHowieMainCpp UP-TO-DATE :howie:linkArm64-v8aDebugHowieSharedLibrary /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(condition_variable.o): In functionclang_call_terminate': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/condition_variable.cpp:(.text.clang_call_terminate[clang_call_terminate]+0x8): undefined reference to `__cxa_begin_catch' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/condition_variable.cpp:(.text.clang_call_terminate[clang_call_terminate]+0xc): undefined reference to`std::terminate()' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(condition_variable.o):(.data.DW.ref.gxx_personality_v0[DW.ref.gxx_personality_v0]+0x0): undefined reference to `gxx_personality_v0' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(mutex.o): In functionstd::__ndk1::__call_once(unsigned long volatile&, void_, void (_)(void_))': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/mutex.cpp:251: undefined reference tocxa_begin_catch' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/mutex.cpp:262: undefined reference to`cxa_rethrow' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/mutex.cpp:263: undefined reference to __cxa_end_catch' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(system_error.o): In function~system_error': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/system_error.cpp:201: undefined reference to std::runtime_error::~runtime_error()' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/system_error.cpp:201: undefined reference tostd::runtime_error::~runtime_error()' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(system_error.o): In function std::__ndk1::__throw_system_error(int, char const_)': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/system_error.cpp:207: undefined reference tocxa_allocate_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/system_error.cpp:207: undefined reference to__cxa_throw' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/system_error.cpp:207: undefined reference tocxa_free_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(system_error.o): In function`std::ndk1::basic_string_common::throw_length_error() const': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/string:1210: undefined reference to __cxa_allocate_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(system_error.o): In functionlength_error': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/stdexcept:123: undefined reference to vtable for std::length_error' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/stdexcept:123: undefined reference tovtable for std::length_error' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(system_error.o): In function `std::ndk1::basic_string_common::throw_length_error() const': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/string:1210: undefined reference totypeinfo for std::length_error' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/string:1210: undefined reference tostd::length_error::~length_error()' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/string:1210: undefined reference totypeinfo for std::length_error' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/string:1210: undefined reference tostd::length_error::~length_error()' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/string:1210: undefined reference to__cxa_throw' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/string:1210: undefined reference tocxa_free_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(system_error.o):(.data.rel.ro+0x68): undefined reference tostd::runtime_error::what() const' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(system_error.o):(.data.rel.ro+0x70): undefined reference tovtable for cxxabiv1::si_class_type_info' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(system_error.o):(.data.rel.ro+0x80): undefined reference totypeinfo for std::runtime_error' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(system_error.o):(.data.rel.ro+0x88): undefined reference tovtable for cxxabiv1::class_type_info' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(system_error.o):(.data.rel.ro+0xe0): undefined reference tovtable for __cxxabiv1::__si_class_type_info' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(system_error.o):(.data.rel.ro+0x140): undefined reference tovtable for cxxabiv1::si_class_type_info' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(system_error.o):(.data.rel.ro+0x1a0): undefined reference tovtable for __cxxabiv1::__si_class_type_info' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(thread.o): In function~thread': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/thread.cpp:37: undefined reference tostd::terminate()' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(thread.o): In functionstd::ndk1::thread::join()': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/thread.cpp:46: undefined reference to__cxa_allocate_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/thread.cpp:46: undefined reference tocxa_throw' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/thread.cpp:46: undefined reference to__cxa_free_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(thread.o): In functionstd::ndk1::thread::detach()': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/thread.cpp:65: undefined reference to__cxa_allocate_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/thread.cpp:65: undefined reference tocxa_throw' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/thread.cpp:65: undefined reference to__cxa_free_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(thread.o): In functionthread_specific_ptr': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/thread:151: undefined reference to__cxa_allocate_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/thread:151: undefined reference tocxa_throw' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/thread:151: undefined reference to__cxa_free_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o): In function~future_error': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:81: undefined reference tostd::logic_error::~logic_error()' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:81: undefined reference tostd::logic_error::~logic_error()' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o): In function`std::ndk1::assoc_sub_state::set_value()': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:95: undefined reference to __cxa_allocate_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:95: undefined reference to__cxa_throw' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:95: undefined reference to `cxa_free_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o): In functionstd::__ndk1::__assoc_sub_state::set_value_at_thread_exit()': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:108: undefined reference tocxa_allocate_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:108: undefined reference to`cxa_throw' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:108: undefined reference to __cxa_free_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o): In functionstd::ndk1::assoc_sub_state::set_exception(std::exception_ptr)': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:121: undefined reference to __cxa_allocate_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:121: undefined reference tocxa_throw' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:121: undefined reference to __cxa_free_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o): In functionstd::ndk1::assoc_sub_state::set_exception_at_thread_exit(std::exception_ptr)': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:135: undefined reference to __cxa_allocate_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:135: undefined reference to__cxa_throw' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:135: undefined reference to `cxa_free_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o): In functionstd::__ndk1::__assoc_sub_state::__execute()': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:188: undefined reference tocxa_allocate_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:188: undefined reference to`cxa_throw' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:188: undefined reference to __cxa_free_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o): In functionfuture': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:197: undefined reference to __cxa_allocate_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:197: undefined reference tocxa_throw' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:197: undefined reference to __cxa_free_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o): In function~future_error': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:81: undefined reference to std::logic_error::~logic_error()' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:81: undefined reference tostd::logic_error::~logic_error()' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o): In function `std::exception_ptr std::make_exception_ptr(std::ndk1::future_error)': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/exception:160: undefined reference to__cxa_allocate_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/exception:160: undefined reference tocxa_throw' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/exception:161: undefined reference to__cxa_begin_catch' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/exception:165: undefined reference to__cxa_end_catch' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o): In function`std::ndk1::promise::get_future()': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:240: undefined reference to __cxa_allocate_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:240: undefined reference tocxa_throw' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:240: undefined reference to __cxa_free_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o): In functionstd::ndk1::promise::set_value()': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:250: undefined reference to __cxa_allocate_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:250: undefined reference tocxa_throw' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:250: undefined reference to __cxa_free_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o): In functionstd::ndk1::promise::set_exception(std::exception_ptr)': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:260: undefined reference to __cxa_allocate_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:260: undefined reference tocxa_throw' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:260: undefined reference to __cxa_free_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o): In functionstd::ndk1::promise::set_value_at_thread_exit()': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:270: undefined reference to __cxa_allocate_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:270: undefined reference tocxa_throw' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:270: undefined reference to __cxa_free_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o): In functionstd::ndk1::promise::set_exception_at_thread_exit(std::exception_ptr)': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:280: undefined reference to __cxa_allocate_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:280: undefined reference tocxa_throw' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:280: undefined reference to __cxa_free_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o):(.data.rel.ro+0x20): undefined reference tostd::logic_error::what() const' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o):(.data.rel.ro+0x30): undefined reference to `vtable for cxxabiv1::si_class_type_info' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o):(.data.rel.ro+0x40): undefined reference totypeinfo for std::logic_error' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o):(.data.rel.ro+0x80): undefined reference tovtable for cxxabiv1::si_class_type_info' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(future.o):(.data.rel.ro+0xe0): undefined reference to`vtable for cxxabiv1::si_class_type_info' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(memory.o): In function ~bad_weak_ptr': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/memory.cpp:38: undefined reference tostd::exception::~exception()' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/memory.cpp:38: undefined reference to std::exception::~exception()' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(memory.o):(.data.rel.ro+0x28): undefined reference tovtable for cxxabiv1::class_type_info' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(memory.o):(.data.rel.ro+0x70): undefined reference to `vtable for cxxabiv1::vmi_class_type_info' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(memory.o):(.data.rel.ro+0xc0): undefined reference to`vtable for cxxabiv1::si_class_type_info' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(memory.o):(.data.rel.ro+0xd0): undefined reference to typeinfo for std::exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(stdexcept.o): In functionlogic_error': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:31: undefined reference to vtable for std::logic_error' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:31: undefined reference tovtable for std::logic_error' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:32: undefined reference to std::exception::~exception()' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:35: undefined reference tovtable for std::logic_error' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:35: undefined reference to vtable for std::logic_error' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:36: undefined reference tostd::exception::~exception()' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:39: undefined reference to vtable for std::logic_error' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:39: undefined reference tovtable for std::logic_error' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(stdexcept.o): In function runtime_error': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:64: undefined reference tovtable for std::runtime_error' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:64: undefined reference to vtable for std::runtime_error' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:65: undefined reference tostd::exception::~exception()' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:68: undefined reference to vtable for std::runtime_error' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:68: undefined reference tovtable for std::runtime_error' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:69: undefined reference to std::exception::~exception()' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:73: undefined reference tovtable for std::runtime_error' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:73: undefined reference to vtable for std::runtime_error' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(exception.o): In functionstd::uncaught_exception()': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:113: undefined reference to `cxa_uncaught_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(exception.o): In function~exception_ptr': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:184: undefined reference tocxa_decrement_exception_refcount' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(exception.o): In functionexception_ptr': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:202: undefined reference tocxa_increment_exception_refcount' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(exception.o): In functionstd::exception_ptr::operator=(std::exception_ptr const&)': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:222: undefined reference tocxa_increment_exception_refcount' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:223: undefined reference to`cxa_decrement_exception_refcount' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(exception.o): In function std::current_exception()': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:273: undefined reference tocxa_current_primary_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:273: undefined reference to __cxa_current_primary_exception' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(exception.o): In function~exception_ptr': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:184: undefined reference to `cxa_decrement_exception_refcount' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:184: undefined reference to__cxa_decrement_exception_refcount' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:184: undefined reference tocxa_decrement_exception_refcount' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(exception.o): In functionstd::nested_exception::rethrow_nested() const': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:260: undefined reference tostd::terminate()' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(exception.o): In functionexception_ptr': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:202: undefined reference tocxa_increment_exception_refcount' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(exception.o): In function~exception_ptr': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:184: undefined reference tocxa_decrement_exception_refcount' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(exception.o): In functionstd::rethrow_exception(std::exception_ptr)': /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:292: undefined reference tocxa_rethrow_primary_exception' /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:294: undefined reference tostd::terminate()' /Users/amanda/development/tools/android/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(exception.o):(.data.rel.ro+0x20): undefined reference tovtable for cxxabiv1::class_type_info' collect2: error: ld returned 1 exit status

:howie:linkArm64-v8aDebugHowieSharedLibrary FAILED

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 8.152 secs `

ggfan commented 8 years ago

Oh, this one could because of incompatible version of gradle-experimental plugin. could you try not let it upgradle (I believe it was ndk r11 at that time )? not sure could look at it immediately, but will eventually look at it to bring it up to latest studio + ndk R12

asapha commented 8 years ago

Had to use ndk r10e to make it work.