flipperzero-ufbt icon indicating copy to clipboard operation
flipperzero-ufbt copied to clipboard

Compilation Error: Missing bits/c++config.h file during build

Open nazarhktwitch opened this issue 10 months ago • 0 comments

I'm facing a compilation issue while building the project with ufbt. The error message indicates that the file bits/c++config.h is missing, which is a required part of the C++ standard library for the arm-none-eabi toolchain.

Error Message:

fatal error: bits/c++config.h: No such file or directory
   59 | #include <bits/c++config.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.

Steps to Reproduce:

  1. Run ufbt build in the Flipper Zero firmware directory.
  2. Compilation fails with the error mentioned above.

Expected Behavior: The project should build without any issues related to missing standard library files.

Actual Behavior: Compilation fails due to a missing bits/c++config.h file in the arm-none-eabi toolchain.

Possible Causes:

  1. The arm-none-eabi toolchain might not be properly installed or configured.
  2. The necessary C++ standard libraries may be missing or not properly referenced by the toolchain.
  3. There might be an issue with the build configuration or paths to the libraries in the environment setup.

Suggested Solutions:

  1. Verify the installation of the arm-none-eabi toolchain and ensure that all necessary components are installed.
  2. Check and update the paths to the toolchain libraries to make sure they are correctly set in the build configuration.
  3. Ensure that all environment variables related to the build process are correctly configured.
  4. Reinstall or update the ufbt toolchain if necessary.

nazarhktwitch avatar Feb 24 '25 15:02 nazarhktwitch