I have a simple question. I built a gcc8 and I want to build Linux-image 4.15.4 with gcc8 to prevent CVE-2017-5715.
I tried adding “Prefer: gcc8” to the project config, but it didn’t help.
I can’t make update-alternatives because the build users hasn’t enough rights.
How to build a kernel with gcc8?
Spec file is likely good.
Alternative might be to create an update-alternatives for gcc as i describe in my following wiki page(which I recommend more commonly when you don’t have access to a spec file)