-
Notifications
You must be signed in to change notification settings - Fork 1.2k
add -Wno-error=implicit-fallthrough and -Wno-error=switch-default to CMAKE_CXX_FLAGS #729
Conversation
Ubuntu 16.04 doesn't like this as it seems
Looks like we need to find another solution or make this conditional on the used GCC version. |
Looks like |
with GCC8 plus both -Wno-error=switch-default and -Wno-error=implicit-fallthrough, the build works. |
@milkmiruku Are you going to update the PR with that? |
@milkmiruku : Please remove -Wno-error=implicit-fallthrough first & then add -Wno-error=switch-default, since the switch-default works for both GCC versions. |
without both -Wno-error=switch-default and -Wno-error=implicit-fallthrough, the build fails. on having just -Wno-error=switch-default, i get;
though I can make the change to just |
The minimum required GCC version is what is shipped in Ubuntu 16.04. If you don't want to recommend the Arch maintainers to patch Anbox we can detect the GCC version in cmake and add the right flag depending on the version we find. |
I've removed |
@milkmiruku Thanks for all the work! |
Actually even with this the dkms modules fail to install on ArchLinux, by not finding ashmem.. |
@HaoZeke Actually that is a completely different thing. Please open a bug report with more details on the failing build of the kernel modules. |
I'm still getting this build failing with AUR on Manjaro. This is just the main package only and its dependencies, nothing else. |
As am I. |
fixes half of #726