I am using wsl2 with vscode for the basic development from my own branch, but I am facing issues making a simple sitl build. Here is the prompt:
â PX4 version: v1.10.2-1-g936a97b87e
â PX4 config file: /home/ashhad/PX4-Autopilot/boards/px4/sitl/default.cmake
â PX4 config: px4_sitl_default
â PX4 platform: posix
â PX4 lockstep: enabled
â cmake build type: RelWithDebInfo
â The CXX compiler identification is GNU 11.3.0
â The C compiler identification is GNU 11.3.0
â The ASM compiler identification is GNU
â Found assembler: /usr/bin/cc
â Detecting CXX compiler ABI info
â Detecting CXX compiler ABI info - done
â Check for working CXX compiler: /usr/bin/c++ - skipped
â Detecting CXX compile features
â Detecting CXX compile features - done
â Detecting C compiler ABI info
â Detecting C compiler ABI info - done
â Check for working C compiler: /usr/bin/cc - skipped
â Detecting C compile features
â Detecting C compile features - done
â Found PythonInterp: /usr/bin/python3.10 (found version â3.10.6â)
â Found PY_jinja2: /home/ashhad/.local/lib/python3.10/site-packages/jinja2
â PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1-64-gdec1ed0a
â Configuring done
â Generating done
CMake Warning (dev):
Policy CMP0058 is not set: Ninja requires custom command byproducts to be
explicit. Run âcmake --help-policy CMP0058â for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
This project specifies custom command DEPENDS on files in the build tree
that are not specified as the OUTPUT or BYPRODUCTS of any
add_custom_command or add_custom_target:
test_mixer_multirotor
For compatibility with versions of CMake that did not have the BYPRODUCTS
option, CMake is generating phony rules for such files to convince âninjaâ
to build.
Project authors should add the missing BYPRODUCTS or OUTPUT options to the
custom commands that produce these files.
This warning is for project developers. Use -Wno-dev to suppress it.
â Build files have been written to: /home/ashhad/PX4-Autopilot/build/px4_sitl_default
[7/692] git submodule src/drivers/gps/devices
[20/692] git submodule src/lib/ecl
[23/692] git submodule mavlink/include/mavlink/v2.0
[26/692] git submodule Tools/jMAVSim
[45/692] Generating parameters.xml
/home/ashhad/PX4-Autopilot/src/lib/parameters/px4params/markdownout.py:51: SyntaxWarning: âis notâ with a literal. Did you mean â!=â?
if long_desc is not ââ:
[235/692] Building CXX object src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/ekf_helper.cpp.o
FAILED: src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/ekf_helper.cpp.o
/usr/bin/c++ -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DMODULE_NAME="ecl/EKF" -D__CUSTOM_FILE_IO__ -D__DF_LINUX -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -Dnoreturn_function=âattribute((noreturn))â -I/home/ashhad/PX4-Autopilot/boards/px4/sitl/src -I/home/ashhad/PX4-Autopilot/platforms/posix/src/px4/common/include -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default/src -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default/src/lib -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default/src/modules -I/home/ashhad/PX4-Autopilot/platforms/posix/src/px4/generic/generic/include -I/home/ashhad/PX4-Autopilot/platforms/common/include -I/home/ashhad/PX4-Autopilot/src -I/home/ashhad/PX4-Autopilot/src/include -I/home/ashhad/PX4-Autopilot/src/lib -I/home/ashhad/PX4-Autopilot/src/lib/DriverFramework/framework/include -I/home/ashhad/PX4-Autopilot/src/lib/matrix -I/home/ashhad/PX4-Autopilot/src/modules -I/home/ashhad/PX4-Autopilot/src/platforms -I/home/ashhad/PX4-Autopilot/platforms/posix/include -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default/external/Install/include -I/home/ashhad/PX4-Autopilot/src/lib/ecl -O2 -g -DNDEBUG -fPIC -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wreorder -Wno-overloaded-virtual -fno-associative-math -std=gnu++11 -MD -MT src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/ekf_helper.cpp.o -MF src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/ekf_helper.cpp.o.d -o src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/ekf_helper.cpp.o -c /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/ekf_helper.cpp
In file included from /home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/math.hpp:8,
from /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/common.h:43,
from /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/estimator_interface.h:45,
from /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/ekf.h:45,
from /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/ekf_helper.cpp:42:
/home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/Matrix.hpp: In instantiation of âvoid matrix::Matrix<Type, M, N>::setIdentity() [with Type = float; long unsigned int M = 3; long unsigned int N = 3]â:
/home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/SquareMatrix.hpp:128:18: required from âmatrix::SquareMatrix<Type, M> matrix::eye() [with Type = float; long unsigned int M = 3]â
/home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/Dcm.hpp:51:31: required from âmatrix::Dcm::Dcm() [with Type = float]â
/home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/ekf_helper.cpp:658:8: required from here
/home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/Matrix.hpp:440:34: error: logical âandâ of equal expressions [-Werror=logical-op]
440 | for (size_t i = 0; i < M && i < N; i++) {
| ~^
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
[248/692] Building CXX object src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/covariance.cpp.o
ninja: build stopped: subcommand failed.
make: *** [Makefile:202: px4_sitl] Error 1
ashhad@DESKTOP-66KH2B6:~/PX4-Autopilot$ make submodulesupdate
Synchronizing submodule url for âTools/jMAVSimâ
Synchronizing submodule url for âTools/jMAVSim/jMAVlibâ
Synchronizing submodule url for âTools/sitl_gazeboâ
Synchronizing submodule url for âTools/sitl_gazebo/external/OpticalFlowâ
Synchronizing submodule url for âTools/sitl_gazebo/external/OpticalFlow/external/klt_feature_trackerâ
Synchronizing submodule url for âboards/atlflight/cmake_hexagonâ
Synchronizing submodule url for âcmake/configs/uavcan_board_identâ
Synchronizing submodule url for âmavlink/include/mavlink/v2.0â
Synchronizing submodule url for âmsg/tools/gencppâ
Synchronizing submodule url for âmsg/tools/genmsgâ
Synchronizing submodule url for âplatforms/nuttx/NuttX/appsâ
Synchronizing submodule url for âplatforms/nuttx/NuttX/nuttxâ
Synchronizing submodule url for âsrc/drivers/gps/devicesâ
Synchronizing submodule url for âsrc/drivers/uavcan/libuavcanâ
Synchronizing submodule url for âsrc/drivers/uavcan/libuavcan/dsdlâ
Synchronizing submodule url for âsrc/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcanâ
Synchronizing submodule url for âsrc/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan/dsdlâ
Synchronizing submodule url for âsrc/drivers/uavcan/libuavcan/libuavcan_drivers/kinetisâ
Synchronizing submodule url for âsrc/lib/DriverFrameworkâ
Synchronizing submodule url for âsrc/lib/DriverFramework/dspalâ
Synchronizing submodule url for âsrc/lib/DriverFramework/dspal/cmake_hexagonâ
Synchronizing submodule url for âsrc/lib/eclâ
Synchronizing submodule url for âsrc/lib/matrixâ
Synchronizing submodule url for âsrc/modules/micrortps_bridge/micro-CDRâ
ashhad@DESKTOP-66KH2B6:~/PX4-Autopilot$ make distclean
Cleared directory âTools/jMAVSimâ
Submodule âTools/jMAVSimâ (GitHub - PX4/jMAVSim: Simple multirotor simulator with MAVLink protocol support) unregistered for path âTools/jMAVSimâ
Cleared directory âTools/sitl_gazeboâ
Submodule âTools/sitl_gazeboâ (GitHub - PX4/PX4-SITL_gazebo-classic: Set of plugins, models and worlds to use with OSRF Gazebo Simulator in SITL and HITL.) unregistered for path âTools/sitl_gazeboâ
Cleared directory âboards/atlflight/cmake_hexagonâ
Submodule âboards/atlflight/cmake_hexagonâ (GitHub - PX4/cmake_hexagon: CMake toolchain and rules for building apps for Hexagon DSP and apps processor on Qualcomm SoCs) unregistered for path âboards/atlflight/cmake_hexagonâ
Cleared directory âcmake/configs/uavcan_board_identâ
Submodule âcmake/configs/uavcan_board_identâ (GitHub - PX4/uavcan_board_ident) unregistered for path âcmake/configs/uavcan_board_identâ
Cleared directory âmavlink/include/mavlink/v2.0â
Submodule âmavlink/include/mavlink/v2.0â (GitHub - mavlink/c_library_v2: Official reference C / C++ library for the v2 protocol) unregistered for path âmavlink/include/mavlink/v2.0â
Cleared directory âmsg/tools/gencppâ
Submodule âmsg/tools/gencppâ (GitHub - PX4/gencpp: ROS C++ message definition and serialization generators) unregistered for path âmsg/tools/gencppâ
Cleared directory âmsg/tools/genmsgâ
Submodule âmsg/tools/genmsgâ (GitHub - PX4/genmsg: Standalone Python library for generating ROS message and service data structures for various languages) unregistered for path âmsg/tools/genmsgâ
Cleared directory âplatforms/nuttx/NuttX/appsâ
Submodule âplatforms/nuttx/NuttX/appsâ (GitHub - PX4/NuttX-apps: Standard NuttX apps with current PX4 patches) unregistered for path âplatforms/nuttx/NuttX/appsâ
Cleared directory âplatforms/nuttx/NuttX/nuttxâ
Submodule âplatforms/nuttx/NuttX/nuttxâ (GitHub - PX4/NuttX: Standard NuttX with current PX4 patches) unregistered for path âplatforms/nuttx/NuttX/nuttxâ
Cleared directory âsrc/drivers/gps/devicesâ
Submodule âsrc/drivers/gps/devicesâ (GitHub - PX4/PX4-GPSDrivers: Platform independent GPS drivers) unregistered for path âsrc/drivers/gps/devicesâ
Cleared directory âsrc/drivers/uavcan/libuavcanâ
Submodule âsrc/drivers/uavcan/libuavcanâ (GitHub - PX4/libuavcan: UAVCAN is a lightweight protocol designed for reliable communication in aerospace and robotic applications via CAN bus.) unregistered for path âsrc/drivers/uavcan/libuavcanâ
Cleared directory âsrc/lib/DriverFrameworkâ
Submodule âsrc/lib/DriverFrameworkâ (GitHub - PX4/DriverFramework: Operating system and flight stack agnostic driver framework for POSIX (Linux, NuttX, Mac OS, QNX, VxWorks).) unregistered for path âsrc/lib/DriverFrameworkâ
Cleared directory âsrc/lib/eclâ
Submodule âsrc/lib/eclâ (GitHub - PX4/PX4-ECL: Estimation & Control Library for Guidance, Navigation and Control Applications) unregistered for path âsrc/lib/eclâ
Cleared directory âsrc/lib/matrixâ
Submodule âsrc/lib/matrixâ (GitHub - PX4/PX4-Matrix: Lightweight, dependency free Matrix library (BSD)) unregistered for path âsrc/lib/matrixâ
Cleared directory âsrc/modules/micrortps_bridge/micro-CDRâ
Submodule âsrc/modules/micrortps_bridge/micro-CDRâ (GitHub - PX4/Micro-CDR) unregistered for path âsrc/modules/micrortps_bridge/micro-CDRâ
Removing build/
Removing msg/tools/pycache/
Removing src/lib/parameters/px4params/pycache/
ashhad@DESKTOP-66KH2B6:~/PX4-Autopilot$ make px4_sitl jmavsim
â PX4 version: v1.10.2-1-g936a97b87e
â PX4 config file: /home/ashhad/PX4-Autopilot/boards/px4/sitl/default.cmake
â PX4 config: px4_sitl_default
â PX4 platform: posix
â PX4 lockstep: enabled
â cmake build type: RelWithDebInfo
â The CXX compiler identification is GNU 11.3.0
â The C compiler identification is GNU 11.3.0
â The ASM compiler identification is GNU
â Found assembler: /usr/bin/cc
â Detecting CXX compiler ABI info
â Detecting CXX compiler ABI info - done
â Check for working CXX compiler: /usr/bin/c++ - skipped
â Detecting CXX compile features
â Detecting CXX compile features - done
â Detecting C compiler ABI info
â Detecting C compiler ABI info - done
â Check for working C compiler: /usr/bin/cc - skipped
â Detecting C compile features
â Detecting C compile features - done
â Found PythonInterp: /usr/bin/python3.10 (found version â3.10.6â)
â Found PY_jinja2: /home/ashhad/.local/lib/python3.10/site-packages/jinja2
â PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1-64-gdec1ed0a
â Configuring done
â Generating done
CMake Warning (dev):
Policy CMP0058 is not set: Ninja requires custom command byproducts to be
explicit. Run âcmake --help-policy CMP0058â for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
This project specifies custom command DEPENDS on files in the build tree
that are not specified as the OUTPUT or BYPRODUCTS of any
add_custom_command or add_custom_target:
test_mixer_multirotor
For compatibility with versions of CMake that did not have the BYPRODUCTS
option, CMake is generating phony rules for such files to convince âninjaâ
to build.
Project authors should add the missing BYPRODUCTS or OUTPUT options to the
custom commands that produce these files.
This warning is for project developers. Use -Wno-dev to suppress it.
â Build files have been written to: /home/ashhad/PX4-Autopilot/build/px4_sitl_default
[7/692] git submodule src/drivers/gps/devices
[18/692] git submodule src/lib/ecl
[22/692] git submodule mavlink/include/mavlink/v2.0
[24/692] git submodule Tools/jMAVSim
[44/692] Generating parameters.xml
/home/ashhad/PX4-Autopilot/src/lib/parameters/px4params/markdownout.py:51: SyntaxWarning: âis notâ with a literal. Did you mean â!=â?
if long_desc is not ââ:
[243/692] Building CXX object src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/ekf_helper.cpp.o
FAILED: src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/ekf_helper.cpp.o
/usr/bin/c++ -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DMODULE_NAME="ecl/EKF" -D__CUSTOM_FILE_IO__ -D__DF_LINUX -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -Dnoreturn_function=âattribute((noreturn))â -I/home/ashhad/PX4-Autopilot/boards/px4/sitl/src -I/home/ashhad/PX4-Autopilot/platforms/posix/src/px4/common/include -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default/src -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default/src/lib -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default/src/modules -I/home/ashhad/PX4-Autopilot/platforms/posix/src/px4/generic/generic/include -I/home/ashhad/PX4-Autopilot/platforms/common/include -I/home/ashhad/PX4-Autopilot/src -I/home/ashhad/PX4-Autopilot/src/include -I/home/ashhad/PX4-Autopilot/src/lib -I/home/ashhad/PX4-Autopilot/src/lib/DriverFramework/framework/include -I/home/ashhad/PX4-Autopilot/src/lib/matrix -I/home/ashhad/PX4-Autopilot/src/modules -I/home/ashhad/PX4-Autopilot/src/platforms -I/home/ashhad/PX4-Autopilot/platforms/posix/include -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default/external/Install/include -I/home/ashhad/PX4-Autopilot/src/lib/ecl -O2 -g -DNDEBUG -fPIC -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wreorder -Wno-overloaded-virtual -fno-associative-math -std=gnu++11 -MD -MT src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/ekf_helper.cpp.o -MF src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/ekf_helper.cpp.o.d -o src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/ekf_helper.cpp.o -c /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/ekf_helper.cpp
In file included from /home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/math.hpp:8,
from /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/common.h:43,
from /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/estimator_interface.h:45,
from /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/ekf.h:45,
from /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/ekf_helper.cpp:42:
/home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/Matrix.hpp: In instantiation of âvoid matrix::Matrix<Type, M, N>::setIdentity() [with Type = float; long unsigned int M = 3; long unsigned int N = 3]â:
/home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/SquareMatrix.hpp:128:18: required from âmatrix::SquareMatrix<Type, M> matrix::eye() [with Type = float; long unsigned int M = 3]â
/home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/Dcm.hpp:51:31: required from âmatrix::Dcm::Dcm() [with Type = float]â
/home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/ekf_helper.cpp:658:8: required from here
/home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/Matrix.hpp:440:34: error: logical âandâ of equal expressions [-Werror=logical-op]
440 | for (size_t i = 0; i < M && i < N; i++) {
| ~^
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
[245/692] Building CXX object src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/mag_fusion.cpp.o
FAILED: src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/mag_fusion.cpp.o
/usr/bin/c++ -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DMODULE_NAME="ecl/EKF" -D__CUSTOM_FILE_IO__ -D__DF_LINUX -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -Dnoreturn_function=âattribute((noreturn))â -I/home/ashhad/PX4-Autopilot/boards/px4/sitl/src -I/home/ashhad/PX4-Autopilot/platforms/posix/src/px4/common/include -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default/src -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default/src/lib -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default/src/modules -I/home/ashhad/PX4-Autopilot/platforms/posix/src/px4/generic/generic/include -I/home/ashhad/PX4-Autopilot/platforms/common/include -I/home/ashhad/PX4-Autopilot/src -I/home/ashhad/PX4-Autopilot/src/include -I/home/ashhad/PX4-Autopilot/src/lib -I/home/ashhad/PX4-Autopilot/src/lib/DriverFramework/framework/include -I/home/ashhad/PX4-Autopilot/src/lib/matrix -I/home/ashhad/PX4-Autopilot/src/modules -I/home/ashhad/PX4-Autopilot/src/platforms -I/home/ashhad/PX4-Autopilot/platforms/posix/include -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default/external/Install/include -I/home/ashhad/PX4-Autopilot/src/lib/ecl -O2 -g -DNDEBUG -fPIC -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wreorder -Wno-overloaded-virtual -fno-associative-math -std=gnu++11 -MD -MT src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/mag_fusion.cpp.o -MF src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/mag_fusion.cpp.o.d -o src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/mag_fusion.cpp.o -c /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/mag_fusion.cpp
In file included from /home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/math.hpp:8,
from /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/common.h:43,
from /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/estimator_interface.h:45,
from /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/ekf.h:45,
from /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/mag_fusion.cpp:43:
/home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/Matrix.hpp: In instantiation of âvoid matrix::Matrix<Type, M, N>::setIdentity() [with Type = float; long unsigned int M = 3; long unsigned int N = 3]â:
/home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/SquareMatrix.hpp:128:18: required from âmatrix::SquareMatrix<Type, M> matrix::eye() [with Type = float; long unsigned int M = 3]â
/home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/Dcm.hpp:51:31: required from âmatrix::Dcm::Dcm() [with Type = float]â
/home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/mag_fusion.cpp:561:9: required from here
/home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/Matrix.hpp:440:34: error: logical âandâ of equal expressions [-Werror=logical-op]
440 | for (size_t i = 0; i < M && i < N; i++) {
| ~^
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
[248/692] Building CXX object src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/gps_yaw_fusion.cpp.o
FAILED: src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/gps_yaw_fusion.cpp.o
/usr/bin/c++ -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DMODULE_NAME="ecl/EKF" -D__CUSTOM_FILE_IO__ -D__DF_LINUX -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -Dnoreturn_function=âattribute((noreturn))â -I/home/ashhad/PX4-Autopilot/boards/px4/sitl/src -I/home/ashhad/PX4-Autopilot/platforms/posix/src/px4/common/include -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default/src -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default/src/lib -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default/src/modules -I/home/ashhad/PX4-Autopilot/platforms/posix/src/px4/generic/generic/include -I/home/ashhad/PX4-Autopilot/platforms/common/include -I/home/ashhad/PX4-Autopilot/src -I/home/ashhad/PX4-Autopilot/src/include -I/home/ashhad/PX4-Autopilot/src/lib -I/home/ashhad/PX4-Autopilot/src/lib/DriverFramework/framework/include -I/home/ashhad/PX4-Autopilot/src/lib/matrix -I/home/ashhad/PX4-Autopilot/src/modules -I/home/ashhad/PX4-Autopilot/src/platforms -I/home/ashhad/PX4-Autopilot/platforms/posix/include -I/home/ashhad/PX4-Autopilot/build/px4_sitl_default/external/Install/include -I/home/ashhad/PX4-Autopilot/src/lib/ecl -O2 -g -DNDEBUG -fPIC -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wreorder -Wno-overloaded-virtual -fno-associative-math -std=gnu++11 -MD -MT src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/gps_yaw_fusion.cpp.o -MF src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/gps_yaw_fusion.cpp.o.d -o src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/gps_yaw_fusion.cpp.o -c /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/gps_yaw_fusion.cpp
In file included from /home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/math.hpp:8,
from /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/common.h:43,
from /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/estimator_interface.h:45,
from /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/ekf.h:45,
from /home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/gps_yaw_fusion.cpp:42:
/home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/Matrix.hpp: In instantiation of âvoid matrix::Matrix<Type, M, N>::setIdentity() [with Type = float; long unsigned int M = 3; long unsigned int N = 3]â:
/home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/SquareMatrix.hpp:128:18: required from âmatrix::SquareMatrix<Type, M> matrix::eye() [with Type = float; long unsigned int M = 3]â
/home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/Dcm.hpp:51:31: required from âmatrix::Dcm::Dcm() [with Type = float]â
/home/ashhad/PX4-Autopilot/src/lib/ecl/EKF/gps_yaw_fusion.cpp:354:9: required from here
/home/ashhad/PX4-Autopilot/src/lib/matrix/matrix/Matrix.hpp:440:34: error: logical âandâ of equal expressions [-Werror=logical-op]
440 | for (size_t i = 0; i < M && i < N; i++) {
| ~^
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
[256/692] Building CXX object src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/covariance.cpp.o
ninja: build stopped: subcommand failed.
make: *** [Makefile:202: px4_sitl] Error 1