I was pleased to see that the 4.14.18 kernel passed the spectre/meltdown tests [github.com/speed47/spectre-meltdown-checker.sh].
However, I tried to compile a custom [module-free] 4.14.18 kernel from the kernel.org source. The last time I achieved this was November 2016 [4.5.2 kernel]. Since then I have fully upgraded my system. This time I get a fatal error complaining that gelf.h is missing [full message below]. Is this caused by a new package that I must xbps-install? Ideas?
here is the output from building a with a “minimal” custom .config [but errors also stop the build with a default .config; different errors]:
:1:10: fatal error: libelf.h: No such file or directory
In file included from arch/x86/decode.c:26:0:
arch/x86/…/…/elf.h:22:10: fatal error: gelf.h: No such file or directory
mv: cannot stat ‘/home/jack/news/src/linux/linux-4.14.18/tools/objtool/arch/x86/.decode.o.tmp’: No such file or directory
make: *** [/home/jack/news/src/linux/linux-4.14.18/tools/build/Makefile.build:97: /home/jack/news/src/linux/linux-4.14.18/tools/objtool/arch/x86/decode.o] Error 1
make: *** [/home/jack/news/src/linux/linux-4.14.18/tools/build/Makefile.build:139: arch/x86] Error 2
make: *** [Makefile:46: /home/jack/news/src/linux/linux-4.14.18/tools/objtool/objtool-in.o] Error 2
make: *** [Makefile:62: objtool] Error 2
make: *** [Makefile:1632: tools/objtool] Error 2