Kernels & kernel drivers fail to build with gcc-9 [error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
backport-iwlwifi-dkms (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Critical
|
You-Sheng Yang | ||
gcc-9 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
Eoan |
Won't Fix
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Seth Forshee | ||
Eoan |
Fix Released
|
Undecided
|
Unassigned | ||
nvidia-graphics-drivers-390 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Eoan |
Confirmed
|
Undecided
|
Unassigned | ||
nvidia-graphics-drivers-430 (Ubuntu) |
Fix Released
|
Critical
|
Alberto Milone | ||
Eoan |
Fix Released
|
Undecided
|
Unassigned | ||
virtualbox (Ubuntu) |
Won't Fix
|
Critical
|
Unassigned | ||
Eoan |
Won't Fix
|
Undecided
|
Unassigned | ||
xtables-addons (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
Eoan |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
[SRU Justification for backport-
[Impact]
FTBFS against v5.3 kernels on Eoan/Focal.
[Fix]
* Backport fix from upstream commit f47729b94e11 (backport: rename ktime_get_boot_ns for v5.3+).
* Also updates -fcf-protection
1830961.
[Test Case]
Verified DKMS module build on linux-oem/
[Regression Risk]
Low. There is no functional changes in comparison to 7906-0ubuntu1.
======== original bug description ========
Compiling kernels & kernel modules fails due to these errors:
./include/
(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
summary: |
- 9.1.0-3ubuntu1 prevents kernel & kernel module compilation on 19.10 due - to enabled fcf-protection + Kernels & kernel drivers fail to build with gcc-9 [error: ‘-mindirect- + branch’ and ‘-fcf-protection’ are not compatible] |
Changed in nvidia-graphics-drivers-430 (Ubuntu): | |
importance: | Undecided → Critical |
Changed in virtualbox (Ubuntu): | |
importance: | Undecided → Critical |
tags: | added: eoan regression |
Changed in gcc-9 (Ubuntu): | |
importance: | Undecided → Critical |
Changed in nvidia-graphics-drivers-430 (Ubuntu): | |
status: | Confirmed → Fix Committed |
Changed in linux (Ubuntu): | |
status: | New → Confirmed |
Changed in linux (Ubuntu): | |
status: | Confirmed → Fix Committed |
Changed in virtualbox (Ubuntu): | |
status: | Invalid → Won't Fix |
Changed in gcc-9 (Ubuntu): | |
status: | Invalid → Won't Fix |
Changed in backport-iwlwifi-dkms (Ubuntu): | |
status: | New → Fix Released |
Changed in gcc-9 (Ubuntu Eoan): | |
status: | New → Won't Fix |
Changed in linux (Ubuntu Eoan): | |
status: | New → Fix Released |
Changed in nvidia-graphics-drivers-430 (Ubuntu Eoan): | |
status: | New → Fix Released |
Changed in virtualbox (Ubuntu Eoan): | |
status: | New → Won't Fix |
Changed in xtables-addons (Ubuntu Eoan): | |
status: | New → Won't Fix |
Changed in backport-iwlwifi-dkms (Ubuntu Eoan): | |
assignee: | nobody → You-Sheng Yang (vicamo) |
status: | New → In Progress |
importance: | Undecided → Critical |
Status changed to 'Confirmed' because the bug affects multiple users.