Marlin\src\HAL\STM32\../../inc/../../Configuration.h:845:3: error: 'define' does not name a type
845 | define PID_EDIT_MENU Add PID editing to the "Advanced Settings" menu. (~700 bytes of flash)
| ^~~~~~
In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfigPre.h:39,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\STM32\HAL.cpp:26:
Marlin\src\HAL\STM32\../../inc/../../Configuration.h:845:3: error: 'define' does not name a type
845 | define PID_EDIT_MENU Add PID editing to the "Advanced Settings" menu. (~700 bytes of flash)
| ^~~~~~
In file included from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\cmath:43,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\math.h:36,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:27,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:27,
from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,
from Marlin\src\HAL\STM32\HAL_SPI.cpp:26:
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\ext\type_traits.h:162:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity
162 | __is_null_pointer(std::nullptr_t)
| ^
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\ext\type_traits.h:157:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
157 | __is_null_pointer(_Type)
| ^~~~~~~~~~~~~~~~~
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\ext\type_traits.h:162:26: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'?
162 | __is_null_pointer(std::nullptr_t)
| ^~~~~~~~~
In file included from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\sys\reent.h:14,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\stdlib.h:18,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\cstdlib:75,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\stdlib.h:36,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:24,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from arduinoststm32\cores\arduino/Arduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:27,
from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,
from Marlin\src\HAL\STM32\HAL.cpp:26:
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\ext\type_traits.h:162:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity
162 | __is_null_pointer(std::nullptr_t)
| ^
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\ext\type_traits.h:157:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
157 | __is_null_pointer(_Type)
| ^~~~~~~~~~~~~~~~~
In file included from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\sys\reent.h:14,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\stdlib.h:18,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\cstdlib:75,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\stdlib.h:36,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:24,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:27,
from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,
from Marlin\src\HAL\STM32\HAL.cpp:26:
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\lib\gcc\arm-none-eabi\9.2.1\include\stddef.h:433:29: note: 'nullptr_t' declared here
433 | typedef decltype(nullptr) nullptr_t;
| ^~~~~~~~~
In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfigPre.h:39,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\STM32\MarlinSerial.cpp:27:
Marlin\src\HAL\STM32\../../inc/../../Configuration.h:845:3: error: 'define' does not name a type
845 | define PID_EDIT_MENU Add PID editing to the "Advanced Settings" menu. (~700 bytes of flash)
| ^~~~~~
In file included from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\bits\move.h:55,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\bits\stl_pair.h:59,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\utility:70,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\algorithm:60,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring_constants.h:26,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:34,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\type_traits:361:31: error: 'std::size_t' has not been declared
361 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:27,
from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,
from Marlin\src\HAL\STM32\MarlinSerial.cpp:27:
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\ext\type_traits.h:162:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity
162 | __is_null_pointer(std::nullptr_t)
| ^
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\ext\type_traits.h:157:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
157 | __is_null_pointer(_Type)
| ^~~~~~~~~~~~~~~~~
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\ext\type_traits.h:162:26: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'?
162 | __is_null_pointer(std::nullptr_t)
| ^~~~~~~~~
In file included from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\sys\reent.h:14,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\stdlib.h:18,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\cstdlib:75,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\stdlib.h:36,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:24,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:27,
from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,
from Marlin\src\HAL\STM32\MarlinSerial.cpp:27:
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\lib\gcc\arm-none-eabi\9.2.1\include\stddef.h:433:29: note: 'nullptr_t' declared here
433 | typedef decltype(nullptr) nullptr_t;
| ^~~~~~~~~
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\type_traits:362:25: error: '_Size' was not declared in this scope
362 | struct is_array<_Tp[_Size]>
| ^~~~~
compilation terminated due to -fmax-errors=5.
In file included from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\bits\move.h:55,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\bits\stl_pair.h:59,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\utility:70,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\algorithm:60,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring_constants.h:26,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:34,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:27,
from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,
from Marlin\src\HAL\STM32\HAL.cpp:26:
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\type_traits:361:31: error: 'std::size_t' has not been declared
361 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\type_traits:362:25: error: '_Size' was not declared in this scope
362 | struct is_array<_Tp[_Size]>
| ^~~~~
compilation terminated due to -fmax-errors=5.
In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfigPre.h:39,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\STM32\Servo.cpp:26:
Marlin\src\HAL\STM32\../../inc/../../Configuration.h:845:3: error: 'define' does not name a type
845 | define PID_EDIT_MENU Add PID editing to the "Advanced Settings" menu. (~700 bytes of flash)
| ^~~~~~
In file included from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\cmath:43,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\math.h:36,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:27,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:27,
from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,
from Marlin\src\HAL\STM32\Servo.cpp:26:
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\ext\type_traits.h:162:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity
162 | __is_null_pointer(std::nullptr_t)
| ^
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\ext\type_traits.h:157:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
157 | __is_null_pointer(_Type)
| ^~~~~~~~~~~~~~~~~
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\ext\type_traits.h:162:26: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'?
162 | __is_null_pointer(std::nullptr_t)
| ^~~~~~~~~
In file included from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\sys\reent.h:14,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\stdlib.h:18,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\cstdlib:75,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\stdlib.h:36,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:24,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:27,
from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,
from Marlin\src\HAL\STM32\Servo.cpp:26:
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\lib\gcc\arm-none-eabi\9.2.1\include\stddef.h:433:29: note: 'nullptr_t' declared here
433 | typedef decltype(nullptr) nullptr_t;
| ^~~~~~~~~
In file included from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\bits\move.h:55,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\bits\stl_pair.h:59,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\utility:70,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\algorithm:60,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring_constants.h:26,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:34,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:27,
from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,
from Marlin\src\HAL\STM32\MarlinSerial.cpp:27:
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\type_traits:361:31: error: 'std::size_t' has not been declared
361 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\type_traits:362:25: error: '_Size' was not declared in this scope
362 | struct is_array<_Tp[_Size]>
| ^~~~~
compilation terminated due to -fmax-errors=5.
In file included from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\bits\move.h:55,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\bits\stl_pair.h:59,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\utility:70,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\algorithm:60,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring_constants.h:26,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:34,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:27,
from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,
from Marlin\src\HAL\STM32\Servo.cpp:26:
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\type_traits:361:31: error: 'std::size_t' has not been declared
361 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
*** [.pio\build\STM32F103RE_creality\src\src\HAL\STM32\HAL.cpp.o] Error 1
*** [.pio\build\STM32F103RE_creality\src\src\HAL\STM32\HAL_SPI.cpp.o] Error 1
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\type_traits:362:25: error: '_Size' was not declared in this scope
362 | struct is_array<_Tp[_Size]>
| ^~~~~
compilation terminated due to -fmax-errors=5.
*** [.pio\build\STM32F103RE_creality\src\src\HAL\STM32\MarlinSerial.cpp.o] Error 1
*** [.pio\build\STM32F103RE_creality\src\src\HAL\STM32\Servo.cpp.o] Error 1
In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfigPre.h:39,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\STM32\eeprom_flash.cpp:26:
Marlin\src\HAL\STM32\../../inc/../../Configuration.h:845:3: error: 'define' does not name a type
845 | define PID_EDIT_MENU Add PID editing to the "Advanced Settings" menu. (~700 bytes of flash)
| ^~~~~~
In file included from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\cmath:43,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\math.h:36,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:27,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:27,
from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,
from Marlin\src\HAL\STM32\eeprom_flash.cpp:26:
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\ext\type_traits.h:162:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity
162 | __is_null_pointer(std::nullptr_t)
| ^
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\ext\type_traits.h:157:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
157 | __is_null_pointer(_Type)
| ^~~~~~~~~~~~~~~~~
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\ext\type_traits.h:162:26: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'?
162 | __is_null_pointer(std::nullptr_t)
| ^~~~~~~~~
In file included from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\sys\reent.h:14,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\stdlib.h:18,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\cstdlib:75,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\stdlib.h:36,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:24,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:27,
from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,
from Marlin\src\HAL\STM32\eeprom_flash.cpp:26:
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\lib\gcc\arm-none-eabi\9.2.1\include\stddef.h:433:29: note: 'nullptr_t' declared here
433 | typedef decltype(nullptr) nullptr_t;
| ^~~~~~~~~
In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfigPre.h:39,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\STM32\eeprom_bl24cxx.cpp:32:
Marlin\src\HAL\STM32\../../inc/../../Configuration.h:845:3: error: 'define' does not name a type
845 | define PID_EDIT_MENU Add PID editing to the "Advanced Settings" menu. (~700 bytes of flash)
| ^~~~~~
In file included from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\cmath:43,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\math.h:36,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:27,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:27,
from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,
from Marlin\src\HAL\STM32\eeprom_bl24cxx.cpp:32:
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\ext\type_traits.h:162:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity
162 | __is_null_pointer(std::nullptr_t)
| ^
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\ext\type_traits.h:157:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
157 | __is_null_pointer(_Type)
| ^~~~~~~~~~~~~~~~~
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\ext\type_traits.h:162:26: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'?
162 | __is_null_pointer(std::nullptr_t)
| ^~~~~~~~~
In file included from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\sys\reent.h:14,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\stdlib.h:18,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\cstdlib:75,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\stdlib.h:36,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:24,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:27,
from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,
from Marlin\src\HAL\STM32\eeprom_bl24cxx.cpp:32:
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\lib\gcc\arm-none-eabi\9.2.1\include\stddef.h:433:29: note: 'nullptr_t' declared here
433 | typedef decltype(nullptr) nullptr_t;
| ^~~~~~~~~
In file included from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\bits\move.h:55,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\bits\stl_pair.h:59,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\utility:70,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\algorithm:60,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring_constants.h:26,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:34,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:27,
from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,
from Marlin\src\HAL\STM32\eeprom_flash.cpp:26:
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\type_traits:361:31: error: 'std::size_t' has not been declared
361 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\type_traits:362:25: error: '_Size' was not declared in this scope
362 | struct is_array<_Tp[_Size]>
| ^~~~~
compilation terminated due to -fmax-errors=5.
In file included from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\bits\move.h:55,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\bits\stl_pair.h:59,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\utility:70,
from c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\algorithm:60,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring_constants.h:26,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:34,
from C:\Users\Kolel\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/../shared/Marduino.h:36,
from Marlin\src\HAL\STM32\../../inc/../HAL/../HAL/STM32/HAL.h:27,
from Marlin\src\HAL\STM32\../../inc/../HAL/HAL.h:30,
from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:33,
from Marlin\src\HAL\STM32\eeprom_bl24cxx.cpp:32:
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\type_traits:361:31: error: 'std::size_t' has not been declared
361 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
c:\users\kolel\.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\c++\9.2.1\type_traits:362:25: error: '_Size' was not declared in this scope
362 | struct is_array<_Tp[_Size]>
| ^~~~~
compilation terminated due to -fmax-errors=5.
*** [.pio\build\STM32F103RE_creality\src\src\HAL\STM32\eeprom_flash.cpp.o] Error 1
*** [.pio\build\STM32F103RE_creality\src\src\HAL\STM32\eeprom_bl24cxx.cpp.o] Error 1
In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfigPre.h:39,
from Marlin\src\HAL\STM32\MarlinSerial.h:24,
from Marlin\src\HAL\STM32\HAL.h:32,
from Marlin\src\HAL\STM32\MarlinSPI.h:24,
from Marlin\src\HAL\STM32\MarlinSPI.cpp:27:
Marlin\src\HAL\STM32\../../inc/../../Configuration.h:845:3: error: 'define' does not name a type
845 | define PID_EDIT_MENU Add PID editing to the "Advanced Settings" menu. (~700 bytes of flash)
| ^~~~~~
In file included from Marlin\src\HAL\STM32\../../core/serial_hook.h:24,
from Marlin\src\HAL\STM32\MarlinSerial.h:30,
from Marlin\src\HAL\STM32\HAL.h:32,
from Marlin\src\HAL\STM32\MarlinSPI.h:24,
from Marlin\src\HAL\STM32\MarlinSPI.cpp:27:
Marlin\src\HAL\STM32\../../core/serial_base.h:118:17: error: 'serial_index_t' has not been declared
118 | int available(serial_index_t index=0) const { return SerialChild->available(index); }
| ^~~~~~~~~~~~~~
Marlin\src\HAL\STM32\../../core/serial_base.h:122:12: error: 'serial_index_t' has not been declared
122 | int read(serial_index_t index=0) { return SerialChild->read(index); }
| ^~~~~~~~~~~~~~
Marlin\src\HAL\STM32\../../core/serial_base.h:126:26: error: 'serial_index_t' has not been declared
126 | SerialFeature features(serial_index_t index=0) const { return static_cast<const Child*>(this)->features(index); }
| ^~~~~~~~~~~~~~
Marlin\src\HAL\STM32\../../core/serial_base.h:129:20: error: 'serial_index_t' has not been declared
129 | bool has_feature(serial_index_t index, SerialFeature flag) const { return (features(index) & flag) != SerialFeature::None; }
| ^~~~~~~~~~~~~~
compilation terminated due to -fmax-errors=5.
*** [.pio\build\STM32F103RE_creality\src\src\HAL\STM32\MarlinSPI.cpp.o] Error 1
So line 845 doesn’t look right at all. Does it really verbatim say
define PID_EDIT_MENU Add PID editing to the "Advanced Settings" menu. (~700 bytes of flash)
? Because that’ really wrong, it should be something like
#define PID_EDIT_MENU /* Add PID editing to the "Advanced Settings" menu. (~700 bytes of flash) */
Since #define is creating a preprocessor define / macro, followed by the name and optional value, then the rest of the text should be a comment and not interpreted as C/C++ code.
I’m an idiot, I uncommented # instead of the // to enable the setting🤦♂️