make menuconfig and make j$(nproc) throwing errors
greg at kroah.com
Thu Feb 24 06:37:32 EST 2022
On Thu, Feb 24, 2022 at 05:40:33AM -0500, Aruna Hewapathirane wrote:
> On Thu, Feb 24, 2022 at 1:46 AM Greg KH <greg at kroah.com> wrote:
> > 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.
> Oh my, you actually went through that mess ? I will do so thank you.
> > > make: *** [scripts/genksyms/Makefile:21:
> > > scripts/genksyms/parse.tab.c] Error 127
> > > make: *** [scripts/Makefile.build:549: scripts/genksyms] Error 2
> > > make: *** Waiting for unfinished jobs....
> > > <stdin>:1:10: fatal error: libelf.h: No such file or directory
> > You also need libelf.
> I will install libelf-dev as well thanks.
> Greg, now make complains it requires 'flex' ?
Yes, please install that.
More information about the Kernelnewbies