Sitl : sim_vehicle.py build failed

Hi!
I am new here and I am new to use cygwin and sitl. I am using cygwin on windows and I get this error:

$ sim_vehicle.py -v ArduPlane
SIM_VEHICLE: Start
SIM_VEHICLE: Killing tasks
SIM_VEHICLE: Starting up at SITL location
SIM_VEHICLE: WAF build
SIM_VEHICLE: Configure waf
SIM_VEHICLE: “/home/Alireza Omidi/ardupilot/modules/waf/waf-light” “configure” “–board” “sitl”
Setting top to : /home/Alireza Omidi/ardupilot
Setting out to : /home/Alireza Omidi/ardupilot/build
Autoconfiguration : enabled
Setting board to : sitl
Using toolchain : native
Checking for ‘g++’ (C++ compiler) : /usr/bin/g++
Checking for ‘gcc’ (C compiler) : /usr/bin/gcc
Checking for c flags ‘-MMD’ : yes
Checking for cxx flags ‘-MMD’ : yes
Checking for need to link with librt : not necessary
Checking for feenableexcept : no
Checking for HAVE_CMATH_ISFINITE : yes
Checking for HAVE_CMATH_ISINF : yes
Checking for HAVE_CMATH_ISNAN : yes
Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE : yes
Checking for NEED_CMATH_ISINF_STD_NAMESPACE : yes
Checking for NEED_CMATH_ISNAN_STD_NAMESPACE : yes
Checking for header endian.h : yes
Checking for header byteswap.h : yes
Checking for HAVE_MEMRCHR : no
Checking for program ‘python’ : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.16
Checking for program ‘python’ : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.16
Source is git repository : yes
Update submodules : yes
Checking for program ‘git’ : /usr/bin/git
Checking for program ‘size’ : /usr/bin/size
Benchmarks : disabled
Unit tests : enabled
Scripting : enabled
Scripting runtime checks : enabled
Checking for program ‘rsync’ : /usr/bin/rsync
‘configure’ finished successfully (8.187s)
SIM_VEHICLE: Building
SIM_VEHICLE: “/home/Alireza Omidi/ardupilot/modules/waf/waf-light” “build” “–target” “bin/arduplane”
Waf: Entering directory /home/Alireza Omidi/ardupilot/build/sitl' Waf: Leaving directory /home/Alireza Omidi/ardupilot/build/sitl’
Build failed
Traceback (most recent call last):
File “/home/Alireza Omidi/ardupilot/modules/waf/waflib/Runner.py”, line 395, in task_status
return tsk.runnable_status()
File “Tools/ardupilotwaf/git_submodule.py”, line 75, in runnable_status
out = self.generator.bld.cmd_and_log(cmd, quiet=Context.BOTH, cwd=self.cwd)
File “/home/Alireza Omidi/ardupilot/modules/waf/waflib/Context.py”, line 461, in cmd_and_log
raise e
WafError: Command (’/usr/bin/git’, ‘submodule’, ‘status’, ‘–recursive’, ‘–’, ‘/home/Alireza Omidi/ardupilot/modules/gtest’) returned 128

SIM_VEHICLE: Build failed
SIM_VEHICLE: Killing tasks

Can anyone help me?

Hello,

Try waf distclean then git submodules update --init --recursive
And then give another try!

thanks. the problem solved.
but now i get BAD AHRS when I connected sitl to mission planner and I cant do a takeoff.

you should load the default parameter for SITL otherwise you won’t be able to takeoff. They are in Tools/autotest/default_params https://github.com/ArduPilot/ardupilot/tree/master/Tools/autotest/default_params

2 Likes

Excuse, how did you solve the problem?Why I still failed,sad.