v8/v8.dev

Hello World example on Getting started with embedding V8 not working

ErickWendel opened this issue · 0 comments

Hey! I'm trying to run the v8 get started example on a Linux 64 gitpod, Docker env, and my Mac M1

In the gitpod Linux and the Docker example I got, it always breaks at the tools/dev/v8gen.py command:

11 444.6   File "./tools/dev/v8gen.py", line 211, in _call_cmd
#11 444.6     stderr=subprocess.STDOUT,
#11 444.6   File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
#11 444.6     raise CalledProcessError(retcode, cmd, output=output)
#11 444.6 subprocess.CalledProcessError: Command '['/usr/bin/python', '-u', 'tools/mb/mb.py', 'gen', '-f', 'infra/mb/mb_config.pyl', '-m', 'developer_default', '-b', 'x64.release.sample', 'out.gn/x64.release.sample']' returned non-zero exit status 1
------
executor failed running [/bin/sh -c fetch v8 &&     cd v8 &&     git checkout ${V8_VERSION} &&     ./tools/dev/v8gen.py x64.release.sample &&     ninja -C out.gn/x64.release.sample v8_monolith d8 &&     strip out.gn/x64.release.sample/d8]: exit code: 1

To make it run on the mac I saw this nice blog In her article, running python2 tools/run-tests.py --outdir=out.gn/arm64.release --quickcheck it throws syntax errors from both python3 and python2

As it's three different environments with similar errors I'd assume the problem is the v8 that was updated without updating the docs.

Does someone have a hint of what should I do?