I’m new to Mbed OS and hitting an unfound include which is one of the standard includes.
with
mbed compile -m DISCO_F746NG -t GCC_ARM
I’m receiving
[mbed] Working path "/zep/tgall/ad-mbed" (program)
[Warning] @,: Compiler version mismatch: Have 10.3.1; expected version >= 9.0.0 and < 10.0.0
Building project ad-mbed (DISCO_F746NG, GCC_ARM)
Scan: ad-mbed
Compile [ 0.6%]: cmsis_os1.c
[Fatal Error] base.h@38,10: cstdint: No such file or directory
[ERROR] In file included from ./third_party/flatbuffers/include/flatbuffers/string.h:20,
from ./mbed-os/cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Library/cmsis_os1.c:27:
./third_party/flatbuffers/include/flatbuffers/base.h:38:10: fatal error: cstdint: No such file or directory
38 | #include <cstdint>
| ^~~~~~~~~
compilation terminated.
obviously that’s normally found in : arm-none-eabi/include/c++/10.3.1/cstdint
mbed config -G GCC_ARM_PATH “/zep/tgall/gcc-arm-none-eabi-10.3-2021.10/bin” is set.
I’m on an aarch64 Debian linux system. Any pointers? Did I miss a setup step?
The cstdint is a header file for C++ not C, so it should not be included from C source code build (cmsis_os1.c).
[Fatal Error] base.h@38,10: cstdint: No such file or directory
[ERROR] In file included from ./third_party/flatbuffers/include/flatbuffers/string.h:20,
I am not sure why the string.h is found from the ./third_party/flatbuffers/include/flatbuffers/string.h rather than /usr/local/bin/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/string.h.