Adding this answer partially because it fixed my problem of the same issue and so I can bookmark this question myself.

I was able to fix it by doing the following:

sudo apt-get install gcc-multilib g++-multilib

If you've installed a version of gcc / g++ that doesn't ship by default (such as g++-4.8 on lucid) you'll want to match the version as well:

sudo apt-get install gcc-4.8-multilib g++-4.8-multilib
Answer from anthony sottile on Stack Overflow
🌐
Arduino Forum
forum.arduino.cc › projects › programming
bits/c++config.h: No such file or directory. Error compiling NodeMcu in arduino - Programming - Arduino Forum
November 6, 2018 - I am having the following problem while compiling and uploading any code in NODEMCU from my Arduino ide. I have tried a simple blink led code. The error message is described below. I have earlier programmed Arduino UNO f…
Discussions

Fatal error: bits/c++config.h: No such file or directory
So i have a project going where I am using Arduino IDE to program my ESP32-CAM but i keep running into the same error code again again and again. In TOOLS -> BOARD I use : AI THINKER ESP32-CAM. This is the error code : Arduino:1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board:"AI Thinker ... More on forum.arduino.cc
🌐 forum.arduino.cc
0
0
September 1, 2023
qt - bits/c++config.h no such file or directory - Stack Overflow
I'm trying to compile my code including iostream lib on ubuntu 14.04, using qt creator, but when I execute it I got this error message: /usr/include/c++/4.8/iostream:38: error: bits/c++config.h: N... More on stackoverflow.com
🌐 stackoverflow.com
May 15, 2019
build example build error - bits/c++config.h: No such file or directory
When bitbaking the meta-iot2000-master image, bitbake reports this error a few times, when running Task 479 (/home/jancumps/iot2020/poky/meta-nodejs/recipes-devtools/nodejs/nodejs_7.7.3.bb, do_compile) , and then exits | In file included... More on github.com
🌐 github.com
1
April 11, 2017
Fatal error: bits/c++config.h: No such file or directory ESP32 CAM
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "AI Thinker ESP32-CAM, 240MHz (WiFi/BT), QIO, 80MHz" C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.Ar... More on forum.arduino.cc
🌐 forum.arduino.cc
0
0
September 30, 2022
🌐
PlatformIO Community
community.platformio.org › platformio core
ESP32 not compiling on windows. bits/c++config.h: No such file or directory - PlatformIO Core - PlatformIO Community
January 19, 2021 - Hello all, I use PIO since a few month and I am far from an expert. I wrote lots of tests and a few nice projects on ESp32 and I was happy with it. I updated my windows PC to Windows 10 a few weeks ago. Reinstalled arduino IDE, VS code, PIO… Since then, my program don’t compile as the file bits/c++config.h is missing.
🌐
Everything ESP8266
esp8266.com › viewtopic.php
bits/c++config.h: No such file or directory - Everything ESP8266
February 19, 2016 - Code: Select allArduino: 1.6.4 (Windows 8.1), Board: "Generic ESP8266 Module, Serial, 80 MHz, 40MHz, QIO, 115200, 512K (64K SPIFFS), nodemcu" Build options changed, rebuilding all In file included from c:\documents and settings\releaseengineer.macrovision\application data\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\memory:62:0, from C:\Documents and Settings\ReleaseEngineer.MACROVISION\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266\Esp.cpp:24: c:\documents and settings\releaseengineer.macrovision\application data\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:59:28: fatal error: bits/c++config.h: No such file or directory #include <bits/c++config.h> ^ compilation terminated.
🌐
Arduino Forum
forum.arduino.cc › projects › programming
Fatal error: bits/c++config.h: No such file or directory - Programming - Arduino Forum
September 1, 2023 - So i have a project going where I am using Arduino IDE to program my ESP32-CAM but i keep running into the same error code again again and again. In TOOLS -> BOARD I use : AI THINKER ESP32-CAM. This is the error code : …
🌐
GitHub
github.com › siemens › meta-iot2000 › issues › 18
build example build error - bits/c++config.h: No such file or directory · Issue #18 · siemens/meta-iot2000
April 11, 2017 - | In file included from ../deps/v8/src/base/logging.h:8:0, | from ../deps/v8/src/base/division-by-constant.cc:9: | /usr/include/c++/5/cstring:41:28: fatal error: bits/c++config.h: No such file or directory | compilation terminated.
Author   jancumps
🌐
Adafruit
forums.adafruit.com › forums index › arduino › arduino
bits/c++config.h: No such file or directory. Error compiling - adafruit industries
July 30, 2020 - How did you install the Arduino IDE in the first place? ... I installed the Arduino IDE from arduino.cc. I uninstalled and reinstalled it to solve my issue, but it did not work. ... Try that again, but this time also manually delete this directory: C:\Users\(username)\AppData\Local\Arduino15 Replace (username) with whatever account you installed Arduino with.
Find elsewhere
🌐
OpenGenus
iq.opengenus.org › bits-c-config-h-no-such-file-or-directory
[Fixed] fatal error: bits/c++config.h: No such file or directory
November 1, 2022 - The issue is with the compiler as it is unable to find the mentioned header file bits/c++config.h which should be available by default. The first fix is to reinstall the multilib version of G++ which should work fine. We shall update the system repository so that the latest G++ version is ...
🌐
Arduino Forum
forum.arduino.cc › projects › programming
Fatal error: bits/c++config.h: No such file or directory ESP32 CAM - Programming - Arduino Forum
September 30, 2022 - Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "AI Thinker ESP32-CAM, 240MHz (WiFi/BT), QIO, 80MHz" C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.Ar...
🌐
GitHub
github.com › stm32duino › Arduino_Core_STM32 › issues › 1664
Compilation error (<bits/c++config.h> missing), running in Portable mode · Issue #1664 · stm32duino/Arduino_Core_STM32
February 23, 2022 - Describe the bug I am running a fresh Arduino IDE 1.8.19 in Portable mode. Trying to compile (an empty) sketch for STM32F4 board, compilation fails with this error: In file included from d:\my\long\path\starts\with\this\arduino-1.8.19\po...
🌐
GNU
gcc.gnu.org › legacy-ml › gcc-help › 2013-05 › msg00161.html
Re: gcc 4.8 can't find <bits/c++config.h>
To fix this I copied all files from <prefix>/arm-none-eabi/include/c++/4.8.1/arm-none-eabi/bits/ to empty directory here <prefix>/arm-none-eabi/include/bits/ Not sure if this is right or why it is needed but now file c++config.h is found and compiles succeed with 4.8.
🌐
GitHub
github.com › espressif › arduino-esp32 › issues › 9654
fatal error: bits/c++config.h: No such file or directory · Issue #9654 · espressif/arduino-esp32
May 19, 2024 - \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.
Published   May 19, 2024
Author   Song-aff
🌐
Mozilla Bugzilla
bugzilla.mozilla.org › show_bug.cgi
871251 - fatal error: 'bits/c++config.h' file not found - Bugzilla
Note that the above is when run from the shell, which is not necessarily the same environment that our build tools / Makefiles setup. > my laptop in on ubuntu 13.04 and the file is in > "/usr/include/x86_64-linux-gnu/c++/4.7/bits/c++config.h", the clang++ search > path is including "/usr/include/x86_64-linux-gnu/c++/4.7/" so it should work > properly OK, that's not what I see on my system -- the first search path above evaluates to /usr/include/c++/4.7 Since I work full time for Mozilla I've had to work around the problem by creating symlinks from /usr/include/c++/4.7/bits/ into /usr/include/x86_64-linux-gnu/c++/4.7/bits/ where the files do exist.
🌐
GitHub
github.com › xianyi › OpenBLAS › issues › 2202
Make error: bits/c++config.h: No such file or directory · Issue #2202 · OpenMathLib/OpenBLAS
June 9, 2019 - I am using anaconda's gcc_linux-64 with no multilib support. When I execute make I get .../include/c++/7.3.0/complex.h:29:10: fatal error: bits/c++config.h: No such file or directory #include which is invoked in file c...
Author   gerwang
🌐
Red Hat
bugzilla.redhat.com › show_bug.cgi
1896076 – Unable to compile anything with Clang: bits/c++config.h not found
Red Hat Bugzilla – Bug 1896076 · This site requires JavaScript to be enabled to function correctly, please enable it · Privacy Contact FAQ Legal
🌐
Launchpad
answers.launchpad.net › madanalysis5 › +question › 695844
Question #695844 “Compilation problem: bits/c++config.h: No such...” : Questions : MadAnalysis 5
38:28: fatal error: bits/c++config.h: No such file or directory #include <bits/c++config.h> ^ compilation terminated. make: *** [PortabilityChe · ckup/Portabilit · yCheckup. o] Error 1 · The issue repeats if a try v1.7. However I don't have any problems with mac os, so maybe is a problem of the configuration on my liunx system.