As a follow-up tp my previous comment #12 
(https://bugs.launchpad.net/ubuntu/+source/xtables-addons/+bug/1830961/comments/12),
 I have discovered 2 new facts:
- I am not able to build dpdk 19.05 on the same system anymore, (cf. build 
log), unless I modify the gcc symlink to point to gcc-8 instead of gcc-9
- however, the xtables -addons issue encountered on the previous system has not 
been seen on 2 other Ubuntu Eoan platforms with the exact same versions of:
  + gcc-9 (and/usr/bin/gcc -> gcc-9)
  + linux kernels
  + xtables-addons-dkms/common

** Attachment added: "DPDK 19.05 build log"
   
https://bugs.launchpad.net/ubuntu/+source/xtables-addons/+bug/1830961/+attachment/5276174/+files/dpdk_19.05_amd64.build

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in 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]

Status in gcc-9 package in Ubuntu:
  Invalid
Status in linux package in Ubuntu:
  Confirmed
Status in nvidia-graphics-drivers-430 package in Ubuntu:
  Fix Committed
Status in virtualbox package in Ubuntu:
  Confirmed
Status in xtables-addons package in Ubuntu:
  New

Bug description:
  Compiling kernels & kernel modules fails due to these errors:

  ./include/linux/compiler.h:193:1: error: ‘-mindirect-branch’ and
  ‘-fcf-protection’ are not compatible

  (This happens with any kernel modules.)

  This appears to be due to the changes in 9.1.0-3ubuntu1 enabling -fcf-
  protection by default on 19.10's gcc-9.

  Switching to gcc-8 allows compilation to proceed.

  WORKAROUND:

  sudo ln -fs gcc-8 /usr/bin/gcc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1830961/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to