红联Linux门户
Linux帮助

Ubuntu环境下编译V8

发布时间:2017-02-18 10:20:33来源:linux网站作者:寒江蓑笠
Ubuntu版本:14.04
 
关于V8
V8是Google自己开发的高性能开源的JavaScript解析引擎。
V8在Github上面的地址:https://github.com/v8/v8/
Ubuntu环境下编译V8
V8开发者页面:https://developers.google.com/v8/
 
下载源码
源码地址:https://github.com/v8/v8
根据文档中的介绍,首先看depot tools是否安装。
然后下载v8源码:
fetch v8
然后进行同步:
git pull origin
gclient sync
根据网站的提示,运行下面脚本来安装一些编译Android版本v8依赖的软件包:
build/install-build-deps-android.sh
 
编译
编译x64版本
make x64.release -j16 component=shared_library
library=shared或者component=shared_library会生成libv8.so。
进入out/x64.release目录,执行:
./hello-world
会有Hello, World!输出。
 
编译android版本
make android_arm.release -j16 component=shared_library android_ndk_root=/home/heqiang/heqiang/android/android-ndk-r11c
刚开始用的nkd版本是android-ndk-r12b,会报一系列的错误:
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/cpu.o:cpu.cc:function v8::base::CPUInfo::CPUInfo(): error: undefined reference to 'operator new[](unsigned int)'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/cpu.o:cpu.cc:function v8::base::CPUInfo::ExtractField(char const*) const: error: undefined reference to 'operator new[](unsigned int)'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/cpu.o:cpu.cc:function v8::base::CPU::CPU(): error: undefined reference to 'operator delete[](void*)'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/cpu.o:cpu.cc:function v8::base::CPU::CPU(): error: undefined reference to 'operator delete[](void*)'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/cpu.o:cpu.cc:function v8::base::CPU::CPU(): error: undefined reference to 'operator delete[](void*)'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/cpu.o:cpu.cc:function v8::base::CPU::CPU(): error: undefined reference to 'operator delete[](void*)'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/debug/stack_trace.o:stack_trace.cc:function std::__ndk1::basic_ios<char, std::__ndk1::char_traits<char> >::~basic_ios(): error: undefined reference to 'operator delete(void*)'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/debug/stack_trace.o:stack_trace.cc:function std::__ndk1::basic_streambuf<char, std::__ndk1::char_traits<char> >::~basic_streambuf(): error: undefined reference to 'operator delete(void*)'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/debug/stack_trace.o:stack_trace.cc:function std::__ndk1::basic_stringbuf<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >::~basic_stringbuf(): error: undefined reference to 'operator delete(void*)'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/debug/stack_trace.o:stack_trace.cc:function std::__ndk1::basic_stringbuf<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >::~basic_stringbuf(): error: undefined reference to 'operator delete(void*)'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/debug/stack_trace.o:stack_trace.cc:function std::__ndk1::enable_if<std::__ndk1::__is_forward_iterator<char*>::value, void>::type std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >::__init<char*>(char*, char*): error: undefined reference to 'operator new(unsigned int)'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/debug/stack_trace.o:stack_trace.cc:function std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >::assign(char const*, unsigned int): error: undefined reference to 'operator new(unsigned int)'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/debug/stack_trace.o:stack_trace.cc:function std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >::__grow_by(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int): error: undefined reference to 'operator new(unsigned int)'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/logging.o:logging.cc:function std::__ndk1::ostreambuf_iterator<char, std::__ndk1::char_traits<char> > std::__ndk1::__pad_and_output<char, std::__ndk1::char_traits<char> >(std::__ndk1::ostreambuf_iterator<char, std::__ndk1::char_traits<char> >, char const*, char const*, char const*, std::__ndk1::ios_base&, char): error: undefined reference to 'operator new(unsigned int)'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/debug/stack_trace_android.o:stack_trace_android.cc:function (anonymous namespace)::TraceStackFrame(_Unwind_Context*, void*): error: undefined reference to '_Unwind_GetIP'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/platform/platform-posix.o:platform-posix.cc:function v8::base::OS::CommitPageSize(): error: undefined reference to '__cxa_guard_acquire'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/platform/platform-posix.o:platform-posix.cc:function v8::base::OS::CommitPageSize(): error: undefined reference to '__cxa_guard_release'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/platform/platform-posix.o:platform-posix.cc:vtable for v8::base::OS::MemoryMappedFile: error: undefined reference to '__cxa_pure_virtual'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/platform/platform-posix.o:platform-posix.cc:vtable for v8::base::OS::MemoryMappedFile: error: undefined reference to '__cxa_pure_virtual'
/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/v8_libbase/src/base/platform/platform-posix.o:platform-posix.cc:vtable for v8::base::Thread: error: undefined reference to '__cxa_pure_virtual'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:113: error: undefined reference to '__cxa_uncaught_exception'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:184: error: undefined reference to '__cxa_decrement_exception_refcount'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:202: error: undefined reference to '__cxa_increment_exception_refcount'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:222: error: undefined reference to '__cxa_increment_exception_refcount'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:223: error: undefined reference to '__cxa_decrement_exception_refcount'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:273: error: undefined reference to '__cxa_current_primary_exception'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:273: error: undefined reference to '__cxa_current_primary_exception'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:184: error: undefined reference to '__cxa_decrement_exception_refcount'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:184: error: undefined reference to '__cxa_decrement_exception_refcount'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:260: error: undefined reference to 'std::terminate()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:202: error: undefined reference to '__cxa_increment_exception_refcount'
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(exception.o)(.ARM.extab.text._ZNKSt16nested_exception14rethrow_nestedEv+0x0): error: undefined reference to '__gxx_personality_v0'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:292: error: undefined reference to '__cxa_rethrow_primary_exception'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:294: error: undefined reference to 'std::terminate()'
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(exception.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/exception.cpp:typeinfo for std::nested_exception: error: undefined reference to 'vtable for __cxxabiv1::__class_type_info'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:276: error: undefined reference to '__cxa_allocate_exception'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:276: error: undefined reference to '__cxa_throw'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:276: error: undefined reference to '__cxa_free_exception'
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(ios.o)(.ARM.extab.text._ZNSt6__ndk18ios_base5clearEj+0x0): error: undefined reference to '__gxx_personality_v0'
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(ios.o)(.ARM.extab.text._ZNSt6__ndk18ios_baseD2Ev+0x0): error: undefined reference to '__gxx_personality_v0'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:326: error: undefined reference to '__cxa_allocate_exception'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:326: error: undefined reference to 'std::bad_alloc::bad_alloc()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:326: error: undefined reference to '__cxa_throw'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:335: error: undefined reference to '__cxa_allocate_exception'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:335: error: undefined reference to 'std::bad_alloc::bad_alloc()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:335: error: undefined reference to '__cxa_throw'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:344: error: undefined reference to '__cxa_allocate_exception'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:344: error: undefined reference to 'std::bad_alloc::bad_alloc()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:344: error: undefined reference to '__cxa_throw'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:319: error: undefined reference to 'std::bad_alloc::bad_alloc()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630: error: undefined reference to 'typeinfo for std::bad_alloc'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630: error: undefined reference to 'std::bad_alloc::~bad_alloc()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630: error: undefined reference to 'typeinfo for std::bad_alloc'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630: error: undefined reference to 'std::bad_alloc::~bad_alloc()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630: error: undefined reference to 'typeinfo for std::bad_alloc'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630: error: undefined reference to 'std::bad_alloc::~bad_alloc()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630: error: undefined reference to 'typeinfo for std::bad_alloc'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630: error: undefined reference to 'std::bad_alloc::~bad_alloc()'
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(ios.o)(.ARM.extab.text._ZNSt6__ndk18ios_base7copyfmtERKS0_+0x0): error: undefined reference to '__gxx_personality_v0'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/istream:883: error: undefined reference to '__cxa_begin_catch'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:458: error: undefined reference to '__cxa_rethrow'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/istream:888: error: undefined reference to '__cxa_end_catch'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/istream:895: error: undefined reference to '__cxa_begin_catch'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/istream:899: error: undefined reference to '__cxa_end_catch'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/istream:888: error: undefined reference to '__cxa_end_catch'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:448: error: undefined reference to '__cxa_rethrow'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/istream:899: error: undefined reference to '__cxa_end_catch'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:458: error: undefined reference to '__cxa_rethrow'
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(ios.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:function __clang_call_terminate: error: undefined reference to '__cxa_begin_catch'
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(ios.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:function __clang_call_terminate: error: undefined reference to 'std::terminate()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:448: error: undefined reference to '__cxa_rethrow'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/istream:595: error: undefined reference to '__cxa_begin_catch'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:70: error: undefined reference to '__cxa_guard_acquire'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:70: error: undefined reference to '__cxa_guard_release'
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(ios.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:vtable for std::__ndk1::ios_base::failure: error: undefined reference to 'std::runtime_error::what() const'
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(ios.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:typeinfo for std::__ndk1::ios_base::failure: error: undefined reference to 'vtable for __cxxabiv1::__si_class_type_info'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(ios.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:typeinfo for std::__ndk1::ios_base: error: undefined reference to 'vtable for __cxxabiv1::__class_type_info'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(ios.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:typeinfo for std::__ndk1::__iostream_category: error: undefined reference to 'vtable for __cxxabiv1::__si_class_type_info'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(ios.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:typeinfo for std::__ndk1::basic_ios<char, std::__ndk1::char_traits<char> >: error: undefined reference to 'vtable for __cxxabiv1::__si_class_type_info'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(ios.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:typeinfo for std::__ndk1::basic_ios<wchar_t, std::__ndk1::char_traits<wchar_t> >: error: undefined reference to 'vtable for __cxxabiv1::__si_class_type_info'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(ios.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:typeinfo for std::__ndk1::basic_streambuf<char, std::__ndk1::char_traits<char> >: error: undefined reference to 'vtable for __cxxabiv1::__class_type_info'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(ios.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:typeinfo for std::__ndk1::basic_streambuf<wchar_t, std::__ndk1::char_traits<wchar_t> >: error: undefined reference to 'vtable for __cxxabiv1::__class_type_info'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(ios.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:typeinfo for std::__ndk1::basic_istream<char, std::__ndk1::char_traits<char> >: error: undefined reference to 'vtable for __cxxabiv1::__vmi_class_type_info'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(ios.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:typeinfo for std::__ndk1::basic_istream<wchar_t, std::__ndk1::char_traits<wchar_t> >: error: undefined reference to 'vtable for __cxxabiv1::__vmi_class_type_info'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(ios.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:typeinfo for std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char> >: error: undefined reference to 'vtable for __cxxabiv1::__vmi_class_type_info'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(ios.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ios.cpp:typeinfo for std::__ndk1::basic_ostream<wchar_t, std::__ndk1::char_traits<wchar_t> >: error: undefined reference to 'vtable for __cxxabiv1::__vmi_class_type_info'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:399: error: undefined reference to 'uselocale'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630: error: undefined reference to 'uselocale'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630: error: undefined reference to 'uselocale'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:52: error: undefined reference to '__cxa_guard_acquire'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:52: error: undefined reference to 'newlocale'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:52: error: undefined reference to '__cxa_guard_release'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:52: error: undefined reference to '__cxa_guard_abort'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:371: error: undefined reference to 'uselocale'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:1293: error: undefined reference to 'isxdigit_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:1299: error: undefined reference to 'isdigit_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:1293: error: undefined reference to 'isxdigit_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:1299: error: undefined reference to 'isdigit_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:5508: error: undefined reference to 'freelocale'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:5518: error: undefined reference to 'strftime_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:5474: error: undefined reference to 'newlocale'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:58: error: undefined reference to 'newlocale'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:5490: error: undefined reference to 'newlocale'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:348: error: undefined reference to 'localeconv'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630: error: undefined reference to 'freelocale'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630: error: undefined reference to 'freelocale'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:5928: error: undefined reference to '__cxa_free_exception'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:5928: error: undefined reference to 'typeinfo for std::runtime_error'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:5928: error: undefined reference to 'std::runtime_error::~runtime_error()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:348: error: undefined reference to 'localeconv'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630: error: undefined reference to 'freelocale'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:5981: error: undefined reference to '__cxa_free_exception'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:5981: error: undefined reference to 'typeinfo for std::runtime_error'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:5981: error: undefined reference to 'std::runtime_error::~runtime_error()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:348: error: undefined reference to 'localeconv'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:6051: error: undefined reference to '__cxa_free_exception'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630: error: undefined reference to 'typeinfo for std::runtime_error'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630: error: undefined reference to 'std::runtime_error::~runtime_error()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:348: error: undefined reference to 'localeconv'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630: error: undefined reference to 'typeinfo for std::runtime_error'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2630: error: undefined reference to 'std::runtime_error::~runtime_error()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:3679: error: undefined reference to 'catopen'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:3701: error: undefined reference to 'catgets'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:3717: error: undefined reference to 'catclose'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:3701: error: undefined reference to 'catgets'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/vector:305: error: undefined reference to 'vtable for std::length_error'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/vector:305: error: undefined reference to 'typeinfo for std::length_error'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/vector:305: error: undefined reference to 'std::length_error::~length_error()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/vector:316: error: undefined reference to 'vtable for std::out_of_range'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/vector:316: error: undefined reference to 'typeinfo for std::out_of_range'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/vector:316: error: undefined reference to 'std::out_of_range::~out_of_range()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:476: error: undefined reference to '__cxa_guard_acquire'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:476: error: undefined reference to '__cxa_guard_release'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:476: error: undefined reference to '__cxa_guard_abort'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:456: error: undefined reference to 'std::bad_cast::bad_cast()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:456: error: undefined reference to 'typeinfo for std::bad_cast'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:456: error: undefined reference to 'std::bad_cast::~bad_cast()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:492: error: undefined reference to '__cxa_guard_abort'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:703: error: undefined reference to 'strcoll_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:715: error: undefined reference to 'strxfrm_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:716: error: undefined reference to 'strxfrm_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:767: error: undefined reference to 'wcscoll_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:779: error: undefined reference to 'wcsxfrm_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:780: error: undefined reference to 'wcsxfrm_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1184: error: undefined reference to 'toupper_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1191: error: undefined reference to 'toupper_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1198: error: undefined reference to 'tolower_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1205: error: undefined reference to 'tolower_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1258: error: undefined reference to 'iswspace_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1259: error: undefined reference to 'iswprint_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1260: error: undefined reference to 'iswcntrl_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1261: error: undefined reference to 'iswupper_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1262: error: undefined reference to 'iswlower_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1263: error: undefined reference to 'iswalpha_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1264: error: undefined reference to 'iswdigit_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1265: error: undefined reference to 'iswpunct_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1266: error: undefined reference to 'iswxdigit_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1267: error: undefined reference to 'iswblank_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1283: error: undefined reference to 'iswspace_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1285: error: undefined reference to 'iswprint_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1287: error: undefined reference to 'iswcntrl_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1289: error: undefined reference to 'iswupper_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1291: error: undefined reference to 'iswlower_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1293: error: undefined reference to 'iswalpha_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1295: error: undefined reference to 'iswdigit_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1297: error: undefined reference to 'iswpunct_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1299: error: undefined reference to 'iswxdigit_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1316: error: undefined reference to 'iswspace_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1317: error: undefined reference to 'iswprint_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1318: error: undefined reference to 'iswcntrl_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1319: error: undefined reference to 'iswupper_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1320: error: undefined reference to 'iswlower_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1321: error: undefined reference to 'iswalpha_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1322: error: undefined reference to 'iswdigit_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1323: error: undefined reference to 'iswpunct_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1324: error: undefined reference to 'iswxdigit_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1325: error: undefined reference to 'iswblank_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1341: error: undefined reference to 'iswspace_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1342: error: undefined reference to 'iswprint_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1343: error: undefined reference to 'iswcntrl_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1344: error: undefined reference to 'iswupper_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1345: error: undefined reference to 'iswlower_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1346: error: undefined reference to 'iswalpha_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1347: error: undefined reference to 'iswdigit_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1348: error: undefined reference to 'iswpunct_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1349: error: undefined reference to 'iswxdigit_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1350: error: undefined reference to 'iswblank_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1360: error: undefined reference to 'towupper_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1367: error: undefined reference to 'towupper_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1374: error: undefined reference to 'towlower_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:1381: error: undefined reference to 'towlower_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:280: error: undefined reference to 'wcsnrtombs'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:303: error: undefined reference to 'mbsnrtowcs'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:326: error: undefined reference to 'mbtowc'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4579: error: undefined reference to '__cxa_guard_abort'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4834: error: undefined reference to 'strftime_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4982: error: undefined reference to 'strftime_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:5128: error: undefined reference to 'strftime_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:867: error: undefined reference to 'strtoll_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:867: error: undefined reference to 'strtoll_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:907: error: undefined reference to 'strtoull_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:907: error: undefined reference to 'strtoull_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:907: error: undefined reference to 'strtoull_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:937: error: undefined reference to 'strtold_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/locale:937: error: undefined reference to 'strtold_l'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/memory.cpp:38: error: undefined reference to 'std::exception::~exception()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/memory.cpp:38: error: undefined reference to 'std::exception::~exception()'
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(memory.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/memory.cpp:vtable for std::__ndk1::__shared_count: error: undefined reference to '__cxa_pure_virtual'
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(memory.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/memory.cpp:typeinfo for std::__ndk1::bad_weak_ptr: error: undefined reference to 'typeinfo for std::exception'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/string:1210: error: undefined reference to 'vtable for std::length_error'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/string:1210: error: undefined reference to 'typeinfo for std::length_error'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/string:1210: error: undefined reference to 'std::length_error::~length_error()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:32: error: undefined reference to 'std::exception::~exception()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:32: error: undefined reference to 'vtable for std::logic_error'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:36: error: undefined reference to 'std::exception::~exception()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:36: error: undefined reference to 'vtable for std::logic_error'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:40: error: undefined reference to 'vtable for std::logic_error'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:65: error: undefined reference to 'vtable for std::runtime_error'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:69: error: undefined reference to 'vtable for std::runtime_error'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/stdexcept.cpp:74: error: undefined reference to 'vtable for std::runtime_error'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/string:1221: error: undefined reference to 'vtable for std::out_of_range'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/string:1221: error: undefined reference to 'typeinfo for std::out_of_range'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/string:1221: error: undefined reference to 'std::out_of_range::~out_of_range()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'vtable for std::invalid_argument'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'typeinfo for std::invalid_argument'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'std::invalid_argument::~invalid_argument()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'vtable for std::out_of_range'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'typeinfo for std::out_of_range'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'std::out_of_range::~out_of_range()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'vtable for std::invalid_argument'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'typeinfo for std::invalid_argument'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'std::invalid_argument::~invalid_argument()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'vtable for std::out_of_range'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'typeinfo for std::out_of_range'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'std::out_of_range::~out_of_range()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'vtable for std::invalid_argument'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'typeinfo for std::invalid_argument'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'std::invalid_argument::~invalid_argument()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/string.cpp:72: error: undefined reference to 'wcstoll'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'vtable for std::invalid_argument'
/home/heqiang/heqiang/test/v8/third_party/binutils/Linux_x64/Release/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'typeinfo for std::invalid_argument'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:1636: error: undefined reference to 'std::invalid_argument::~invalid_argument()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/string.cpp:72: error: undefined reference to 'wcstoull'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/string.cpp:189: error: undefined reference to 'strtold'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/string.cpp:189: error: undefined reference to 'wcstold'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/system_error.cpp:201: error: undefined reference to 'std::runtime_error::~runtime_error()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/system_error.cpp:201: error: undefined reference to 'std::runtime_error::~runtime_error()'
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(system_error.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/system_error.cpp:vtable for std::__ndk1::system_error: error: undefined reference to 'std::runtime_error::what() const'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/thread.cpp:37: error: undefined reference to 'std::terminate()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:81: error: undefined reference to 'std::logic_error::~logic_error()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:81: error: undefined reference to 'std::logic_error::~logic_error()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:81: error: undefined reference to 'std::logic_error::~logic_error()'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:81: error: undefined reference to 'std::logic_error::~logic_error()'
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(future.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:vtable for std::__ndk1::future_error: error: undefined reference to 'std::logic_error::what() const'
/home/heqiang/heqiang/android/v8-android_tools/ndk/sources/cxx-stl//llvm-libc++/libs/armeabi-v7a/libc++_static.a(future.o):/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/future.cpp:typeinfo for std::__ndk1::future_error: error: undefined reference to 'typeinfo for std::logic_error'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/heqiang/heqiang/test/v8/out/android_arm.release/obj.target/src/libv8_libbase.so] 错误 1
make[2]: *** 正在等待未完成的任务....
 
后来看到网上的解决办法,把ndk版本变成android-ndk-r11c就可以编译过了。
使用生成的默认的Makefile在Android平台上执行hello-world时会报错:
error: only position independent executables (PIE) are supported
解决办法,在out/Makefile.android_arm.release中加上:
#CFLAGS_Debug += -pie -fPIE
#CFLAGS_C_Debug += -pie -fPIE
#CFLAGS_CC_Debug += -pie -fPIE
#CFLAGS_Optdebug += -pie -fPIE
#CFLAGS_C_Optdebug += -pie -fPIE
#CFLAGS_CC_Optdebug += -pie -fPIE
CFLAGS_Release += -pie -fPIE
CFLAGS_C_Release += -pie -fPIE
CFLAGS_CC_Release += -pie -fPIE
#LDFLAGS_Debug += -pie -fPIE
#LDFLAGS_Optdebug += -pie -fPIE
LDFLAGS_Release += -pie -fPIE
删除out目录下面的android_arm.release目录:
rm -rf android_arm.release
进入out/android_arm.release然后再重新编译就可以执行了。
将 lib.target/libv8.so, lib.target/libv8_libbase.so, lib.target/libv8_libplatform.so, lib.target/libicui18n.so, lib.target/libicuuc.so copy到Android平台的/system/lib/目录下面,将natives_blob.bin, snapshot_blob.bin 和 hello-world 可执行文件copy到平台的同一目录下面。adb shell进入这个目录,然后执行./hello-world你会看到有Hello, World!打印出来。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/28506.html