Ubuntu版本:14.04

关于V8

V8是Google自己开发的高性能开源的JavaScript解析引擎。

  • V8在Github上面的地址
  • 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::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::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::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::allocator<char> >::__grow_by(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*,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.solib.target/libv8_libbase.solib.target/libv8_libplatform.solib.target/libicui18n.solib.target/libicuuc.so copy到Android平台的/system/lib/目录下面,将natives_blob.binsnapshot_blob.binhello-world 可执行文件copy到平台的同一目录下面。adb shell进入这个目录,然后执行./hello-world你会看到有Hello,World!打印出来。

Ubuntu环境下编译V8的更多相关文章

  1. html5 移动端视频video的android兼容(去除播放控件、全屏)

    这篇文章主要介绍了html5 移动端视频video的android兼容,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

  2. 为什么这个OpenGL ES 2.0着色器不能在iOS上使用我的VBO?

    如果有人能够了解这里出了什么问题,也许是对gl命令或其他一些不兼容的命令序列的错误排序,我将非常感谢你的帮助.尽管谷歌在“OpenGLES2.0编程指南”中进行了大量研究和研究,但我一直试图让这段代码整天都没有成功.我正在尝试在iPhone上的OpenGLES2.0中使用顶点缓冲区对象和自定义着色器.我试图交错来自以下类型的一系列自定义结构的顶点数据:位置,半径和颜色字节分别考虑顶点位置,点大小和

  3. iOS 10 Safari问题在DOM中不再包含元素

    使用此链接,您可以重现该错误.https://jsfiddle.net/pw7e2j3q/如果您点击元素并从dom中删除它,然后单击链接测试.你应该看到旧的元素弹出选择.是否有一些黑客来解决这个问题?解决方法我能够重现这个问题.问题是,每当您尝试删除其更改事件上的选择框时,iOS10都无法正确解除对选择框的绑定.要解决此问题,您需要将代码更改事件代码放在具有一些超时

  4. ios – 有没有办法针对存档版本(.ipa)运行XCTest(UI)?

    要么我们可以单独构建和测试,以便我们可以先构建并在以后对该构建进行测试吗?

  5. ios app如何“知道”运行单元测试

    我知道我可以用xcodebuild开始我的应用程序的单元测试,但我想知道是什么告诉应用程序在启动期间运行测试,它是一个发送到应用程序的特殊参数,还是以不同的方式编译以运行测试?

  6. ios – 如何在Swift中正确转换为子类?

    我有一个带有许多不同单元格的UITableView,基于数据源内容数组中的内容,它们应该显示自定义内容.在这里我得到了错误UITableViewCell没有属性customLabelQuestionTableViewCell有哪些.我的演员到QuestionTableViewCell有什么问题?解决方法问题不是你的演员,而是你的细胞宣言.您将其声明为可选的UITableViewCell,并且该声明

  7. ios – LLVM,GCC 4.2和Apple LLVM编译器之间的区别3.1

    LLVMGCC4.2和AppleLLVM编译器3.1之间的主要区别是什么?

  8. xcode – 添加OCMock会导致Test启动主应用程序而不是运行测试

    我正在尝试将Ocmock添加到我现有的Cocoa项目中,但我遇到了一个我没有看到其他人覆盖的奇怪问题.我最终将它分离到以下内容:如果我只是将Ocmock.framework引用添加到我的项目中(即以某种方式将其拖到LinkBinaryWithLibraries构建阶段),当我运行测试时,真正的应用程序将被启动.没有Ocmock,输出正常:使用Ocmock框架链接(部分输出):此后,其他应用程序输出

  9. xcode – Apple LLVM 4.2,Objective-C的可用__attribute __(())列表

    我正在寻找可用__attribute__(())指令的列表,我找不到它们.我只知道__attribute__((objc_requires_super)).我发誓我搜索和搜索,我没有找到任何东西.也许我错过了一些包含在搜索中的术语.非常感谢.解决方法文档有时会落后.要获得完整的列表,没有比源代码更新的地方了!https://github.com/llvm-mirror/clang/blob/mas

  10. Xcode:用于条件DEBUG / TEST代码的预处理器宏

    我在我的代码(例如AppDelegate.m)中有不应该为单元测试编译的部分,例如当您在创建新项目时选择“添加单元测试”时,目标是由Xcode设置的.在项目文件中,我已将标志CONfigURATION_TESTS添加到内置目标的MyAppTests的预处理器宏中,但未添加到MyApp目标.这是我发现的许多帖子中的建议方式.但是这不起作用,因为(我猜)MyAppTests目标将MyApp目标作为依赖

随机推荐

  1. crontab发送一个月份的电子邮件

    ubuntu14.04邮件服务器:Postfixroot收到来自crontab的十几封电子邮件.这些邮件包含PHP警告.>我已经解决了这些警告的原因.>我已修复每个cronjobs不发送电子邮件(输出发送到>/dev/null2>&1)>我删除了之前的所有电子邮件/var/mail/root/var/spool/mail/root但我仍然每小时收到十几封电子邮件.这些电子邮件来自cronjobs,

  2. 模拟两个ubuntu服务器计算机之间的慢速连接

    我想模拟以下场景:假设我有4台ubuntu服务器机器A,B,C和D.我想在机器A和机器C之间减少20%的网络带宽,在A和B之间减少10%.使用网络模拟/限制工具来做到这一点?

  3. ubuntu-12.04 – 如何在ubuntu 12.04中卸载从源安装的redis?

    我从源代码在Ubuntu12.04上安装了redis-server.但在某些时候它无法完全安装,最后一次makeinstallcmd失败.然后我刚刚通过apt包安装.现在我很困惑哪个安装正在运行哪个conf文件?实际上我想卸载/删除通过源安装的所有内容,只是想安装一个包.转到源代码树并尝试以下命令:如果这不起作用,您可以列出软件自行安装所需的步骤:

  4. ubuntu – “apt-get source”无法找到包但“apt-get install”和“apt-get cache”可以找到它

    我正在尝试下载软件包的源代码,但是当我运行时它无法找到.但是当我运行apt-cache搜索squid3时,它会找到它.它也适用于apt-getinstallsquid3.我使用的是Ubuntu11.04服务器,这是我的/etc/apt/sources.list我已经多次更新了.我尝试了很多不同的debs,并没有发现任何其他地方的错误.这里的问题是你的二进制包(deb)与你的源包(deb-src)不

  5. ubuntu – 有没有办法检测nginx何时完成正常关闭?

    &&touchrestarted),因为即使Nginx没有完成其关闭,touch命令也会立即执行.有没有好办法呢?这样的事情怎么样?因此,pgrep将查找任何Nginx进程,而while循环将让它坐在那里直到它们全部消失.你可以改变一些有用的东西,比如睡1;/etc/init.d/Nginx停止,以便它会休眠一秒钟,然后尝试使用init.d脚本停止Nginx.你也可以在某处放置一个计数器,这样你就可以在需要太长时间时发出轰击信号.

  6. ubuntu – 如何将所有外发电子邮件从postfix重定向到单个地址进行测试

    我正在为基于Web的应用程序设置测试服务器,该应用程序发送一些电子邮件通知.有时候测试是使用真实的客户数据进行的,因此我需要保证服务器在我们测试时无法向真实客户发送电子邮件.我想要的是配置postfix,以便它接收任何外发电子邮件并将其重定向到一个电子邮件地址,而不是传递到真正的目的地.我正在运行ubuntu服务器9.10.先感谢您设置本地用户以接收所有被困邮件:你需要在main.cf中添加:然后

  7. ubuntu – vagrant无法连接到虚拟框

    当我使用基本的Vagrantfile,只配置了两条线:我看到我的虚拟框打开,但是我的流氓日志多次显示此行直到超时:然后,超时后的一段时间,虚拟框框终于要求我登录,但是太久了!所以我用流氓/流氓记录.然后在我的物理机器上,如果我“流氓ssh”.没有事情发生,直到:怎么了?

  8. ubuntu – Nginx – 转发HTTP AUTH – 用户?

    我和Nginx和Jenkins有些麻烦.我尝试使用Nginx作为Jenkins实例的反向代理,使用HTTP基本身份验证.它到目前为止工作,但我不知道如何传递带有AUTH用户名的标头?}尝试将此指令添加到您的位置块

  9. Debian / Ubuntu – 删除后如何恢复/ var / cache / apt结构?

    我在ubuntu服务器上的空间不足,所以我做了这个命令以节省空间但是现在在尝试使用apt时,我会收到以下错误:等等显然我删除了一些目录结构.有没有办法做apt-getrebuild-var-tree或类似的?

  10. 检查ubuntu上安装的rubygems版本?

    如何查看我的ubuntu盒子上安装的rubygems版本?只是一个想法,列出已安装的软件包和grep为ruby或宝石或其他:)dpkg–get-selections

返回
顶部