Building V8 on FreeBSD

300 views
Skip to first unread message

Jose Madrigal

unread,
Oct 4, 2016, 11:57:18 AM10/4/16
to v8-users
Hello !!!

I been trying to build V8 on FreeBSD due the ports are not updated to the recent version of v8 but I have struggled a lot. I wonder if someone already build v8 on FreeBSD that could point me out in the right direction to achieve it.

Thanks in advance !!

Jose Madrigal

unread,
Oct 4, 2016, 3:17:05 PM10/4/16
to v8-users
I been trying follow the instructions shown in https://github.com/v8/v8/wiki/Building%20with%20GN

At the point where I must use: 

     > tools/dev/v8gen.py x64.release 

raise a error:

Traceback (most recent call last):
  File "tools/dev/v8gen.py", line 304, in <module>
    sys.exit(gen.main())
  File "tools/dev/v8gen.py", line 298, in main
    return self._options.func()
  File "tools/dev/v8gen.py", line 166, in cmd_gen
    gn_outdir,
  File "tools/dev/v8gen.py", line 208, in _call_cmd
    stderr=subprocess.STDOUT,
  File "/usr/local/lib/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/usr/local/bin/python', '-u', 'tools/mb/mb.py', 'gen', '-f', 'infra/mb/mb_config.pyl', '-m', 'developer_default', '-b', 'x64.release', 'out.gn/x64.release']' returned non-zero exit status 1


Any ideas ?

Jochen Eisinger

unread,
Oct 5, 2016, 1:04:18 AM10/5/16
to v8-users
If you run the mb.py command directly (python -u tools/mb/mb.py gen -f infra/mb/mb_config.pyl -m developer_default -b x64.release out.gn/x64.release) does it print a more verbose error message?

--
--
v8-users mailing list
v8-u...@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+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alessandro Crugnola

unread,
Jan 17, 2017, 9:48:07 PM1/17/17
to v8-users
I have the same problem and running the command:
python -u tools/mb/mb.py gen -f infra/mb/mb_config.pyl -m developer_default -b x64.release out.gn/x64.release

I got this error:
Writing """\
is_debug = false
target_cpu = "x64"
""" to /home/crugnola/Documents/git/public/v8/out.gn/x64.release/args.gn.

/home/crugnola/Documents/git/public/v8/buildtools/linux64/gn gen out.gn/x64.release --check
  -> returned 1
ERROR at //build/config/BUILDCONFIG.gn:134:15: Reading a variable defined in the same declare_args() call.

If you need to set the value of one arg based on another, put
them in two separate declare_args() calls, one after the other.

  is_debug = !is_official_build
              ^----------------

Jose Madrigal

unread,
Jan 27, 2017, 3:25:38 PM1/27/17
to v8-users


El martes, 4 de octubre de 2016, 10:57:18 (UTC-5), Jose Madrigal escribió:
We managed to compile it in freeBDS the port is right here:



Reply all
Reply to author
Forward
0 new messages