After kernel version 4.14.26 onwards, we are now unable to compile on EL6 environments. The error messages presented on the build are: BUILDSTDERR: arch/x86/kernel/head64.c: In function 'copy_bootdata': BUILDSTDERR: ./arch/x86/include/asm/mem_encrypt.h:59: sorry, unimplemented: inlining failed in call to 'sme_map_bootdata': function not inlinable BUILDSTDERR: arch/x86/kernel/head64.c:294: sorry, unimplemented: called from here BUILDSTDERR: ./arch/x86/include/asm/mem_encrypt.h:60: sorry, unimplemented: inlining failed in call to 'sme_unmap_bootdata': function not inlinable BUILDSTDERR: arch/x86/kernel/head64.c:310: sorry, unimplemented: called from here BUILDSTDERR: make[2]: *** [arch/x86/kernel/head64.o] Error 1 BUILDSTDERR: make[1]: *** [arch/x86/kernel] Error 2 BUILDSTDERR: make: *** [arch/x86] Error 2 I believe the patch in question is: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/ commit/arch/x86/include/asm/mem_encrypt.h? h=linux-4.14.y&id=e0f82cbde41353ddf63935175583ceb5580cce87 It seems to be the only change to these files in quite a while. The gcc version on RHEL6 is: gcc-c++-4.4.7-18.el6_9.2.x86_64
Rolling back the gcc packages in RHEL6, the kernel compiles pre-retpoline patches / updates. Changelog in the RPM packages show: * Wed Jan 31 2018 Jeff Law <law@redhat.com> 4.4.7-18.2 - Fix indirect_jump/tablejump patters for retpolines (#1535656) * Tue Jan 23 2018 Jeff Law <law@redhat.com> 4.4.7-18.1 - Retpoline support (#1535656) https://bugzilla.redhat.com/show_bug.cgi?id=1535656 Currently shows as a private bug.
Looks forgotten, closing. Feel free to reopen if still of interest.