-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 16.04 ccache 3.2.4 Fallthrough Bug #12813
Comments
The question is why you have a newer |
@baumanta can you do |
@julianoes that returns: /usr/lib/ccache/arm-none-eabi-gcc |
Ok, and that's a symlink. Where does it go?
|
I get same error (irrespective of build target). Installed from ubuntu.sh.
|
@hamishwillee so you're saying the build is broken in general, not just with @baumanta's newer compiler? |
I'm saying that if you install with ubuntu.sh from that PR we've been discussing, then the problem happens irrespective of the build target - ie FMUv2, 3, 4 etc. - not just |
Ok, this is really weird with the script from I tried to find differences and found that the arm-none-eabi-gcc version as well as the cmake versions are identical. The only difference is that the Firmware script also installs I tried to remove the ccache cache using |
Presumably the comments are stripped by the preprocessor before it goes into ccache. The workaround |
@julianoes about the symlink, running your command, I get: |
I just mentioned the build target, because I noticed that SITL builds are fine. I did not try any other targets, e.g. v2 or such |
I updated the title since we long found out what the problem and workaround is: Let's keep this issue to remember/track that. I'm not aware what's missing to be fully C++17 compatible. @dagar mentioned the compiler version for one board |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
So is this still something that needs to be alive? ie is this just alive as a reminder to people there is a problem, or are we planning on doing something? |
For Ubuntu 16.04 users this can be resolved by installing a newer ccache version as it is done in: |
Describe the bug
When I try to build current master for v4, the build fails with the following error message.
../../src/lib/led/led.cpp: In member function 'void LedController::get_control_data(LedControlData&)':
../../src/lib/led/led.cpp:229:5: error: this statement may fall through [-Werror=implicit-fallthrough=]
if (cur_data.blink_times_left % 10 < 6) { // 2 blinks, then turn off for the rest of the cycle
^~
compilation terminated due to -Wfatal-errors.
To Reproduce
Steps to reproduce the behavior:
Additional context
I use the gcc toolchain version:
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2018-q3-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
The text was updated successfully, but these errors were encountered: