[Bug 1830961] Re: Kernels & kernel drivers fail to build with gcc-9 [error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible]
Daniel van Vugt
daniel.van.vugt at canonical.com
Tue Jul 16 01:53:41 UTC 2019
linux (5.2.0-8.9) eoan; urgency=medium
* linux: 5.2.0-8.9 -proposed tracker (LP: #1835700)
* Miscellaneous Ubuntu changes
- [Packaging] replace zfs and spl build with zfs 0.8.1-1ubuntu1
- SAUCE: test_bpf: remove expected fail for Ctx heavy transformations test on
s390
- SAUCE: add -fcf-protection=none to retpoline flags
- SAUCE: usbip: ensure strings copied using strncpy are null-terminated
- SAUCE: usbip: add -Wno-address-of-packed-member to EXTRA_CFLAGS
- SAUCE: perf jvmti: ensure strncpy result is null-terminated
- update dkms package versions
- add removed zfs modules to modules.ignore
[ Upstream Kernel Changes ]
* Rebase to v5.2
-- Seth Forshee <seth.forshee at canonical.com> Mon, 08 Jul 2019 07:13:41
-0500
** Changed in: linux (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:
Fix Released
Status in nvidia-graphics-drivers-430 package in Ubuntu:
Fix Released
Status in virtualbox package in Ubuntu:
Won't Fix
Status in xtables-addons package in Ubuntu:
Confirmed
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