Use gcc-10 to build 5.8 riscv backport kernel for focal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-riscv-5.8 (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Focal |
Fix Released
|
Critical
|
Colin Ian King |
Bug Description
== SRU RISC-V 5.8 Focal backport kernel ==
The 5.8 RISC-V kernel has boot issues when compiled with gcc 9. This can be fixed by building it with gcc-10.
== Fix ==
Use gcc-10, e.g.:
diff --git a/debian.
index 9c1e956092bf.
--- a/debian.
+++ b/debian.
@@ -68,7 +68,7 @@ Section: devel
Priority: optional
Provides: linux-source
Depends: ${misc:Depends}, binutils, bzip2, coreutils
-Recommends: libc-dev, gcc, make
+Recommends: libc-dev, gcc-10, make
Suggests: libncurses-dev | ncurses-dev, kernel-package, libqt3-dev
Description: Linux kernel source for version PKGVER with Ubuntu patches
This package provides the source code for the Linux kernel version
diff --git a/debian/rules b/debian/rules
index 627ca3cb968f.
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,7 @@
#
DEBIAN=$(shell awk -F= '($$1 == "DEBIAN") { print $$2 }' <debian/debian.env)
+gcc=gcc-10
# dpkg-buildpackage passes options that are incomptatible
# with the kernel build.
== Testing ==
Without the fix, the kernel will panic during boot. With the fix, the kernel boots fine.
== Where problems could occur ==
Using a different compiler version can always introduce subtle object code differences and hence potential bugs, however, the same gcc version is being used to build the groovy variant of the same kernel and we know that this works fine w/o any observable gcc specific issues.
Changed in linux (Ubuntu): | |
importance: | Undecided → Critical |
status: | New → In Progress |
assignee: | nobody → Colin Ian King (colin-king) |
Changed in linux-riscv-5.8 (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
Changed in linux-riscv-5.8 (Ubuntu Focal): | |
milestone: | none → ubuntu-20.04.2 |
Pulling severity back to high (critical would be data corruption/loss in production)