tsandmann / freertos-teensy

FreeRTOS port with C++ std::thread support for ARM boards Teensy 3.5, 3.6, 4.0 and 4.1 (cortex-m4f and cortex-m7f)
92 stars 15 forks source link

Issue with using PlatformIO #14

Closed windorey closed 1 year ago

windorey commented 1 year ago

Error when compiling blink example:

.pio/build/teensy41/libFrameworkArduino.a(startup.c.o): In function `_sbrk':
startup.c:(.text._sbrk+0x0): multiple definition of `_sbrk'
.pio/build/teensy41/libc07/libfreertos-teensy-master.a(teensy_common.cpp.o):teensy_common.cpp:(.text._sbrk+0x0): first defined here
/home/kemal/.platformio/packages/toolchain-gccarmnoneeabi@1.50401.190816/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld: Disabling relaxation: it will not work with multiple definitions
collect2: error: ld returned 1 exit status
*** [.pio/build/teensy41/firmware.elf] Error 1
===============================================
tsandmann commented 1 year ago

Did you modify the platformio.ini file of the example? The error looks like an incompatible platform reference.

windorey commented 1 year ago

Did you modify the platformio.ini file of the example? The error looks like an incompatible platform reference.

No, I did not. Thank you.