Hi,

When I run gn (with and without arguments) I get the same error.
Is there an option to set configuration manually?

pi@raspberrypi:~/v8 $ gn args
Traceback (most recent call last):
  File "/home/pi/depot_tools/gn.py", line 38, in <module>
    sys.exit(main(sys.argv))
  File "/home/pi/depot_tools/gn.py", line 33, in main
    return subprocess.call([gn_path] + args[1:])
  File "/usr/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  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

Ale




El jueves, 1 de junio de 2017, 16:17:47 (UTC-3), Jakob Kummerow escribió:
>
> 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 <in...@bnoordhuis.nl 
> <javascript:>> wrote:
>
>> On Thu, Jun 1, 2017 at 6:36 PM, aleReimondo
>> <alere...@smalltalking.net <javascript:>> 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-u...@googlegroups.com <javascript:>
>> 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 <javascript:>.
>> 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