Same issue with:

Ubuntu 19.10
xtables-addons-dkms 3.2-1ubuntu2
linux kernel 5.0.0-17 and 5.0.0-20
gcc-9: 9.1.0-6ubuntu2

The compilation complains that:
 echo >&2;                                                      \
 echo >&2 "  ERROR: Kernel configuration is invalid.";          \
 echo >&2 "         include/generated/autoconf.h or include/config/auto.conf 
are missing.";\
 echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix 
it.";     \

but both files are present. Later on, I get a huge number of similar errors 
like the following:
 ./include/linux/compiler.h:192:1: error: ‘-mindirect-branch’ and 
‘-fcf-protection’ are not compatible

Switching to gcc-8 works around this critical issue.

** Attachment added: "/var/crash/xtables-addons-dkms.0.crash"
   
https://bugs.launchpad.net/ubuntu/+source/xtables-addons/+bug/1830961/+attachment/5275942/+files/xtables-addons-dkms.0.crash

-- 
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:
  Kernels & kernel drivers fail to build with gcc-9 [error: ‘-mindirect-
  branch’ and ‘-fcf-protection’ are not compatible]

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

Reply via email to