Zubax / gridsens_gs2

Zubax GNSS module
https://zubax.com/products/gnss_2
GNU General Public License v3.0
51 stars 57 forks source link

Error during building - air_sensor.cpp #13

Closed ghost closed 5 years ago

ghost commented 5 years ago

Getting following error on the latest commit.

cc1plus: error: -Werror=implicit-fallthrough: no option -Wimplicit-fallthrough zubax_chibios///chibios/os/common/ports/ARMCMx/compilers/GCC/rules.mk:198: recipe for target 'build/obj/air_sensor.o' failed make: *** [build/obj/air_sensor.o] Error 1

GNU Tools for ARM Embedded Processors 6.3.1, but tried with 7 version as well with no success.

pavel-kirienko commented 5 years ago

tried with 7 version as well with no success.

Can't reproduce, works for me. Maybe you were using an older version and didn't notice that?

ghost commented 5 years ago

Using the 7.2.1 says "This compiler is not supported".

GCC version is below

gcc_version

Build fail error

build_fail

pavel-kirienko commented 5 years ago

Are you sure you're building the latest master? 7.2.1 is supported there:

https://github.com/Zubax/zubax_gnss/blob/54f3f8819c087ceb9ff1b4ba8c13d5d9ae2f5028/firmware/src/main.cpp#L224-L226

ghost commented 5 years ago

I saw it there. That's why chose the 7.2.1.

yes I am using the latest master as can be seen here. git_log

Any ideas what might be the issue? I was able to build this version [https://github.com/Zubax/zubax_gnss/commit/ae4618de637aaf76766130fc1c723b76af233652] with 6.3.1 though.

pavel-kirienko commented 5 years ago

Using the 7.2.1 says "This compiler is not supported".

This apparently means that you are not really using 7.2.1. Please make sure that your make recipes invoke the correct version of the compiler.

bys1123 commented 5 years ago

I got this error too, and I tried gcc 7.2.1 I'm sure I'm using this version, I can build PX4, also when I run arm-none-eabi-gcc --version I have:

arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204] Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Don't know why it's not work~

pavel-kirienko commented 5 years ago

Perhaps you have another version installed that is used instead of 7.2. Make sure that the compiler invoked by Make is really v7.2.

bys1123 commented 5 years ago

I slove it, because of the bootloader only support for gcc 6.3.1.