ChibiOS-Arduino icon indicating copy to clipboard operation
ChibiOS-Arduino copied to clipboard

IDE 1.8.0 build error

Open dmemphis opened this issue 8 years ago • 2 comments
trafficstars

Downloaded code, copied libraries over, and attempted chBlink example build with IDE 1.8.0 build error: chThdExit' referenced in section .text' of C:\Users\DC\AppData\Local\Temp\ccDAKp0y.ltrans0.ltrans.o: defined in discarded section `.text' of libraries\ChibiOS_AVR\utility\chthreads.c.o (symbol from plugin)

collect2.exe: error: ld returned 1 exit status

exit status 1 Error compiling for board Arduino/Genuino Uno.

dmemphis avatar Jan 06 '17 06:01 dmemphis

There is a bug in the version of avr-gcc in 1.8.0

See this for a workaround.

It's an old gcc bug that was fixed but has reappeared.

greiman avatar Jan 06 '17 14:01 greiman

Ah OK, thank you. Yes that worked.

dmemphis avatar Jan 06 '17 17:01 dmemphis