Comment 0 for bug 1830961

Revision history for this message
satmandu (satadru-umich) wrote : 9.1.0-3ubuntu1 prevents kernel & kernel module compilation on 19.10 due to enabled fcf-protection

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.