Ardupilot SITL, RuntimeError: generator raised StopIteration

Dear support,
please advise on execution of Ardupilot in a rosject.
Is anyone familiar with following error. I have installed all dependencies.
Not sure what’s missing?

sim_vehicle.py -w

Error: RuntimeError: generator raised StopIteration

File “/home/user/ardupilot/modules/waf/waflib/Node.py”, line 590, in ant_iter
raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/home/user/ardupilot/modules/waf/waflib/Scripting.py”, line 165, in waf_entry_point
run_commands()
File “/home/user/ardupilot/modules/waf/waflib/Scripting.py”, line 262, in run_commands
parse_options()
File “/home/user/ardupilot/modules/waf/waflib/Scripting.py”, line 214, in parse_options
Context.create_context(‘options’).execute()
File “/home/user/ardupilot/modules/waf/waflib/Options.py”, line 271, in execute
super(OptionsContext, self).execute()
File “/home/user/ardupilot/modules/waf/waflib/Context.py”, line 205, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File “/home/user/ardupilot/modules/waf/waflib/Context.py”, line 287, in recurse
user_function(self)
File “/home/user/ardupilot/wscript”, line 52, in options
opt.load(‘compiler_cxx compiler_c waf_unit_test python’)
File “/home/user/ardupilot/modules/waf/waflib/Context.py”, line 197, in load
fun(self)
File “/home/user/ardupilot/modules/waf/waflib/Tools/compiler_cxx.py”, line 103, in options
opt.load_special_tools(‘cxx_*.py’)
File “/home/user/ardupilot/modules/waf/waflib/Context.py”, line 609, in load_special_tools
lst = self.root.find_node(waf_dir).find_node(‘waflib/extras’).ant_glob(var)
File “/home/user/ardupilot/modules/waf/waflib/Node.py”, line 683, 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/user/ardupilot/modules/waf/waflib/Node.py”, line 683, in
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

I see the following lines in my local .zshrc on MacOSX:

export PATH=/opt/gcc-arm-none-eabi-6-2017-q2-update/bin:$PATH
source ~/ardupilot/Tools/completion/completion.zsh

These may play a part here too… trying to recollect …

make sitl
missed… opps!

Any ideas on how to tackle this breakage?

gcc 8+ will “improve” buffer overflow checking. It is a problem for -Werror builds.

hence, the following breaks:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:34:33: error: ‘void* __builtin_memcpy(void*, const void*, long unsignedint)’ forming offset [11, 16] is out of the bounds [0, 10] [-Werror=array-bounds]
34 | return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));

finally fixed via Setting up the Build Environment (Linux/Ubuntu) — Dev documentation

-R

1 Like