Compile error using make or Eclipse

It's all about the code!
Post Reply
phiatt
Posts: 8
Joined: Sun Dec 17, 2017 4:40 pm

Compile error using make or Eclipse

Post by phiatt »

While trying to compile the source code, I get this error;

Code: Select all

Compiling chschd.c
ChibiOS3/os/rt/src/chschd.c: In function 'wakeup':
ChibiOS3/os/rt/src/chschd.c:290:5: error: this statement may fall through [-Werror=implicit-fallthrough=]
     chSemFastSignalI(tp->p_u.wtsemp);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ChibiOS3/os/rt/src/chschd.c:294:3: note: here
   case CH_STATE_WTCOND:
   ^~~~
cc1.exe: all warnings being treated as errors
make: *** [ChibiOS3/os/common/ports/ARMCMx/compilers/GCC/rules.mk:218: build/obj/chschd.o] Error 1
Has anyone seen this before? This happens with regardless invoking make from command or in Eclipse; windoze or Linux.
User avatar
AndreyB
Site Admin
Posts: 14327
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Compile error using make or Eclipse

Post by AndreyB »

Eclipse is an IDE, it's like a cool notepad.
make is build automation tool.
it looks like the error you are publishing comes from a compiler. which compiler? are you building firmware or simulator?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
phiatt
Posts: 8
Joined: Sun Dec 17, 2017 4:40 pm

Re: Compile error using make or Eclipse

Post by phiatt »

Yes I am aware, Thank you for the clarification.

I am using gcc-arm-none-eabi-7-2017-q4-major.
phiatt
Posts: 8
Joined: Sun Dec 17, 2017 4:40 pm

Re: Compile error using make or Eclipse

Post by phiatt »

I apologize, building firmware.
User avatar
AndreyB
Site Admin
Posts: 14327
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Compile error using make or Eclipse

Post by AndreyB »

Thank you for reporting https://github.com/rusefi/rusefi/issues/517 !

Looks like a new option "-Wno-error=implicit-fallthrough" should be specific in Makefile - see https://github.com/rusefi/rusefi/commit/a8aaca866d94d673eaddd3b4d32cbbacf92bb7a0

I guess I should migrate to latest compiler on all my devices and make this official, but not today.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
phiatt
Posts: 8
Joined: Sun Dec 17, 2017 4:40 pm

Re: Compile error using make or Eclipse

Post by phiatt »

Cool, Thanks for the help. I'll give it a go.
Post Reply