Page 2 of 2

Re: Chibios 3.0.0 gcc support

Posted: Fri May 09, 2014 1:19 pm
by Korken
When I try to compile with LTO enabled I get this error:
Any idea what does this?

I'm compiling through the binaries used in ChibiStudio.

http://s29.postimg.org/idse1312d/problem.jpg

Re: Chibios 3.0.0 gcc support

Posted: Fri May 09, 2014 1:42 pm
by Korken
Found the problem!
After adding all the paths in the start2.bat to path you have to restart for them to take effect... Beginners mistake...

Re: Chibios 3.0.0 gcc support

Posted: Sat May 10, 2014 5:00 pm
by Korken
I too have discovered a strange LTO bug.
If LTO is on and I have optimization O0 everything works, but if I increase to O1 or O2 I get stuck in a osalDbgAssert in st.c as:
Image

Any idea what's causing this? I've tried with -flto-partition=1to1, this does not help.