make menuconfig and make j$(nproc) throwing errors
Greg KH
greg at kroah.com
Thu Feb 24 01:46:36 EST 2022
On Wed, Feb 23, 2022 at 10:58:45PM -0500, Aruna Hewapathirane wrote:
> And I tried to build without make menuconfig and make is telling me I
> need 'bison' ? Why do I need bison ? Since when
> did we need bison ? See below for details.
>
> aruna at debian:/media/aruna/linux-next/home/linux-5.16.10$ make -j$(nproc)
> DESCEND objtool
> HOSTCC scripts/asn1_compiler
> YACC scripts/genksyms/parse.tab.[ch]
> /bin/sh: 1: bison: not found
You need bison to build the kernel, sorry, please install it.
> make[2]: *** [scripts/genksyms/Makefile:21:
> scripts/genksyms/parse.tab.c] Error 127
> make[1]: *** [scripts/Makefile.build:549: scripts/genksyms] Error 2
> make[1]: *** Waiting for unfinished jobs....
> <stdin>:1:10: fatal error: libelf.h: No such file or directory
You also need libelf.
thanks,
greg k-h
More information about the Kernelnewbies
mailing list