Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: bits/c++config.h: No such file or directory #9654

Closed
1 task done
Song-aff opened this issue May 19, 2024 · 4 comments
Closed
1 task done

fatal error: bits/c++config.h: No such file or directory #9654

Song-aff opened this issue May 19, 2024 · 4 comments
Labels
Status: Awaiting triage Issue is waiting for triage

Comments

@Song-aff
Copy link

Board

ESP32C3 Dev Module

Device Description

I think this is not related to the device, but rather an environmental issue

Hardware Configuration

none

Version

latest master (checkout manually)

IDE Name

Arduino IDE

Operating System

Windows11

Flash frequency

None

PSRAM enabled

yes

Upload speed

None

Description

\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\include\c++\8.4.0\cstdlib:41:10: fatal error: bits/c++config.h: No such file or directory
#include <bits/c++config.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: exit status 1

I have downloaded multiple versions of xtensa-esp32 elf, but none of them can find the c++config.h file

Sketch

#define LED1_BUILTIN 12
#define LED2_BUILTIN 13
int LED=1;
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED1_BUILTIN, OUTPUT);
  pinMode(LED2_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED1_BUILTIN, LED);   
  digitalWrite(LED2_BUILTIN, !LED); 
  delay(100);
  LED = !LED;
}

Debug Message

None

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@Song-aff Song-aff added the Status: Awaiting triage Issue is waiting for triage label May 19, 2024
@Jason2866
Copy link
Collaborator

Installation of latest master was not successful.

@Song-aff
Copy link
Author

Song-aff commented May 19, 2024

Installation of latest master was not successful.

I installed esp32 by espressf Systems in the Board manager of Arduino IDE. I only tried versions 2.0.16 and 2.0.10, but I feel that the other versions are the same.

I have downloaded multiple versions of xtensa-esp32 elf, but none of them can find the c++config.h file

@me-no-dev
Copy link
Member

we usually get this when the username on Windows is too long (there is a path limit that get's overflowed with some toolchains). We have done our best for v3.0.0 to resolve this by shortening the RV toolchain package name, but very long username can still trigger it

@Song-aff
Copy link
Author

we usually get this when the username on Windows is too long (there is a path limit that get's overflowed with some toolchains). We have done our best for v3.0.0 to resolve this by shortening the RV toolchain package name, but very long username can still trigger it

you are right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting triage Issue is waiting for triage
Projects
None yet
Development

No branches or pull requests

3 participants