[PATCH v2] sb: Add support to search for a suitable version of python.
Malte Münch
mamu at stablerock.de
Wed Oct 24 23:26:51 UTC 2018
Yes i think this resolves the issue:
[mamu at verstappen rtems-tools]$ ./waf
Traceback (most recent call last):
File
"/home/mamu/vcs/git/rtems-tools/.waf3-1.9.9-75529a659e4f06cb4254801e52405e0a/waflib/Node.py",
line 295, in ant_iter
raise StopIteration
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File
"/home/mamu/vcs/git/rtems-tools/.waf3-1.9.9-75529a659e4f06cb4254801e52405e0a/waflib/Scripting.py",
line 120, in waf_entry_point
run_commands()
File
"/home/mamu/vcs/git/rtems-tools/.waf3-1.9.9-75529a659e4f06cb4254801e52405e0a/waflib/Scripting.py",
line 177, in run_commands
parse_options()
File
"/home/mamu/vcs/git/rtems-tools/.waf3-1.9.9-75529a659e4f06cb4254801e52405e0a/waflib/Scripting.py",
line 150, in parse_options
Context.create_context('options').execute()
File
"/home/mamu/vcs/git/rtems-tools/.waf3-1.9.9-75529a659e4f06cb4254801e52405e0a/waflib/Options.py",
line 149, in execute
super(OptionsContext,self).execute()
File
"/home/mamu/vcs/git/rtems-tools/.waf3-1.9.9-75529a659e4f06cb4254801e52405e0a/waflib/Context.py",
line 88, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File
"/home/mamu/vcs/git/rtems-tools/.waf3-1.9.9-75529a659e4f06cb4254801e52405e0a/waflib/Context.py",
line 129, in recurse
user_function(self)
File "/home/mamu/vcs/git/rtems-tools/wscript", line 65, in options
recurse(ctx)
File "/home/mamu/vcs/git/rtems-tools/wscript", line 54, in recurse
ctx.recurse(sd)
File
"/home/mamu/vcs/git/rtems-tools/.waf3-1.9.9-75529a659e4f06cb4254801e52405e0a/waflib/Context.py",
line 129, in recurse
user_function(self)
File "/home/mamu/vcs/git/rtems-tools/rtemstoolkit/wscript", line 36,
in options
opt.load('compiler_c')
File
"/home/mamu/vcs/git/rtems-tools/.waf3-1.9.9-75529a659e4f06cb4254801e52405e0a/waflib/Context.py",
line 85, in load
fun(self)
File
"/home/mamu/vcs/git/rtems-tools/.waf3-1.9.9-75529a659e4f06cb4254801e52405e0a/waflib/Tools/compiler_c.py",
line 40, in options
opt.load_special_tools('c_*.py',ban=['c_dumbpreproc.py'])
File
"/home/mamu/vcs/git/rtems-tools/.waf3-1.9.9-75529a659e4f06cb4254801e52405e0a/waflib/Context.py",
line 319, in load_special_tools
lst=self.root.find_node(waf_dir).find_node('waflib/extras').ant_glob(var)
File
"/home/mamu/vcs/git/rtems-tools/.waf3-1.9.9-75529a659e4f06cb4254801e52405e0a/waflib/Node.py",
line 344, in ant_glob
ret=[x for x in
self.ant_iter(accept=accept,pats=[to_pat(incl),to_pat(excl)],maxdepth=kw.get('maxdepth',25),dir=dir,src=src,remove=kw.get('remove',True))]
File
"/home/mamu/vcs/git/rtems-tools/.waf3-1.9.9-75529a659e4f06cb4254801e52405e0a/waflib/Node.py",
line 344, in <listcomp>
ret=[x for x in
self.ant_iter(accept=accept,pats=[to_pat(incl),to_pat(excl)],maxdepth=kw.get('maxdepth',25),dir=dir,src=src,remove=kw.get('remove',True))]
RuntimeError: generator raised StopIteration
[mamu at verstappen rtems-tools]$ ./waf-2.0.12
The project was not configured: run "waf configure" first!
[mamu at verstappen rtems-tools]$
python is symlinked to python3 and ./waf crashes and the fresh
waf-2.0.12 executes fine.
Best
Malte
On 25.10.18 00:47, Chris Johns wrote:
> On 25/10/2018 09:09, Malte Münch wrote:
>> It seems to be an issue with the waf building system. If i change the
>> symlink /usr/bin/python to python2 everything works fine and the build
>> is able to run through.
>
> I suspected this may be an issue. joel and I are planning to update all the waf
> instances we have in our projects.
>
> Can you please clone the rtems-tools.git repo and run the build command from the
> RSB log and then fetch the latest waf from waf.io and try that to see if it
> resolves the issue?
>
> Thanks
> Chris
>
More information about the devel
mailing list