Arduino IDE 2.0.4 compile error with empty new sketch.
Posted: Mon Mar 27, 2023 1:23 pm
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:
Any idea ?
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
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