I install the Ardupilot and its tools on windows 10 WSL2 along side the MAVProxy application on windows, however when I ran the following command either simulation or build failed
any tips really appreciate
:~/ardupilot/ardupilot/Tools/autotest$ ./sim_vehicle.py --map --console -v ArduCopter
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/user/ardupilot/ardupilot/modules/waf/waf-light" "configure" "--board" "sitl"
Setting top to : /home/user/ardupilot/ardupilot
Setting out to : /home/user/ardupilot/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
CXX Compiler : g++ 9.3.0
Checking for need to link with librt : not necessary
Checking for feenableexcept : yes
Enabled OpenDroneID : no
Enabled firmware ID checking : 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 : yes
Configured VSCode Intellisense: : no
Checking for program 'python' : /usr/bin/python
Checking for python version >= 2.7.0 : 3.8.10
Checking for program 'python' : /usr/bin/python
Checking for python version >= 2.7.0 : 3.8.10
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
Debug build : disabled
Coverage build : disabled
SITL 32-bit build : disabled
Checking for program 'rsync' : /usr/bin/rsync
'configure' finished successfully (6.003s)
SIM_VEHICLE: Building
SIM_VEHICLE: "/home/user/ardupilot/ardupilot/modules/waf/waf-light" "build" "--target" "bin/arducopter"
Waf: Entering directory `/home/user/ardupilot/ardupilot/build/sitl'
Embedding file locations.txt:Tools/autotest/locations.txt
Embedding file models/Callisto.json:Tools/autotest/models/Callisto.json
Waf: Leaving directory `/home/user/ardupilot/ardupilot/build/sitl'
Build failed
Traceback (most recent call last):
File "/home/user/ardupilot/ardupilot/modules/waf/waflib/Runner.py", line 395, in task_status
return tsk.runnable_status()
File "/home/user/ardupilot/ardupilot/Tools/ardupilotwaf/git_submodule.py", line 89, in runnable_status
if not self.is_fast_forward(path):
File "/home/user/ardupilot/ardupilot/Tools/ardupilotwaf/git_submodule.py", line 67, in is_fast_forward
out = bld.cmd_and_log(cmd, quiet=Context.BOTH, cwd=cwd)
File "/home/user/ardupilot/ardupilot/modules/waf/waflib/Context.py", line 461, in cmd_and_log
raise e
waflib.Errors.WafError: Command ('/usr/bin/git', 'merge-base', '10b1902d893ea8cc43c69541d70868f91af3646b', 'c5fed93f941865a0e912e9baf46ded713506590a') returned 128
SIM_VEHICLE: Build failed
SIM_VEHICLE: Killing tasks