hey i was trying to upload the rover firrmware onto stm32f407 but i the build keeps failijng due to missing headers such as endian.h and byteswap.h. this is what my config.log says
Checking for header endian.h
==>
#include <endian.h>
int main(int argc, char **argv) {
(void)argc; (void)argv;
return 0;
}
<==
[1/2] Compiling e[32mbuild/.conf_check_bd391e3de900be89f8f8b822809319e1/test.cppe[0m
[‘/usr/bin/arm-none-eabi-g++’, ‘-Werror=implicit-fallthrough’, ‘-fcheck-new’, ‘-fsingle-precision-constant’, ‘-Wno-psabi’, ‘-std=gnu++11’, ‘-fdata-sections’, ‘-ffunction-sections’, ‘-fno-exceptions’, ‘-fsigned-char’, ‘-Wall’, ‘-Wextra’, ‘-Wpointer-arith’, ‘-Wno-unused-parameter’, ‘-Wno-missing-field-initializers’, ‘-Wno-reorder’, ‘-Wno-redundant-decls’, ‘-Wno-unknown-pragmas’, ‘-Wno-expansion-to-defined’, ‘-Werror=cast-align’, ‘-Werror=attributes’, ‘-Werror=format-security’, ‘-Werror=format-extra-args’, ‘-Werror=enum-compare’, ‘-Werror=format’, ‘-Werror=array-bounds’, ‘-Werror=uninitialized’, ‘-Werror=init-self’, ‘-Werror=narrowing’, ‘-Werror=return-type’, ‘-Werror=switch’, ‘-Werror=sign-compare’, ‘-Werror=type-limits’, ‘-Werror=undef’, ‘-Werror=unused-result’, ‘-Werror=shadow’, ‘-Werror=unused-value’, ‘-Werror=unused-variable’, ‘-Werror=delete-non-virtual-dtor’, ‘-Wfatal-errors’, ‘-Wno-trigraphs’, ‘-Werror=parentheses’, ‘-DARDUPILOT_BUILD’, ‘-Wuninitialized’, ‘-Warray-bounds’, ‘-Wno-format-contains-nul’, ‘-Werror=unused-but-set-variable’, ‘-Werror=suggest-override’, ‘-Werror=implicit-fallthrough’, ‘-Werror=maybe-uninitialized’, ‘-Werror=duplicated-cond’, ‘-Werror=sizeof-pointer-div’, ‘-D__AP_LINE__=LINE’, ‘-ffunction-sections’, ‘-fdata-sections’, ‘-fsigned-char’, ‘-Wall’, ‘-Wextra’, ‘-Werror=format’, ‘-Wpointer-arith’, ‘-Wcast-align’, ‘-Wno-missing-field-initializers’, ‘-Wno-unused-parameter’, ‘-Wno-redundant-decls’, ‘-Wno-unknown-pragmas’, ‘-Wno-trigraphs’, ‘-Werror=shadow’, ‘-Werror=return-type’, ‘-Werror=unused-result’, ‘-Werror=unused-variable’, ‘-Werror=narrowing’, ‘-Werror=attributes’, ‘-Werror=overflow’, ‘-Werror=parentheses’, ‘-Werror=format-extra-args’, ‘-Werror=ignored-qualifiers’, ‘-Werror=undef’, ‘-DARDUPILOT_BUILD’, ‘-Wno-format-contains-nul’, ‘-fsingle-precision-constant’, ‘-mcpu=cortex-m4’, ‘-mfpu=fpv4-sp-d16’, ‘-mfloat-abi=hard’, ‘-DARM_MATH_CM4’, ‘-u_printf_float’, ‘-Wlogical-op’, ‘-Wframe-larger-than=1300’, ‘-Wno-attributes’, ‘-fno-exceptions’, ‘-Wall’, ‘-Wextra’, ‘-Wno-sign-compare’, ‘-Wfloat-equal’, ‘-Wpointer-arith’, ‘-Wmissing-declarations’, ‘-Wno-unused-parameter’, ‘-Werror=array-bounds’, ‘-Wfatal-errors’, ‘-Werror=uninitialized’, ‘-Werror=init-self’, ‘-Werror=unused-but-set-variable’, ‘-Wno-missing-field-initializers’, ‘-Wno-trigraphs’, ‘-fno-strict-aliasing’, ‘-fomit-frame-pointer’, ‘-falign-functions=16’, ‘-ffunction-sections’, ‘-fdata-sections’, ‘-fno-strength-reduce’, ‘-fno-builtin-printf’, ‘-fno-builtin-fprintf’, ‘-fno-builtin-vprintf’, ‘-fno-builtin-vfprintf’, ‘-fno-builtin-puts’, ‘-mno-thumb-interwork’, ‘-mthumb’, ‘–specs=nano.specs’, ‘–specs=nosys.specs’, ‘-D__USE_CMSIS’, ‘-Werror=deprecated-declarations’, ‘-DNDEBUG=1’, ‘-Wno-error=double-promotion’, ‘-Wno-error=missing-declarations’, ‘-Wno-error=float-equal’, ‘-Wno-error=cpp’, ‘-fno-rtti’, ‘-fno-threadsafe-statics’, ‘-MMD’, ‘-Os’, ‘-I…/…/…/…/libraries/AP_GyroFFT/CMSIS_5/include’, ‘-I…/…/…/…/modules/lwip/src/include/compat/posix’, ‘-DAP_CUSTOMCONTROL_ENABLED=0’, ‘-DAP_DDS_ENABLED=0’, ‘-DAP_SCRIPTING_CHECKS=1’, ‘-DAP_SIM_ENABLED=0’, ‘-DCANARD_ENABLE_TAO_OPTION=1’, ‘-DCONFIG_HAL_BOARD=HAL_BOARD_CHIBIOS’, ‘-DENABLE_HEAP=1’, ‘-DENABLE_ONVIF=0’, ‘-DHAVE_STD_NULLPTR_T=0’, ‘-DLUA_32BITS=1’, ‘-DUSE_LIBC_REALLOC=0’, ‘-DWAF_BUILD=1’, ‘-DPYTHONDIR=“/usr/lib/python3/dist-packages”’, ‘-DPYTHONARCHDIR=“/usr/lib/python3/dist-packages”’, ‘-D__STDC_FORMAT_MACROS=1’, ‘-DAP_SIGNED_FIRMWARE=0’, ‘-DHAVE_CMATH_ISFINITE=1’, ‘-DHAVE_CMATH_ISINF=1’, ‘-DHAVE_CMATH_ISNAN=1’, ‘-DNEED_CMATH_ISFINITE_STD_NAMESPACE=1’, ‘-DNEED_CMATH_ISINF_STD_NAMESPACE=1’, ‘-DNEED_CMATH_ISNAN_STD_NAMESPACE=1’, ‘…/…/test.cpp’, ‘-c’, ‘-otest.cpp.1.o’]
err: …/…/test.cpp:1:10: fatal error: endian.h: No such file or directory
1 | #include <endian.h>
| ^~~~~~~~~~
compilation terminated.
the same thing is being shwon for byteswap.h. any idea how to solve this?
1 post - 1 participant
Read full topic