在make v8中安装失败

时间:2015-12-23 12:48:03

标签: makefile install v8

我在安装v8时遇到错误:

请:

# make library=shared i18nsupport=off native
PYTHONPATH="/tmp/v8/tools/generate_shim_headers:/tmp/v8/build::/tmp/v8/build/gyp/pylib:" \
        GYP_GENERATORS=make \
        build/gyp/gyp --generator-output="out" build/all.gyp \
                      -Ibuild/standalone.gypi --depth=. -S.native  -Dcomponent=shared_library -Dv8_enable_backtrace=1 -Dv8_enable_i18n_support=0 -Darm_fpu=default -Darm_float_abi=default
make[1]: Entering directory `/tmp/v8/out'
  CXX(target) /tmp/v8/out/native/obj.target/v8_base/src/accessors.o
/tmp/v8/third_party/llvm-build/Release+Asserts/bin/clang++: 1: /tmp/v8/third_party/llvm-build/Release+Asserts/bin/clang++: Syntax error: ")" unexpected
make[1]: *** [/tmp/v8/out/native/obj.target/v8_base/src/accessors.o] Error 2
make[1]: Leaving directory `/tmp/v8/out'
make: *** [native] Error 2

1 个答案:

答案 0 :(得分:0)

我认为当您尝试在32位系统上运行捆绑的clang(x86_64二进制文件)时,会出现这种(极其无用的☹)错误消息。尝试GYPFLAGs="-Dclang=0"回退到系统的默认编译器:

make library=shared i18nsupport=off native GYPFLAGS="-Dclang=0"