Error building V8 for Android on OSX -
i installed depot_tools, fetched v8 , generated config:
tools/dev/v8gen.py android.arm.release
gn args has following keys:
is_debug = false target_cpu = "arm" target_os = "android" v8_android_log_stdout = true
i added next ones:
v8_target_cpu = "arm" is_component_build = false symbol_level = 0 v8_enable_i18n_support= false
and run:
ninja -c out.gn/android.arm.release d8
and got error:
ninja: error: '../../third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a', needed 'd8', missing , no known rule make it
there no darwin-x86_64 folder in ../../third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/ linux-x86_64 exists only.
so replaced ndk path (added gn args) with:
android_ndk_root="$home/android-ndks/android-ndk-r14b" android_ndk_version="r14b"
and ran again got error:
[49/1128] cxx obj/v8_libbase/bits.o failed: obj/v8_libbase/bits.o ../../third_party/llvm-build/release+asserts/bin/clang++ -mmd -mf obj/v8_libbase/bits.o.d -dv8_deprecation_warnings -duse_openssl_certs=1 -dno_tcmalloc -ddisable_nacl -dsafe_browsing_db_remote -dchromium_build -dfieldtrial_testing_enabled -dcr_clang_revision=\"310694-1\" -d_file_offset_bits=64 -dandroid -dhave_sys_uio_h -dandroid_ndk_version_roll=r14b_1 -d__stdc_constant_macros -d__stdc_format_macros -d_fortify_source=2 -d__gnu_source=1 -d__compiler_offsetof=builtin_offsetof -dnan=__builtin_nan -dndebug -dnvalgrind -ddynamic_annotations_enabled=0 -denable_handle_zapping -dv8_use_snapshot -dv8_use_external_startup_data -dv8_target_arch_arm -dcan_use_armv7_instructions -dcan_use_vfp3_instructions -dcan_use_vfp32dregs -dcan_use_neon -dv8_android_log_stdout -i../.. -igen -i../.. -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -wno-builtin-macro-redefined -d__date= -d__time__= -d__timestamp__= -funwind-tables -fpic -pipe -fcolor-diagnostics -ffunction-sections -fno-short-enums --target=arm-linux-androideabi -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -mfpu=neon -mthumb -wall -werror -wextra -wno-missing-field-initializers -wno-unused-parameter -wno-c++11-narrowing -wno-covered-switch-default -wno-unneeded-internal-declaration -wno-inconsistent-missing-override -wno-undefined-var-template -wno-nonportable-include-path -wno-address-of-packed-member -wno-unused-lambda-capture -wno-user-defined-warnings -wno-enum-compare-switch -fomit-frame-pointer -g0 -fvisibility=hidden -xclang -load -xclang ../../third_party/llvm-build/release+asserts/lib/libfindbadconstructs.so -xclang -add-plugin -xclang find-bad-constructs -xclang -plugin-arg-find-bad-constructs -xclang check-auto-raw-pointer -xclang -plugin-arg-find-bad-constructs -xclang check-ipc -wheader-hygiene -wstring-conversion -wtautological-overlap-compare -wsign-compare -winconsistent-missing-override -o2 -fno-ident -fdata-sections -ffunction-sections -std=gnu++14 -fno-rtti -isystem../../../../../android-ndks/android-ndk-r14b/sources/cxx-stl/llvm-libc++/libcxx/include -isystem../../../../../android-ndks/android-ndk-r14b/sources/cxx-stl/llvm-libc++abi/libcxxabi/include -isystem../../../../../android-ndks/android-ndk-r14b/sources/android/support/include --sysroot=../../../../../android-ndks/android-ndk-r14b/platforms/android-16/arch-arm -fno-exceptions -fvisibility-inlines-hidden -c ../../src/base/bits.cc -o obj/v8_libbase/bits.o error: unable load plugin '../../third_party/llvm-build/release+asserts/lib/libfindbadconstructs.so': 'dlopen(../../third_party/llvm-build/release+asserts/lib/libfindbadconstructs.so, 9): image not found' [52/1128] action //:js2c(//build/toolchain/android:android_clang_arm) ninja: build stopped: subcommand failed.
there no ../../third_party/llvm-build/release+asserts/lib/libfindbadconstructs.so, libfindbadconstructs.dylib!
may me resolve error?
Comments
Post a Comment