Sitl build issue from within px4

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