WeActStudio / ArduinoCore-AT32F4

33 stars 12 forks source link

Build error: (.text._sbrk_r+0xc): undefined reference to `'_sbrk' in function `'_sbrk_r' #11

Closed ShaggyDog18 closed 2 years ago

ShaggyDog18 commented 2 years ago

Compiler/builder in Arduino IDE 2.0.0-rc9.2 ends up with the following error every even time I build the image:

c:/users/xyz/appdata/local/arduino15/packages/weactstudio/tools/xpack-arm-none-eabi-gcc/11.2.1-1.2/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/bin/ld.exe: 
c:/users/xyz/appdata/local/arduino15/packages/weactstudio/tools/xpack-arm-none-eabi-gcc/11.2.1-1.2/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/lib/thumb/v7e-m/nofp\libg_nano.a(lib_a-sbrkr.o): in function `_sbrk_r':
(.text._sbrk_r+0xc): undefined reference to `_sbrk'
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

The error appears every second time I run the compile/build process for the code that usually compiles without errors.

WeActStudio commented 2 years ago

fix