liu@liu-virtual-machine:~/PX4_Firmware$ make px4_sitl gazebo
[1/502] Building CXX object src/lib/ec…MakeFiles/ecl_EKF.dir/EKFGSF_yaw.cpp.o
FAILED: src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/EKFGSF_yaw.cpp.o
/usr/bin/ccache /usr/bin/c++ -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DMODULE_NAME="ecl/EKF" -D__CUSTOM_FILE_IO__ -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -Dnoreturn_function=“attribute((noreturn))” -I/home/liu/PX4_Firmware/boards/px4/sitl/src -I/home/liu/PX4_Firmware/platforms/posix/src/px4/common/include -I/home/liu/PX4_Firmware/build/px4_sitl_default -I/home/liu/PX4_Firmware/build/px4_sitl_default/src/lib -I/home/liu/PX4_Firmware/platforms/posix/src/px4/generic/generic/include -I/home/liu/PX4_Firmware/platforms/common/include -I/home/liu/PX4_Firmware/src -I/home/liu/PX4_Firmware/src/include -I/home/liu/PX4_Firmware/src/lib -I/home/liu/PX4_Firmware/src/lib/matrix -I/home/liu/PX4_Firmware/src/modules -I/home/liu/PX4_Firmware/platforms/posix/include -I/home/liu/PX4_Firmware/build/px4_sitl_default/external/Install/include -I/home/liu/PX4_Firmware/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/EKFGSF_yaw.cpp.o -MF src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/EKFGSF_yaw.cpp.o.d -o src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/EKFGSF_yaw.cpp.o -c /home/liu/PX4_Firmware/src/lib/ecl/EKF/EKFGSF_yaw.cpp
In file included from /home/liu/PX4_Firmware/src/lib/matrix/matrix/math.hpp:9,
from /home/liu/PX4_Firmware/src/lib/ecl/EKF/EKFGSF_yaw.h:4,
from /home/liu/PX4_Firmware/src/lib/ecl/EKF/EKFGSF_yaw.cpp:1:
/home/liu/PX4_Firmware/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/liu/PX4_Firmware/src/lib/matrix/matrix/SquareMatrix.hpp:281:18: required from ‘matrix::SquareMatrix<Type, M> matrix::eye() [with Type = float; long unsigned int M = 3]’
/home/liu/PX4_Firmware/src/lib/matrix/matrix/Dcm.hpp:51:31: required from ‘matrix::Dcm::Dcm() [with Type = float]’
/home/liu/PX4_Firmware/src/lib/ecl/EKF/EKFGSF_yaw.h:69:9: required from here
/home/liu/PX4_Firmware/src/lib/matrix/matrix/Matrix.hpp:471:34: error: logical ‘and’ of equal expressions [-Werror=logical-op]
471 | for (size_t i = 0; i < M && i < N; i++) {
| ~^
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
[2/502] Building CXX object src/lib/ec…Files/ecl_EKF.dir/gps_yaw_fusion.cpp.o
FAILED: src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/gps_yaw_fusion.cpp.o
/usr/bin/ccache /usr/bin/c++ -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DMODULE_NAME="ecl/EKF" -D__CUSTOM_FILE_IO__ -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -Dnoreturn_function=“attribute((noreturn))” -I/home/liu/PX4_Firmware/boards/px4/sitl/src -I/home/liu/PX4_Firmware/platforms/posix/src/px4/common/include -I/home/liu/PX4_Firmware/build/px4_sitl_default -I/home/liu/PX4_Firmware/build/px4_sitl_default/src/lib -I/home/liu/PX4_Firmware/platforms/posix/src/px4/generic/generic/include -I/home/liu/PX4_Firmware/platforms/common/include -I/home/liu/PX4_Firmware/src -I/home/liu/PX4_Firmware/src/include -I/home/liu/PX4_Firmware/src/lib -I/home/liu/PX4_Firmware/src/lib/matrix -I/home/liu/PX4_Firmware/src/modules -I/home/liu/PX4_Firmware/platforms/posix/include -I/home/liu/PX4_Firmware/build/px4_sitl_default/external/Install/include -I/home/liu/PX4_Firmware/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/liu/PX4_Firmware/src/lib/ecl/EKF/gps_yaw_fusion.cpp
In file included from /home/liu/PX4_Firmware/src/lib/matrix/matrix/math.hpp:9,
from /home/liu/PX4_Firmware/src/lib/ecl/EKF/common.h:44,
from /home/liu/PX4_Firmware/src/lib/ecl/EKF/estimator_interface.h:45,
from /home/liu/PX4_Firmware/src/lib/ecl/EKF/ekf.h:45,
from /home/liu/PX4_Firmware/src/lib/ecl/EKF/gps_yaw_fusion.cpp:42:
/home/liu/PX4_Firmware/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/liu/PX4_Firmware/src/lib/matrix/matrix/SquareMatrix.hpp:281:18: required from ‘matrix::SquareMatrix<Type, M> matrix::eye() [with Type = float; long unsigned int M = 3]’
/home/liu/PX4_Firmware/src/lib/matrix/matrix/Dcm.hpp:51:31: required from ‘matrix::Dcm::Dcm() [with Type = float]’
/home/liu/PX4_Firmware/src/lib/ecl/EKF/gps_yaw_fusion.cpp:351:9: required from here
/home/liu/PX4_Firmware/src/lib/matrix/matrix/Matrix.hpp:471:34: error: logical ‘and’ of equal expressions [-Werror=logical-op]
471 | for (size_t i = 0; i < M && i < N; i++) {
| ~^
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
[3/502] Building CXX object src/lib/ec…MakeFiles/ecl_EKF.dir/ekf_helper.cpp.o
FAILED: src/lib/ecl/EKF/CMakeFiles/ecl_EKF.dir/ekf_helper.cpp.o
/usr/bin/ccache /usr/bin/c++ -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DMODULE_NAME="ecl/EKF" -D__CUSTOM_FILE_IO__ -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -Dnoreturn_function=“attribute((noreturn))” -I/home/liu/PX4_Firmware/boards/px4/sitl/src -I/home/liu/PX4_Firmware/platforms/posix/src/px4/common/include -I/home/liu/PX4_Firmware/build/px4_sitl_default -I/home/liu/PX4_Firmware/build/px4_sitl_default/src/lib -I/home/liu/PX4_Firmware/platforms/posix/src/px4/generic/generic/include -I/home/liu/PX4_Firmware/platforms/common/include -I/home/liu/PX4_Firmware/src -I/home/liu/PX4_Firmware/src/include -I/home/liu/PX4_Firmware/src/lib -I/home/liu/PX4_Firmware/src/lib/matrix -I/home/liu/PX4_Firmware/src/modules -I/home/liu/PX4_Firmware/platforms/posix/include -I/home/liu/PX4_Firmware/build/px4_sitl_default/external/Install/include -I/home/liu/PX4_Firmware/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/liu/PX4_Firmware/src/lib/ecl/EKF/ekf_helper.cpp
In file included from /home/liu/PX4_Firmware/src/lib/matrix/matrix/math.hpp:9,
from /home/liu/PX4_Firmware/src/lib/ecl/EKF/common.h:44,
from /home/liu/PX4_Firmware/src/lib/ecl/EKF/estimator_interface.h:45,
from /home/liu/PX4_Firmware/src/lib/ecl/EKF/ekf.h:45,
from /home/liu/PX4_Firmware/src/lib/ecl/EKF/ekf_helper.cpp:42:
/home/liu/PX4_Firmware/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/liu/PX4_Firmware/src/lib/matrix/matrix/SquareMatrix.hpp:281:18: required from ‘matrix::SquareMatrix<Type, M> matrix::eye() [with Type = float; long unsigned int M = 3]’
/home/liu/PX4_Firmware/src/lib/matrix/matrix/Dcm.hpp:51:31: required from ‘matrix::Dcm::Dcm() [with Type = float]’
/home/liu/PX4_Firmware/src/lib/ecl/EKF/ekf_helper.cpp:522:8: required from here
/home/liu/PX4_Firmware/src/lib/matrix/matrix/Matrix.hpp:471:34: error: logical ‘and’ of equal expressions [-Werror=logical-op]
471 | for (size_t i = 0; i < M && i < N; i++) {
| ~^
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
ninja: build stopped: subcommand failed.
make: *** [Makefile:207:px4_sitl] 错误 1