Arduino IDE 2.0.4 compile error with empty new sketch.

Development environment specific, Arduino, Eclipse, VS2013, Em::Blocks etc
Post Reply
marc09
Posts: 1
Joined: Mon Mar 27, 2023 1:09 pm

Arduino IDE 2.0.4 compile error with empty new sketch.

Post by marc09 »

Hello,

i just installed the stm32duino to use it on my Nucleo-L5 board and tried to compile a new untouched sketch (setup(),loop() without anyting in it).
Something is up with the stm32duino Version 2.4.0 it seem to not have properly setup the include directories intenally.
The "os_defines.h" is next to 'c++config.h' on the bits foder.

Have installed the stm32duino boards using this URL for Boards Manager:

Code: Select all

https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
Any idea ?

Code: Select all

In file included from c:\users\<hidden>\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\10.3.1-2.3\arm-none-eabi\include\c++\10.3.1\cstdlib:41,
                 from c:\users\<hidden>\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\10.3.1-2.3\arm-none-eabi\include\c++\10.3.1\stdlib.h:36,
                 from C:\Users\<hidden>\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino/wiring.h:24,
                 from C:\Users\<hidden>\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino/Arduino.h:36,
                 from C:\Users\<hidden>\AppData\Local\Temp\arduino\sketches\309947E6D1C559EDA3B74359AF93F3A0\sketch\sketch_mar27a.ino.cpp:1:
c:\users\<hidden>\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\10.3.1-2.3\arm-none-eabi\include\c++\10.3.1\arm-none-eabi\thumb\v8-m.main+fp\hard\bits\c++config.h:522:10: fatal error: bits/os_defines.h: No such file or directory
  522 | #include <bits/os_defines.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Arduino IDE 2.0.4 compile error with empty new sketch.

Post by fpiSTM »

This is an issue with Path lenght support on Windows:
https://github.com/stm32duino/Arduino_C ... ssues/1664
Post Reply

Return to “IDE's”