Skip to content

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

@nazarhktwitch

Description

@nazarhktwitch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions