Chibios 3.0.0 gcc support

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

User avatar
Korken
Posts: 270
Joined: Wed Apr 02, 2014 4:09 pm
Has thanked: 5 times
Been thanked: 6 times

Re: Chibios 3.0.0 gcc support

Post 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
User avatar
Korken
Posts: 270
Joined: Wed Apr 02, 2014 4:09 pm
Has thanked: 5 times
Been thanked: 6 times

Re: Chibios 3.0.0 gcc support

Post 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...
User avatar
Korken
Posts: 270
Joined: Wed Apr 02, 2014 4:09 pm
Has thanked: 5 times
Been thanked: 6 times

Re: Chibios 3.0.0 gcc support

Post 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.
Post Reply