Constant compiling errors using Arduino IDE

operator0815
Posts: 2
Joined: Sun Dec 31, 2023 3:40 pm

Constant compiling errors using Arduino IDE

Postby operator0815 » Sun Dec 31, 2023 4:17 pm

Hello everyone!
I ordered a ESP32-S3 WROOM1 based 7" display to realize my first GUI-project but im still a bloody beginner when it comes to coding and the use of compilers.

Link to the used Display:
https://www.elecrow.com/esp32-display-7 ... -lvgl.html

Compilers used:
Arduino IDE 1.8.19 and 2.xx(Newest Version)

Problem:
No matter wich example project im trying to verify or flash, im running into the same (or very similar) compiling errors:
  1. In file included from c:\users\default.desktop-xxxxx\documents\arduinodata\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32s3-elf\include\c++\8.4.0\cstdlib:41,
  2.                  from c:\users\default.desktop-xxxxx\documents\arduinodata\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32s3-elf\include\c++\8.4.0\stdlib.h:36,
  3.                  from C:\Users\default.DESKTOP-xxxxx\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.3/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:21,
  4.                  from c:\users\default.desktop-xxxxx\documents\arduinodata\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
  5.                  from C:\Users\default.DESKTOP-xxxxx\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.3/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
  6.                  from c:\users\default.desktop-xxxxx\documents\arduinodata\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32s3-elf\sys-include\stdio.h:60,
  7.                  from C:\Users\default.DESKTOP-xxxxx\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.3\cores\esp32/Arduino.h:27,
  8.                  from sketch\LvglWidgets-7.0-helloworld.ino.cpp:1:
  9. c:\users\default.desktop-xxxxx\documents\arduinodata\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32s3-elf\include\c++\8.4.0\xtensa-esp32s3-elf\no-rtti\bits\c++config.h:511:10: fatal error: bits/cpu_defines.h: No such file or directory
  10.  #include <bits/cpu_defines.h>
  11.           ^~~~~~~~~~~~~~~~~~~~
  12. compilation terminated.
  13. exit status 1
  14. Error compiling for board ESP32S3 Dev Module.
The fatal error can also point to various other files (e.g. c++xxxxxx.h etc.) within the "xtensa-esp32s3-elf-gcc" directory. Always stating "No such file or directory" eventho the named files can be found within it.

If the problem might be obvious, keep in mind that im at the very beginning of this journey and would be happy if you can give a beginner friendly explanation of the problem.

thx a lot in advance!

lbernstone
Posts: 829
Joined: Mon Jul 22, 2019 3:20 pm

Re: Constant compiling errors using Arduino IDE

Postby lbernstone » Sun Dec 31, 2023 8:22 pm

What OS? How did you install the board files? Is your sketch folder in a long path or remote?
Others have reported this, and it seems to be an installation problem. Remove the board using board manager. Close arduino, open it back up, and reinstall. I would suggest a newer version that 2.0.3 if you are using an S3.

operator0815
Posts: 2
Joined: Sun Dec 31, 2023 3:40 pm

Re: Constant compiling errors using Arduino IDE

Postby operator0815 » Mon Jan 01, 2024 10:49 pm

SOLUTION:

I was able to fix the "fatal error: bits/c++allocator.h: No such file or directory" by manually installing the Arduino core following the instructions here:

https://stackoverflow.com/questions/688 ... rduino-ide

For some unknown reason the filepath, containing the ESP32 corefiles, was not created in it's sketchbook directory, eventho Arduino IDE showed the boards to be propperly installed if i used the install option in the Board Manager menu.

Thx lbernstone for the reply and i hope this might help someone with the same problem.

lbernstone
Posts: 829
Joined: Mon Jul 22, 2019 3:20 pm

Re: Constant compiling errors using Arduino IDE

Postby lbernstone » Tue Jan 02, 2024 6:55 pm

Manual install is a good workaround.
The core files do not go into <sketchpath> when installed through the board manager. The location is %USER%\Arduinodocs on windows, or .arduino15 on *nix.

Who is online

Users browsing this forum: No registered users and 51 guests