As a temporary workaround I changed the compile flags in /usr/src/linux- headers-foo/Makefile around line 634 to
RETPOLINE_CFLAGS_GCC := -mindirect-branch-register RETPOLINE_VDSO_CFLAGS_GCC := -mindirect-branch-register and now it compiled with gcc9 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1830961 Title: 9.1.0-3ubuntu1 prevents kernel & kernel module compilation on 19.10 due to enabled fcf-protection To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1830961/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs