It's not exactly a bug. v8gen.py, by design, replicates the configuration
of the respective buildbot, and that buildbot uses arm simulator builds.

It's really easy to change the build configuration locally though: just run gn
args out.gn/arm.release, and in the editor that opens, set target_cpu =
"arm".

On Thu, Jun 1, 2017 at 8:18 PM, Ben Noordhuis <i...@bnoordhuis.nl> wrote:

> On Thu, Jun 1, 2017 at 6:36 PM, aleReimondo
> <alereimo...@smalltalking.net> wrote:
> > Thank you for your fast response!
> >
> > I tried tools/dev/v8gen.py arm.release
> >  but got error
> >
> > ------------------------------------------------------------
> -------------------
> > pi@raspberrypi:~/v8 $ tools/dev/v8gen.py arm.release -vv
> > ############################################################
> ####################
> > /usr/bin/python -u tools/mb/mb.py gen -f infra/mb/mb_config.pyl -m
> > developer_default -b arm.release out.gn/arm.release
> >
> >   Writing """\
> >   is_debug = false
> >   target_cpu = "x86"
> >   v8_target_cpu = "arm"
> >   """ to /home/pi/v8/out.gn/arm.release/args.gn.
> >
> >   /home/pi/v8/buildtools/linux64/gn gen out.gn/arm.release --check
> >   Traceback (most recent call last):
> >     File "tools/mb/mb.py", line 60, in Main
> >       ret = self.args.func()
> >     File "tools/mb/mb.py", line 257, in CmdGen
> >       return self.RunGNGen(vals)
> >     File "tools/mb/mb.py", line 786, in RunGNGen
> >       ret, _, _ = self.Run(cmd, env=env)
> >     File "tools/mb/mb.py", line 1380, in Run
> >       ret, out, err = self.Call(cmd, env=env,
> buffer_output=buffer_output)
> >     File "tools/mb/mb.py", line 1394, in Call
> >       env=env)
> >     File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
> >       errread, errwrite)
> >     File "/usr/lib/python2.7/subprocess.py", line 1335, in
> _execute_child
> >       raise child_exception
> >   OSError: [Errno 8] Exec format 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/lib/python2.7/subprocess.py", line 573, in check_output
> >     raise CalledProcessError(retcode, cmd, output=output)
> > subprocess.CalledProcessError: Command '['/usr/bin/python', '-u',
> > 'tools/mb/mb.py', 'gen', '-f', 'infra/mb/mb_config.pyl', '-m',
> > 'developer_default', '-b', 'arm.release', 'out.gn/arm.release']'
> returned
> > non-zero exit status 1
> > ------------------------------------------------------------
> -------------------
>
> Hm, that looks like a bug to me - target_arch should be "arm", not
> "x86" and it shouldn't try to compile using the x86_64 version of
> clang.  Consider filing a bug report.
>
> --
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to