Home > OS >  Help bosses! The px4 problem how to solve the Makefile: 224: the recipe for target 'px4_sitl fa
Help bosses! The px4 problem how to solve the Makefile: 224: the recipe for target 'px4_sitl fa

Time:11-03

[16/49] Building CXX object SRC/system... Tests. The dir/test_microbench_atomic. CPP. O
FAILED:/usr/bin/ccache/usr/bin/c + + - DCONFIG_ARCH_BOARD_PX4_SITL - DENABLE_LOCKSTEP_SCHEDULER - DMODULE_NAME=\ "tests " - DPX4_BOARD_NAME=\ "PX4_SITL " - DPX4_MAIN=tests_app_main - D__CUSTOM_FILE_IO__ - D__PX4_LINUX - D__PX4_POSIX - D__STDC_FORMAT_MACROS - Dnoreturn_function="__attribute__ ((noreturn))" - i../../boards/px4/sitl/SRC - i../../platforms/posix/SRC/px4/common/include - i. - Isrc/lib - I../../platforms/posix/SRC/px4/generic/generic/include - i../../platforms/common/include -i../../SRC - I../../SRC/include -i../../SRC/lib - I../../SRC/lib/matrix - I../../SRC/modules - I../../platforms/posix/include - Iexternal/Install/include - i../../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 -Wno-double-promotion -Wno-float-equal -Wno-missing-declarations -Wno-sign-compare -Wno-unknown-warning-option -Wno-unused-but-set-variable -Wno-unused-result -Wno-unused-variable -Wno-vla-larger-than -std=gnu++14 -MMD -MT src/systemcmds/tests/CMakeFiles/systemcmds__tests.dir/test_microbench_atomic.cpp.o -MF src/systemcmds/tests/CMakeFiles/systemcmds__tests.dir/test_microbench_atomic.cpp.o.d -o src/systemcmds/tests/CMakeFiles/systemcmds__tests.dir/test_microbench_atomic.cpp.o -c ../.. ./SRC/systemcmds/tests/test_microbench_atomic CPP
In the file included the from../.. ./SRC/systemcmds/tests/test_microbench_atomic CPP: 49:0:
./../platforms/common/include/px4_platform_common/atomic h: In instantiation of 'bool px4: : atomic : : compare_exchange (T, T) T=bool [with] : '
./.. ./SRC/systemcmds/tests/test_microbench_atomic CPP: 184:2: required from here
./../platforms/common/include/px4_platform_common/atomic h: 169:34: error: parameter 'expected' set but not 2 [- Werror=unused - but - set - parameter]
The inline bool compare_exchange (T * expected, T desired)
^
Compilation terminated due to - Wfatal - errors.
Cc1plus: all warnings being treated as errors
[16/49] Building CXX object SRC/system... McMds__tests. Dir/test_versioning. CPP. O
Ninja: build stopped: subcommand failed.
Makefile: 224: the recipe for target 'px4_sitl failed
Make: * * * Error [px4_sitl] 1

CodePudding user response:

The building Lord solved? I also encountered the same problem
  • Related