[Bug 1830961] Re: Kernels & kernel drivers fail to build with gcc-9 [error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible]
Launchpad Bug Tracker
1830961 at bugs.launchpad.net
Wed Jul 10 23:15:11 UTC 2019
This bug was fixed in the package nvidia-graphics-drivers-430 -
430.34-0ubuntu2
---------------
nvidia-graphics-drivers-430 (430.34-0ubuntu2) eoan; urgency=medium
* debian/dkms_nvidia/patches/disable_fstack-clash-protection_fcf-protection.patch:
- Refresh for 430.34 (LP: #1830961).
-- Alberto Milone <alberto.milone at canonical.com> Wed, 10 Jul 2019
15:27:36 +0200
** Changed in: nvidia-graphics-drivers-430 (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-9 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 Released
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
More information about the foundations-bugs
mailing list