phpv8 / v8js

V8 Javascript Engine for PHP — This PHP extension embeds the Google V8 Javascript Engine
http://pecl.php.net/package/v8js
MIT License
1.84k stars 200 forks source link

Build Failed #442

Closed 0length closed 4 years ago

0length commented 4 years ago

Linux proto 4.9.0-12-amd64 #1 SMP Debian 4.9.210-1 (2020-01-20) x86_64 GNU/Linux

error log
...
WARNING: 'v8/third_party/zlib' is no longer part of this client.
It is recommended that you manually remove it or use 'gclient sync -D' next time.
________ running 'vpython v8/gypfiles/landmines.py' in '/tmp'
Clobbering due to:
--- old_landmines       Mon Apr 27 10:35:11 2020
+++ new_landmines       Mon Apr 27 10:37:15 2020
@@ -18,18 +17,0 @@
-Clobber to possibly resolve build failure on Misc V8 Linux gcc.
-Builders switching from make to ninja will clobber on this.
-Need to clobber everything due to an IDL change in r154579 (blink)
-Need to clobber everything due to gen file moves in r175513 (Blink)
-Clobber to get rid of obselete test plugin after r248358
-Clobber to rebuild GN files for V8
-Clobber to get rid of stale generated mojom.h files
-Need to clobber everything due to build_nexe change in nacl r13424
-[chromium-dev] PSA: clobber build needed for IDR_INSPECTOR_* compil...
-blink_resources.grd changed: crbug.com/400860
-ninja dependency cycle: crbug.com/408192
-Clobber to fix missing NaCl gyp dependencies (crbug.com/427427).
-Another clobber for missing NaCl gyp deps (crbug.com/427427).
-Clobber to fix GN not picking up increased ID range (crbug.com/444902)
-Remove NaCl toolchains from the output dir (crbug.com/456902)
-CLobber all to fix GN breakage (crbug.com/736215)
-The Great Blink mv for source files (crbug.com/768828)
-Clobber to workaround buggy .ninja_deps cycle (crbug.com/934404)
________ running 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s v8
/buildtools/linux64/clang-format.sha1' in '/tmp'
0> Downloading v8/buildtools/linux64/clang-format...
Downloading 1 files took 7.841030 second(s)
________ running 'vpython v8/tools/gcmole/download_gcmole_tools.py' in '/tmp'
________ running 'vpython v8/tools/jsfunfuzz/download_jsfunfuzz.py' in '/tmp'
________ running 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-luci -d v8/tools/l
uci-go/linux64' in '/tmp'
0> Downloading v8/tools/luci-go/linux64/isolate...
Downloading 1 files took 5.692337 second(s)
________ running 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-gn -s v8/buildtool
s/linux64/gn.sha1' in '/tmp'
0> Downloading v8/buildtools/linux64/gn...
Downloading 1 files took 5.503044 second(s)
________ running 'download_from_google_storage --no_resume --no_auth -u --bucket v8-wasm-spec-tests -s v8/test/wasm-spec-te
sts/tests.tar.gz.sha1' in '/tmp'
0> Downloading v8/test/wasm-spec-tests/tests.tar.gz...
0> Removed v8/test/wasm-spec-tests/tests...
0> Extracting 65 entries from v8/test/wasm-spec-tests/tests.tar.gz to v8/test/wasm-spec-tests/tests
Downloading 1 files took 5.577027 second(s)
________ running 'download_from_google_storage --no_resume --no_auth -u --bucket chromium-v8-closure-compiler -s v8/src/ins
pector/build/closure-compiler.tar.gz.sha1' in '/tmp'
0> Downloading v8/src/inspector/build/closure-compiler.tar.gz...
0> Extracting 4 entries from v8/src/inspector/build/closure-compiler.tar.gz to v8/src/inspector/build/closure-compiler
Downloading 1 files took 5.689457 second(s)
________ running 'vpython v8/build/linux/sysroot_scripts/install-sysroot.py --running-as-hook' in '/tmp'
Installing Debian Stretch amd64 root image: /tmp/v8/build/linux/debian_stretch_amd64-sysroot
Downloading https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/2202c161310ffde63729f29d27fe7bb24a0bc540/debian_stretch_amd64_sysroot.tar.xz
Installing Debian Stretch i386 root image: /tmp/v8/build/linux/debian_stretch_i386-sysroot
Downloading https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/2202c161310ffde63729f29d27fe7bb24a0bc540/debian_stretch_i386_sysroot.tar.xz
Hook 'vpython v8/build/linux/sysroot_scripts/install-sysroot.py --running-as-hook' took 12.36 secs
________ running 'vpython v8/third_party/binutils/download.py' in '/tmp'
0> Downloading /tmp/v8/third_party/binutils/Linux_x64/binutils.tar.bz2...
Downloading 1 files took 5.549549 second(s)
Downloading /tmp/v8/third_party/binutils/Linux_x64/binutils.tar.bz2
Extracting /tmp/v8/third_party/binutils/Linux_x64/binutils.tar.bz2
________ running 'vpython v8/tools/clang/scripts/update.py' in '/tmp'
Updating Clang to 318667-1...
Downloading prebuilt clang
Downloading https://commondatastorage.googleapis.com/chromium-browser-clang/Linux_x64/clang-318667-1.tgz .......... Done.
Creating directory /tmp/v8/third_party/llvm-build/Release+Asserts
clang 318667-1 unpacked
________ running 'vpython v8/gypfiles/gyp_v8 --running-as-hook' in '/tmp'
GYP is now disabled by default in runhooks.

If you really want to run this, either run 
`python gypfiles/gyp_v8` explicitly by hand 
or set the environment variable GYP_CHROMIUM_NO_ACTION=0.
Warning: Running gclient on Python 3. 
If you encounter any issues, please file a bug on crbug.com under the Infra>SDK component.
################################################################################
/usr/bin/python -u tools/mb/mb.py gen -f infra/mb/mb_config.pyl -m developer_default -b x64.release out.gn/x64.release

  Writing """\
  is_debug = false
  target_cpu = "x64"
  """ to /tmp/v8/out.gn/x64.release/args.gn.

  /tmp/v8/buildtools/linux64/gn gen out.gn/x64.release --check
  Done. Made 96 targets from 65 files in 730ms
################################################################################
Appending """
is_component_build=true
use_custom_libcxx=false
""" to /tmp/v8/out.gn/x64.release/args.gn.
ninja: Entering directory `out.gn/x64.release/'
[1/1] Regenerating ninja files
[1/1] Regenerating ninja files
[1/1] Regenerating ninja files
[1/1523] STAMP obj/d8_js2c.inputdeps.stamp
[2/1523] STAMP obj/js2c.inputdeps.stamp
[3/1523] STAMP obj/js2c_experimental_extras.inputdeps.stamp
[4/1523] ACTION //:js2c_experimental_extras(//build/toolchain/linux:clang_x64)
[5/1523] STAMP obj/js2c_experimental_extras.stamp
[6/1523] STAMP obj/js2c_extras.inputdeps.stamp
[7/1523] ACTION //:js2c_extras(//build/toolchain/linux:clang_x64)
[8/1523] STAMP obj/js2c_extras.stamp
[9/1523] ACTION //:d8_js2c(//build/toolchain/linux:clang_x64)
[10/1523] STAMP obj/d8_js2c.stamp
[11/1523] STAMP obj/postmortem-metadata.inputdeps.stamp
[12/1523] CXX obj/lib_wasm_fuzzer_common/wasm-fuzzer-common.o
FAILED: obj/lib_wasm_fuzzer_common/wasm-fuzzer-common.o 
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/lib_wasm_fuzzer_common/wasm-fuzzer-common.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DCR_CLANG_REVISION=\"318667-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCOMPONENT_BUILD -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DUSING_V8_SHARED -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_GDB_JIT_INTERFACE -DV8_INTL_SUPPORT -DV8_USE_SNAPSHOT -DV8_USE_EXTERNAL_STARTUP_DATA -DV8_CONCURRENT_MARKING -DV8_TARGET_ARCH_X64 -I../.. -Igen -I../../include -Igen/include -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 -B../../third_party/binutils/Linux_x64/Release/bin -pthread -fcolor-diagnostics -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -m64 -march=x86-64 -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 -Wno-tautological-unsigned-zero-compare -Wno-null-pointer-arithmetic -Wno-tautological-constant-compare -Wtautological-constant-out-of-range-compare -fno-omit-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-ipc -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wsign-compare -Winconsistent-missing-override -Wshorten-64-to-32 -O3 -fno-ident -fdata-sections -ffunction-sections -std=gnu++14 -fno-exceptions -fno-rtti --sysroot=../../build/linux/debian_stretch_amd64-sysroot -fvisibility-inlines-hidden -c ../../test/fuzzer/wasm-fuzzer-common.cc -o obj/lib_wasm_fuzzer_common/wasm-fuzzer-common.o
../../third_party/llvm-build/Release+Asserts/bin/clang++: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
[13/1523] ACTION //:postmortem-metadata(//build/toolchain/linux:clang_x64)
[14/1523] ACTION //:js2c(//build/toolchain/linux:clang_x64)
ninja: build stopped: subcommand failed.
ERROR: Service 'app' failed to build: The command '/bin/sh -c apt-get update -y && apt-get install -y build-essential curl git python libglib2.0-dev         && cd /tmp         && git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git         && export PATH=`pwd`/depot_tools:"$PATH"         && fetch v8        && cd v8         && git checkout 6.4.388.18         && gclient sync         && tools/dev/v8gen.py -vv x64.release -- is_component_build=true use_custom_libcxx=false         && ninja -C out.gn/x64.release/         && mkdir -p /opt/v8/{lib,include}         && cp out.gn/x64.release/lib*.so out.gn/x64.release/*_blob.bin out.gn/x64.release/icudtl.dat /opt/v8/lib/         && cp -R include/* /opt/v8/include/         && apt-get install -y patchelf         && for A in /opt/v8/lib/*.so; do sudo patchelf --set-rpath '$ORIGIN' $A; done  
joehoyle commented 4 years ago

This looks to be an issue with building v8, not v8js (php extension) so you may have better chances looking elsewhere for support in building v8.

0length commented 4 years ago

oh i am sorry i wrong .. i just wanna add v8js php extension to my docker image..