javascript - Can not build V8 for Android on Mac -


i tried following steps build v8 android.

1.install depot_tools

git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git export path=`pwd`/depot_tools:"$path" 
  1. run “fetch v8” download code , dependencies.
  2. cd v8 , run “make ia32.release” build.
  3. make android_arm.release -j16 android_ndk_root=[full path ndk]

step 3 build , got libraries. while 4 failed because can't find standard headers.

/users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/stdio.h:108:15: fatal error: 'stdio.h' file not found #include_next <stdio.h>               ^ in file included ../src/api.cc:5: in file included .././src/api.h:8: in file included .././include/v8-testing.h:8: in file included ../include/v8.h:20: /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/stdio.h:108:15: fatal error: 'stdio.h' file not found #include_next <stdio.h>               ^ in file included ../src/asmjs/asm-wasm-builder.cc:5: in file included .././src/v8.h:8: in file included .././include/v8.h:20: /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/stdio.h:108:15: fatal error: 'stdio.h' file not found #include_next <stdio.h>               ^ in file included ../src/asmjs/typing-asm.cc:5: in file included .././src/asmjs/typing-asm.h:8: in file included .././src/allocation.h:8: in file included .././src/globals.h:11: in file included /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/ostream:138: in file included /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/ios:215: in file included /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/iosfwd:90: /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/wchar.h:119:15: fatal error: 'wchar.h' file not found #include_next <wchar.h>               ^ in file included ../src/accessors.cc:5: in file included .././src/accessors.h:8: in file included .././include/v8.h:20: /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/stdio.h:108:15: fatal error: 'stdio.h' file not found #include_next <stdio.h>in file included  ../src/assembler.cc:              ^35 : in file included .././src/assembler.h:38: in file included .././src/allocation.h:8: in file included .././src/globals.h:11: in file included /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/ostream:138: in file included /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/ios:215: in file included /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/iosfwd:90: /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/wchar.h:119:15: fatal error: 'wchar.h' file not found #include_next <wchar.h>               ^in file included  ../src/arguments.cc:5: in file included .././src/arguments.h:8: in file included .././src/allocation.h:8: in file included .././src/globals.h:11: in file included /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/ostream:138: in file included /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/ios:215: in file included /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/iosfwd:90: /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/wchar.h:119:15: fatal error: 'wchar.h' file not found #include_next <wchar.h>               ^ in file included ../src/api-experimental.cc:9: in file included .././src/api-experimental.h:8: in file included .././src/handles.h:8: in file included .././include/v8.h:20: /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/stdio.h:108:15: fatal error: 'stdio.h' file not found #include_next <stdio.h>               ^ in file included ../src/address-map.cc:5: in file included .././src/address-map.h:8: in file included .././src/assert-scope.h:9: in file included .././src/base/macros.h:8: in file included .././src/base/compiler-specific.h:8: .././include/v8config.h:14:11: fatal error: 'targetconditionals.h' file not found # include <targetconditionals.h>           ^ in file included ../src/allocation.cc:5: in file included .././src/allocation.h:8: in file included .././src/globals.hin file included :../src/asmjs/asm-types.cc11:: 5in file included : /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/ostreamin file included :.././src/v8.h138:: 8in file included : /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/iosin file included :.././include/v8.h215:: 20in file included : /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/iosfwd:/users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/stdio.h90:: 108:15/users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/wchar.h:: 119:15:fatal error : fatal error'stdio.h':  file 'wchar.h'not  filefound not  found #include_next <stdio.h>               ^ #include_next <wchar.h>               ^ in file included ../src/assert-scope.ccin file included ../src/ast/ast-expression-rewriter.cc:5: in file included .././src/ast/ast.h:8: in file included .././src/ast/ast-value-factory.h:31: in file included .././src/api.h:8: in file included .././include/v8-testing.h:8: in file included ../include/v8.h:20: /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/stdio.h:108:15: fatal error: 'stdio.h' file not found #include_next <stdio.h>               ^ :5: in file included .././src/assert-scope.h:9: in file included .././src/base/macros.h:8: in file included .././src/base/compiler-specific.h:8: .././include/v8config.h:14:11: fatal error: 'targetconditionals.h' file not foundin file included  ../src/api-arguments.cc:5: in file included .././src/api-arguments.h:8: in file included .././src/api.h:8: in file included .././include/v8-testing.h:8: in file included ../include/v8.h:20: /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/stdio.h:108:15: fatal error: 'stdio.h' # include <targetconditionals.h>file  not           ^found  #include_next <stdio.h>               ^in file included  ../src/asmjs/asm-js.cc:5: in file included .././src/asmjs/asm-js.h:9: in file included .././src/allocation.h:8: in file included .././src/globals.h:11: in file included /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/ostream:138: in file included /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/ios:215: in file included /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/iosfwd:90: /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/wchar.h:119:15: fatal error: 'wchar.h' file not found #include_next <wchar.h>               ^ in file included ../src/allocation-site-scopes.cc:5: in file included .././src/allocation-site-scopes.h:8: in file included .././src/ast/ast.h:8: in file included .././src/ast/ast-value-factory.h:31: in file included .././src/api.h:8: in file included .././include/v8-testing.h:8: in file included ../include/v8.h:20: /users/philip/v8/third_party/llvm-build/release+asserts/bin/../include/c++/v1/stdio.h:108:15: fatal error: 'stdio.h' file not found #include_next <stdio.h>               ^ 1 error generated. make[2]: *** [/users/philip/v8/out/android_arm.release/obj.host/v8_base/src/allocation.o] error 1 make[2]: *** waiting unfinished jobs.... 1 error generated. make[2]: *** [/users/philip/v8/out/android_arm.release/obj.host/v8_base/src/asmjs/asm-types.o] error 1 1 error generated. make[2]: *** [/users/philip/v8/out/android_arm.release/obj.host/v8_base/src/address-map.o] error 1 1 error generated. 1 error generated. make[2]: *** [/users/philip/v8/out/android_arm.release/obj.host/v8_base/src/arguments.o] error 1 make[2]: *** [/users/philip/v8/out/android_arm.release/obj.host/v8_base/src/api-natives.o] error 1 1 error generated. make[2]: *** [/users/philip/v8/out/android_arm.release/obj.host/v8_base/src/api-arguments.o] error 1 1 error generated. make[2]: *** [/users/philip/v8/out/android_arm.release/obj.host/v8_base/src/api-experimental.o] error 1 1 error generated. make[2]: *** [/users/philip/v8/out/android_arm.release/obj.host/v8_base/src/allocation-site-scopes.o] error 1 1 error generated. make[2]: *** [/users/philip/v8/out/android_arm.release/obj.host/v8_base/src/ast/ast-expression-rewriter.o] error 1 1 error generated. make[2]: *** [/users/philip/v8/out/android_arm.release/obj.host/v8_base/src/assert-scope.o] error 1 1 error generated. make[2]: *** [/users/philip/v8/out/android_arm.release/obj.host/v8_base/src/accessors.o] error 1 1 error generated. make[2]: *** [/users/philip/v8/out/android_arm.release/obj.host/v8_base/src/asmjs/asm-js.o] error 1 1 error generated. 1 error generated. make[2]: *** [/users/philip/v8/out/android_arm.release/obj.host/v8_base/src/asmjs/asm-wasm-builder.o] error 1 make[2]: *** [/users/philip/v8/out/android_arm.release/obj.host/v8_base/src/asmjs/typing-asm.o] error 1 1 error generated. make[2]: *** [/users/philip/v8/out/android_arm.release/obj.host/v8_base/src/assembler.o] error 1 1 error generated. make[2]: *** [/users/philip/v8/out/android_arm.release/obj.host/v8_base/src/api.o] error 1 make[1]: *** [android_arm.release] error 2 make: *** [android_arm.release] error 2 

dont use -j parameter.

source: v8 wiki

optional parameters:

-j specifies number of parallel build processes. set (roughly) number of cpu cores machine has. gyp/make based v8 build supports distcc, can compile -j100 or so, provided have enough machines around.

but compiler says, can't find targetconditionals.h

.././include/v8config.h:14:11: fatal error: 'targetconditionals.h' file not found 

Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -