System include path missing?

Hi!

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?

Use CLI 2: Mbed CLI 2 - Build tools | Mbed OS 6 Documentation

Thanks for the suggestion, FWIW

Name: mbed-tools
Version: 7.53.0
Summary: Command line interface for Mbed OS.
Home-page: https://github.com/ARMmbed/mbed-tools
Author: Mbed team
Author-email: support@mbed.com
License: Apache 2.0
Location: /home/tgall/.local/lib/python3.7/site-packages
Requires: Click, GitPython, Jinja2, pdoc3, psutil, pyserial, python-dotenv, pyudev, requests, tabulate, tqdm, typing-extensions
Required-by:

Isn’t that CLI2?

Hi,

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.

Can you provide a reproducible code?