WARNING: module 'stap_30d' built without retpoline-enabled compiler, may affect Spectre v2 mitigation
Issue
- After updated kernel to the version with the retpoline patches no longer able to compile kernel modules
~/arch/x86/Makefile:166: *** CONFIG_RETPOLINE=y, but not supported by the compiler. Compiler update recommended
- After updated kernel to the version with the retpoline patches no longer able to use SystemTap
# stap -v -g test.stp --all-modules
Pass 1: parsed user script and 110 library script(s) using 220084virt/37620res/3092shr/34892data kb, in 150usr/50sys/202real ms.
WARNING: kbuild exited with status: 2
WARNING: kbuild exited with status: 2
WARNING: kbuild exited with status: 2
WARNING: kbuild exited with status: 2
WARNING: kbuild exited with status: 2
WARNING: kbuild exited with status: 2
WARNING: kbuild exited with status: 2
WARNING: kbuild exited with status: 2
WARNING: kbuild exited with status: 2
WARNING: kbuild exited with status: 2
WARNING: kbuild exited with status: 2
WARNING: kbuild exited with status: 2
WARNING: kbuild exited with status: 2
WARNING: kbuild exited with status: 2
Pass 2: analyzed script: 2 probe(s), 9 function(s), 4 embed(s), 0 global(s) using 257512virt/75932res/3976shr/72320data kb, in 1770usr/2090sys/3621real ms.
Pass 3: translated to C into "/tmp/staptXOI0g/stap_2f46bb3244dec16cdb8cccc7821af177_5130_src.c" using 257512virt/76264res/4308shr/72320data kb, in 1540usr/140sys/1682real ms.
/usr/src/kernels/3.10.0-327.65.1.el7.x86_64/arch/x86/Makefile:163: *** CONFIG_RETPOLINE=y, but not supported by the compiler. Toolchain update recommended.. Stop.
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_2f46bb3244dec16cdb8cccc7821af177_5130.ko" in 80usr/110sys/181real ms.
Pass 4: compilation failed. [man error::pass4]
#
Environment
- Red Hat Enterprise Linux 5 (gcc-4.1.2-55.el5 or older)
- Red Hat Enterprise Linux 6 (gcc-4.4.7-18 or older)
- Red Hat Enterprise Linux 7
- kernel with retpoline
- SystemTap
- gcc
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
