Yeah, you'll need adaptations. The Makefile doesn't exist any more; we use GN now, either directly or with our "gm.py" convenience wrapper. See our current build instructions at https://v8.dev/docs/build.
On Wed, Sep 25, 2019 at 10:55 PM Manikandan Kaliyaperumal < rkman...@gmail.com> wrote: > Hello, > > Thanks for thorwing some light on this. So, we decided to move to the > version you recommended, 7.7. But, it still fails with some "no rule" > error. I just updated the VERSION=7.7 and ran it as is. Do i need to make > any adjustments in the build.v8.sh or elsewhere? Please let me know. > > > > [0:03:08] Still working on: > [0:03:08] v8 > > Running: gclient root > Running: gclient config --spec 'solutions = [ > { > "url": "https://chromium.googlesource.com/v8/v8.git", > "managed": False, > "name": "v8", > "deps_file": "DEPS", > "custom_deps": {}, > }, > ] > ' > Running: gclient sync --nohooks --with_branch_heads > Running: git submodule foreach 'git config -f $toplevel/.git/config > submodule.$name.ignore all' > Running: git config --add remote.origin.fetch '+refs/tags/*:refs/tags/*' > Running: git config diff.ignoreSubmodules all > [91m+ pushd v8 > [0m/go/v8.tmp/v8 /go/v8.tmp /go /go/src/github.com/Runscope/script-processor > > [91m+ git checkout branch-heads/7.7 > [0m [91mPrevious HEAD position was 1a92c98... PPC/s390: [ptr-compr] Switch > to 31 bit Smis on 64-bit architectures > [0m [91mHEAD is now at 027689d... Version 7.7.299.11 > [0m [91m+ gclient sync > > [0m________ running 'vpython > v8/third_party/depot_tools/update_depot_tools_toggle.py --disable' in > '/go/v8.tmp' > > Hook 'vpython v8/third_party/depot_tools/update_depot_tools_toggle.py > --disable' took 13.08 secs > > ________ running 'vpython v8/build/landmines.py --landmine-scripts > v8/tools/get_landmines.py' in '/go/v8.tmp' > > ________ running 'download_from_google_storage --no_resume --platform=linux* > --no_auth --bucket chromium-clang-format -s > v8/buildtools/linux64/clang-format.sha1' in '/go/v8.tmp' > 0> Downloading v8/buildtools/linux64/clang-format... > Downloading 1 files took 23.798234 second(s) > Hook 'download_from_google_storage --no_resume '--platform=linux*' --no_auth > --bucket chromium-clang-format -s v8/buildtools/linux64/clang-format.sha1' > took 23.87 secs > > ________ running 'download_from_google_storage --no_resume --no_auth -u > --bucket v8-wasm-spec-tests -s v8/test/wasm-spec-tests/tests.tar.gz.sha1' in > '/go/v8.tmp' > 0> Downloading v8/test/wasm-spec-tests/tests.tar.gz... > 0> Extracting 224 entries from v8/test/wasm-spec-tests/tests.tar.gz to > v8/test/wasm-spec-tests/tests > Downloading 1 files took 6.936039 second(s) > > ________ running 'vpython v8/build/linux/sysroot_scripts/install-sysroot.py > --arch=x86' in '/go/v8.tmp' > Installing Debian sid i386 root image: > /go/v8.tmp/v8/build/linux/debian_sid_i386-sysroot > Downloading > https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/9e6279438ece6fb42b5333ca90d5e9d0c188a403/debian_sid_i386_sysroot.tar.xz > Hook 'vpython v8/build/linux/sysroot_scripts/install-sysroot.py --arch=x86' > took 11.58 secs > > ________ running 'vpython v8/build/linux/sysroot_scripts/install-sysroot.py > --arch=x64' in '/go/v8.tmp' > Installing Debian sid amd64 root image: > /go/v8.tmp/v8/build/linux/debian_sid_amd64-sysroot > Downloading > https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/e7c53f04bd88d29d075bfd1f62b073aeb69cbe09/debian_sid_amd64_sysroot.tar.xz > > ________ running 'vpython v8/third_party/binutils/download.py' in '/go/v8.tmp' > > 0> Downloading > /go/v8.tmp/v8/third_party/binutils/Linux_x64/binutils.tar.bz2... > Downloading 1 files took 6.474529 second(s) > Downloading /go/v8.tmp/v8/third_party/binutils/Linux_x64/binutils.tar.bz2 > Extracting /go/v8.tmp/v8/third_party/binutils/Linux_x64/binutils.tar.bz2 > > ________ running 'vpython v8/tools/clang/scripts/update.py' in '/go/v8.tmp' > Downloading > https://commondatastorage.googleapis.com/chromium-browser-clang/Linux_x64/clang-365097-f7e52fbd-6.tgz > .......... Done. > ________ running 'vpython v8/build/util/lastchange.py -o > v8/build/util/LASTCHANGE' in '/go/v8.tmp' > [91m+ popd > [0m/go/v8.tmp /go /go/src/github.com/Runscope/script-processor > [91m+ popd > [0m/go /go/src/github.com/Runscope/script-processor > [91m+ mv /go/v8.tmp/v8 /go/v8-7.7 > [0m [91m+ V8_TMP_finish > + rm -rf /go/v8.tmp > [0m/go/v8-7.7 /go /go/src/github.com/Runscope/script-processor > /go/v8-7.7/build > <http://github.com/Runscope/script-processor/go/v8-7.7/build> /go/v8-7.7 /go > /go/src/github.com/Runscope/script-processor > /go/v8-7.7/build <http://github.com/Runscope/script-processor/go/v8-7.7/build> > [91m+ pushd /go/v8-7.7 > + pushd build > > [91m+ git clone https://chromium.googlesource.com/external/gyp > [0mCloning into 'gyp'... > > [91m+ popd > [0m [91m+ cp /go/src/github.com/Runscope/script-processor/v8.h > /go/v8-7.7/include/v8.h > [0m/go/v8-7.7 /go /go/src/github.com/Runscope/script-processor > [91m+ CXXFLAGS=-Wno-unused-function > + make i18nsupport=off native > [0m [91mmake: *** No rule to make target `native'. Stop. > [0m [91m+ V8_TMP_finish > + rm -rf /go/v8.tmp > > [0mThe command '/bin/sh -c /tmp/build.v8.sh' returned a non-zero code: 2 > Build step 'Execute shell' marked build as failure > > Archiving artifacts > > Finished: FAILURE > > > Thanks, > Mani > > On Wednesday, September 25, 2019 at 2:58:03 AM UTC-7, Jakob Kummerow wrote: >> >> Ah. These errors make sense, *.googlecode.com doesn't exist any more. >> You'll have to figure out where to get those dependencies (at the >> right versions!) nowadays. After putting them all in the right places, run >> "gclient runhooks" instead of "gclient sync" (which usually implies the >> former). >> >> If all the archeology ends up taking too much time, your alternative is >> to update to a non-ancient version of V8, where everything works out of the >> box. >> >> >> On Wed, Sep 25, 2019 at 11:50 AM Mani <rkma...@gmail.com> wrote: >> >>> Hello, >>> >>> Thanks for the reply and suggestions. >>> >>> Per your suggestion, picked branch-heads/3.28 and reordered "gclient >>> sync", both gives the below error. It says SVN/trunk not available. Am i >>> doing something wrong? Please let me know. >>> >>> # VERSION=3.28.71 >>> VERSION=3.28 >>> pushd v8 >>> git checkout branch-heads/$VERSION >>> #git pull origin $VERSION >>> #gclient sync >>> #git checkout $VERSION >>> gclient sync >>> popd >>> >>> >>> Running: gclient sync --nohooks --with_branch_heads >>> Running: git submodule foreach 'git config -f $toplevel/.git/config >>> submodule.$name.ignore all' >>> Running: git config --add remote.origin.fetch '+refs/tags/*:refs/tags/*' >>> Running: git config diff.ignoreSubmodules all >>> [91m+ pushd v8 >>> [0m/go/v8.tmp/v8 /go/v8.tmp /go >>> /go/src/github.com/Runscope/script-processor >>> [91m+ git checkout branch-heads/3.28 >>> [0m [91mPrevious HEAD position was 0f15403... [cleanup] Move string >>> functions out of CSA >>> [0m [91mHEAD is now at 4dbc223... Version 3.28.71.19 (merged r23127) >>> [0m [91m+ gclient sync >>> [0m2>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" >>> "--no-checkout" "--progress" "http://gyp.googlecode.com/svn/trunk" >>> "/go/v8.tmp/v8/build/_gclient_gyp_EePdtR"' in /go/v8.tmp failed; will retry >>> after a short nap... >>> 5>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" >>> "--no-checkout" "--progress" "http://googletest.googlecode.com/svn/trunk" >>> "/go/v8.tmp/v8/testing/_gclient_gtest_eu1TiD"' in /go/v8.tmp failed; will >>> retry after a short nap... >>> 4>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" >>> "--no-checkout" "--progress" "http://googlemock.googlecode.com/svn/trunk" >>> "/go/v8.tmp/v8/testing/_gclient_gmock_s71sNl"' in /go/v8.tmp failed; will >>> retry after a short nap... >>> 2>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" >>> "--no-checkout" "--progress" "http://gyp.googlecode.com/svn/trunk" >>> "/go/v8.tmp/v8/build/_gclient_gyp_EePdtR"' in /go/v8.tmp failed; will retry >>> after a short nap... >>> 5>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" >>> "--no-checkout" "--progress" "http://googletest.googlecode.com/svn/trunk" >>> "/go/v8.tmp/v8/testing/_gclient_gtest_eu1TiD"' in /go/v8.tmp failed; will >>> retry after a short nap... >>> 6>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" >>> "origin" "--prune"' in /go/v8.tmp/v8/third_party/icu failed; will retry >>> after a short nap... >>> 4>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" >>> "--no-checkout" "--progress" "http://googlemock.googlecode.com/svn/trunk" >>> "/go/v8.tmp/v8/testing/_gclient_gmock_s71sNl"' in /go/v8.tmp failed; will >>> retry after a short nap... >>> 6>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" >>> "origin" "--prune"' in /go/v8.tmp/v8/third_party/icu failed; will retry >>> after a short nap... >>> 2>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" >>> "--no-checkout" "--progress" "http://gyp.googlecode.com/svn/trunk" >>> "/go/v8.tmp/v8/build/_gclient_gyp_EePdtR"' in /go/v8.tmp failed; will retry >>> after a short nap... >>> 5>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" >>> "--no-checkout" "--progress" "http://googletest.googlecode.com/svn/trunk" >>> "/go/v8.tmp/v8/testing/_gclient_gtest_eu1TiD"' in /go/v8.tmp failed; will >>> retry after a short nap... >>> 4>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" >>> "--no-checkout" "--progress" "http://googlemock.googlecode.com/svn/trunk" >>> "/go/v8.tmp/v8/testing/_gclient_gmock_s71sNl"' in /go/v8.tmp failed; will >>> retry after a short nap... >>> 6>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" >>> "origin" "--prune"' in /go/v8.tmp/v8/third_party/icu failed; will retry >>> after a short nap... >>> 2>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" >>> "--no-checkout" "--progress" "http://gyp.googlecode.com/svn/trunk" >>> "/go/v8.tmp/v8/build/_gclient_gyp_EePdtR"' in /go/v8.tmp failed; will retry >>> after a short nap... >>> 5>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" >>> "--no-checkout" "--progress" "http://googletest.googlecode.com/svn/trunk" >>> "/go/v8.tmp/v8/testing/_gclient_gtest_eu1TiD"' in /go/v8.tmp failed; will >>> retry after a short nap... >>> 4>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" >>> "--no-checkout" "--progress" "http://googlemock.googlecode.com/svn/trunk" >>> "/go/v8.tmp/v8/testing/_gclient_gmock_s71sNl"' in /go/v8.tmp failed; will >>> retry after a short nap... >>> 6>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" >>> "origin" "--prune"' in /go/v8.tmp/v8/third_party/icu failed; will retry >>> after a short nap... >>> [91m >>> v8/build/gyp (ERROR) >>> ---------------------------------------- >>> [0:00:00] Started. >>> [0:00:00] >>> >>> ________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout >>> --progress http://gyp.googlecode.com/svn/trunk >>> /go/v8.tmp/v8/build/_gclient_gyp_EePdtR' in '/go/v8.tmp' >>> >>> [0:00:00] Cloning into '/go/v8.tmp/v8/build/_gclient_gyp_EePdtR'... >>> [0:00:00] fatal: repository 'http://gyp.googlecode.com/svn/trunk/' not found >>> [0:00:00] >>> ________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout >>> --progress http://gyp.googlecode.com/svn/trunk >>> /go/v8.tmp/v8/build/_gclient_gyp_EePdtR' in '/go/v8.tmp' attempt 2 / 4 >>> >>> [0:00:00] Cloning into '/go/v8.tmp/v8/build/_gclient_gyp_EePdtR'... >>> [0:00:00] fatal: repository 'http://gyp.googlecode.com/svn/trunk/' not found >>> [0:00:01] >>> ________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout >>> --progress http://gyp.googlecode.com/svn/trunk >>> /go/v8.tmp/v8/build/_gclient_gyp_EePdtR' in '/go/v8.tmp' attempt 3 / 4 >>> >>> [0:00:01] Cloning into '/go/v8.tmp/v8/build/_gclient_gyp_EePdtR'... >>> [0:00:01] fatal: repository 'http://gyp.googlecode.com/svn/trunk/' not found >>> [0:00:03] >>> ________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout >>> --progress http://gyp.googlecode.com/svn/trunk >>> /go/v8.tmp/v8/build/_gclient_gyp_EePdtR' in '/go/v8.tmp' attempt 4 / 4 >>> >>> [0:00:03] Cloning into '/go/v8.tmp/v8/build/_gclient_gyp_EePdtR'... >>> [0:00:03] fatal: repository 'http://gyp.googlecode.com/svn/trunk/' not found >>> Traceback (most recent call last): >>> File "/go/depot_tools/gclient_scm.py", line 1045, in _Clone >>> print_stdout=print_stdout, filter_fn=filter_fn) >>> File "/go/depot_tools/gclient_scm.py", line 1369, in _Run >>> gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs) >>> File "/go/depot_tools/gclient_utils.py", line 620, in CheckCallAndFilter >>> rv, args, kwargs.get('cwd', None), None, None) >>> CalledProcessError: Command 'git -c core.deltaBaseCacheLimit=2g clone >>> --no-checkout --progress http://gyp.googlecode.com/svn/trunk >>> /go/v8.tmp/v8/build/_gclient_gyp_EePdtR' returned non-zero exit status 128 >>> in /go/v8.tmp >>> ---------------------------------------- >>> Traceback (most recent call last): >>> File "/go/depot_tools/metrics.py", line 267, in print_notice_and_exit >>> [0m [91m yield >>> File "/go/depot_tools/gclient.py", line 3152, in <module> >>> sys.exit(main(sys.argv[1:])) >>> File "/go/depot_tools/gclient.py", line 3138, in main >>> return dispatcher.execute(OptionParser(), argv) >>> File "/go/depot_tools/subcommand.py", line 252, in execute >>> [0m [91m return command(parser, args[1:]) >>> File "/go/depot_tools/gclient.py", line 2695, in CMDsync >>> ret = client.RunOnDeps('update', args) >>> File "/go/depot_tools/gclient.py", line 1733, in RunOnDeps >>> patch_refs=patch_refs, target_branches=target_branches) >>> File "/go/depot_tools/gclient_utils.py", line 911, in flush >>> reraise(e[0], e[1], e[2]) >>> File "/go/depot_tools/gclient_utils.py", line 988, in run >>> self.item.run(*self.args, **self.kwargs) >>> File "/go/depot_tools/gclient.py", line 910, in run >>> file_list) >>> File "/go/depot_tools/gclient_scm.py", line 132, in RunCommand >>> return getattr(self, command)(options, args, file_list) >>> File "/go/depot_tools/gclient_scm.py", line 547, in update >>> self._Clone(revision, url, options) >>> File "/go/depot_tools/gclient_scm.py", line 1053, in _Clone >>> if os.listdir(tmp_dir): >>> OSError: [Errno 2] No such file or directory: >>> '/go/v8.tmp/v8/build/_gclient_gyp_EePdtR' >>> [0m [91m+ V8_TMP_finish >>> + rm -rf /go/v8.tmp >>> [0mThe command '/bin/sh -c /tmp/build.v8.sh' returned a non-zero code: 1 >>> Build step 'Execute shell' marked build as failure >>> Archiving artifacts >>> Finished: FAILURE >>> >>> >>> Thanks, >>> >>> Mani >>> >>> >>> On Wed, Sep 25, 2019 at 1:55 AM Jakob Kummerow <jkum...@chromium.org> >>> wrote: >>> >>>> First off, version 3.28.71 is *very outdated*. It hasn't been touched >>>> in five years. If it suddenly stopped working for you, then that's >>>> certainly not due to a change in V8. >>>> >>>> Also, 3.28.71 is not a good version to pick. If you must use a >>>> five-year-old version, then you should at least pick branch-heads/3.28, >>>> which has 19 backmerged (=important) fixes on top of the 3.28.71 base >>>> version. Even better, update to something more recent. branch-heads/7.7 >>>> would be a good candidate right now. >>>> >>>> One thing I noticed in your build script is that you should run >>>> "gclient sync" *after* "git checkout $VERSION". Fixing that might just >>>> be enough to solve this issue. >>>> >>>> I don't remember how we got dependencies back in those days. I think we >>>> ran "make dependencies", or maybe that was in even earlier years. I'm >>>> pretty sure we didn't manually clone gyp. >>>> >>>> /go/v8-3.28.71/out/native/obj.target/gtest/testing/gtest/src/gtest-death-test.o: >>>>> No such file or directory >>>> >>>> That's your clue for where to dig deeper. >>>> >>>> we are not much familiar with the C++ GN way of code building >>>> >>>> 3.28 is so old, it doesn't use GN. >>>> >>>> >>>> On Wed, Sep 25, 2019 at 10:13 AM Manikandan Kaliyaperumal < >>>> rkma...@gmail.com> wrote: >>>> >>>>> Hello, >>>>> >>>>> I have been struggling with this V8 build fail for a day or two now >>>>> and any help on this would be much appreciated. >>>>> >>>>> We use V8 version in our project.for a script process engine. It >>>>> suddenly stopped working and build fails. >>>>> >>>>> CXX(target) >>>>> /go/v8-3.28.71/out/native/obj.target/v8_snapshot/gen/experimental-libraries.o >>>>> CXX(target) >>>>> /go/v8-3.28.71/out/native/obj.target/v8_snapshot/geni/snapshot.o >>>>> CXX(target) >>>>> /go/v8-3.28.71/out/native/obj.target/v8_snapshot/src/snapshot-common.o >>>>> AR(target) >>>>> /go/v8-3.28.71/out/native/obj.target/tools/gyp/libv8_snapshot.a >>>>> TOUCH /go/v8-3.28.71/out/native/obj.target/tools/gyp/v8.stamp >>>>> CXX(target) /go/v8-3.28.71/out/native/obj.target/shell/samples/shell.o >>>>> LINK(target) /go/v8-3.28.71/out/native/shell >>>>> CXX(target) >>>>> /go/v8-3.28.71/out/native/obj.target/process/samples/process.o >>>>> LINK(target) /go/v8-3.28.71/out/native/process >>>>> CXX(target) >>>>> /go/v8-3.28.71/out/native/obj.target/lineprocessor/samples/lineprocessor.o >>>>> LINK(target) /go/v8-3.28.71/out/native/lineprocessor >>>>> ACTION src_d8_gyp_d8_js2c_target_d8_js2c >>>>> /go/v8-3.28.71/out/native/obj/gen/d8-js.cc >>>>> TOUCH /go/v8-3.28.71/out/native/obj.target/src/d8_js2c.stamp >>>>> CXX(target) /go/v8-3.28.71/out/native/obj.target/d8/src/d8.o >>>>> CXX(target) /go/v8-3.28.71/out/native/obj.target/d8/src/d8-posix.o >>>>> CXX(target) /go/v8-3.28.71/out/native/obj.target/d8/src/d8-debug.o >>>>> CXX(target) /go/v8-3.28.71/out/native/obj.target/d8/gen/d8-js.o >>>>> LINK(target) /go/v8-3.28.71/out/native/d8 >>>>> TOUCH /go/v8-3.28.71/out/native/obj.target/testing/gtest_prod.stamp >>>>> AR(target) /go/v8-3.28.71/out/native/obj.target/testing/libgtest.a >>>>> [91mar: >>>>> /go/v8-3.28.71/out/native/obj.target/gtest/testing/gtest/src/gtest-death-test.o: >>>>> No such file or directory >>>>> [0m [91mmake[1]: *** >>>>> [/go/v8-3.28.71/out/native/obj.target/testing/libgtest.a] Error 1 >>>>> [0mmake[1]: Leaving directory `/go/v8-3.28.71/out' >>>>> [91mmake: *** [native] Error 2 >>>>> [0m [91m+ V8_TMP_finish >>>>> [0m [91m+ rm -rf /go/v8.tmp >>>>> [0mThe command '/bin/sh -c /tmp/build.v8.sh' returned a non-zero code: 2 >>>>> Build step 'Execute shell' marked build as failure >>>>> Archiving artifacts >>>>> Finished: FAILURE >>>>> >>>>> >>>>> Herewith, i am sharing my build.v8.sh and Docker file for your reference >>>>> and any pointers on this would be helpful as we are not much familiar >>>>> with the C++ GN way of code building here. >>>>> >>>>> >>>>> Thanks, >>>>> >>>>> Mani >>>>> >>>>> -- >>>>> -- >>>> >>>> -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/CAKSzg3SX%2BmgANc8sv6YNCM_UJ%2B5sAxBZniNk6h4Vdqu4EnCdEA%40mail.gmail.com.