From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 06921C433EF for ; Thu, 24 Feb 2022 10:41:06 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1nNBYG-0003Lm-CW; Thu, 24 Feb 2022 05:40:48 -0500 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1nNBYE-0003LZ-4G for kernelnewbies@kernelnewbies.org; Thu, 24 Feb 2022 05:40:46 -0500 Received: by mail-ej1-x632.google.com with SMTP id qx21so3302671ejb.13 for ; Thu, 24 Feb 2022 02:40:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=erqjTZoI3CW1rYQDEwQUaQd6aPs1YwK+41wBoS+hZhY=; b=oAtiyctR2hwqEd+YkhRlYeehGNe09AI17LURldSfvdm8vgAz9vjhiuN7ipcXqYirws EL8ysmTceZ+RKFzzPAB5D7T7dq1Tj7/TTuFVmNmhNYt/KyLoUzwNyK0iNSpgMFCygT/D lEDjwaGJ8FNA6bcU8cdE1KFGL7heLXT0eKT87909W/obGKAJGHz0yxS1eq5RER9igMS+ jD1fpWtwfotgo3uzyp8ZmUfsUAtFlRSZMZXJhQ+TAKAJdlCYsLdISRvG3IGGY7m4RptH nY56D0cI32sbSSL/G135mAW/1M5bA59W9ADiu7KrigU/2dk7nDA6iOtSBzVUu20spbpk JkNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=erqjTZoI3CW1rYQDEwQUaQd6aPs1YwK+41wBoS+hZhY=; b=EUVVrPtzTUsgwqcFjwZpBP5+ajJ7YzT+EvR77swzlH/Jravn06LLrgr/dEGqZaG00k BBEPuW9vGqrf5YW9sC54/AK5mmNAFHujPdCdGjZ4dPbLWT/t+Jb25xBsgefVTMKG4jAY Swna4R+wwV+h80Kcp49gwkU8ioCYqwKZi6mjO4RULqVjW8XAnK/NYSucV2LWGVFPrF9G fns26FLv1lOh3o0DEFEBPoKcpWgFTfLJZBctdaCvKIjpHr7N678jYlyFJq3QVmHUMJT7 pWzbzKSDKtAbNpMHrfzr9QHydBe9l6lVToE6na2oOytMN5p8UWaeUriZfrkPVpfc/819 XCog== X-Gm-Message-State: AOAM530f1/qYHZeMHe48zo+3eEzwcQLxpGTjwJXPvgJkoCeUpx1q+j8k Ft2ShaRL+mn6yK4hlkzyKJi1GfRT9+5d9Pk41wA8DwO/Flh6KQ== X-Google-Smtp-Source: ABdhPJxxJohC1kq0iqXuc13z7dFglJIlcWKCXHihqkFpf893zwiMp2UraYIh435iuNTPsdWpaDiU9wtKOeMwvIilYBw= X-Received: by 2002:a17:907:1245:b0:6cc:e663:7baa with SMTP id wc5-20020a170907124500b006cce6637baamr1706207ejb.447.1645699244252; Thu, 24 Feb 2022 02:40:44 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Aruna Hewapathirane Date: Thu, 24 Feb 2022 05:40:33 -0500 Message-ID: Subject: Re: make menuconfig and make j$(nproc) throwing errors To: Greg KH Cc: kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============7279105769520656662==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============7279105769520656662== Content-Type: multipart/alternative; boundary="000000000000dc61e605d8c13651" --000000000000dc61e605d8c13651 Content-Type: text/plain; charset="UTF-8" On Thu, Feb 24, 2022 at 1:46 AM Greg KH 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@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[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.... > > :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' ? aruna@debian:/media/aruna/linux-next/home/linux-5.16.10$ make -j$(nproc) DESCEND objtool HOSTCC scripts/genksyms/parse.tab.o LEX scripts/genksyms/lex.lex.c /bin/sh: 1: flex: not found make[2]: *** [scripts/Makefile.host:9: scripts/genksyms/lex.lex.c] Error 127 make[2]: *** Waiting for unfinished jobs.... HOSTCC scripts/extract-cert make[1]: *** [scripts/Makefile.build:549: scripts/genksyms] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:1181: scripts] Error 2 In the early days we used to sudo apt-get install build-essential and be done with it. I guess a lot has changed since then. Maybe someone should update the 'what tools do I need' section in https://kernelnewbies.org/KernelBuild ? Does anyone have a fix for make menuconfig error below please ? aruna@debian:/media/aruna/linux-next/home/linux-5.16.10$ make menuconfig HOSTLD scripts/kconfig/mconf /usr/bin/ld: scripts/kconfig/confdata.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE At some point am going to need menuconfig to work again so anyone else ever had this problem ? If you did 'how' did you resolve ? Thanks - Aruna > > thanks, > > greg k-h --000000000000dc61e605d8c13651 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Feb 24, 2022 at 1:46 AM Greg KH <greg@kroah.com> wrote:
>
> On Wed, F= eb 23, 2022 at 10:58:45PM -0500, Aruna Hewapathirane wrote:
> > An= d 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@= debian:/media/aruna/linux-next/home/linux-5.16.10$ make -j$(nproc)
> = > =C2=A0 DESCEND objtool
> > =C2=A0 HOSTCC =C2=A0scripts/asn1_c= ompiler
> > =C2=A0 YACC =C2=A0 =C2=A0scripts/genksyms/parse.tab.[c= h]
> > /bin/sh: 1: bison: not found
>
> You need = bison to build the kernel, sorry, please install it.
Oh my, you a= ctually went through that mess ? I will do so thank you.
>
= > > 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.
I will install libelf-dev as well thanks.

Gr= eg, now make complains it requires 'flex' ?

aruna@debian:/media/aruna/linux-next/home/linux-5.16.10$ make -j$(np= roc)
=C2=A0 DESCEND objtool
=C2=A0 HOSTCC =C2=A0scripts/genksyms/pars= e.tab.o
=C2=A0 LEX =C2=A0 =C2=A0 scripts/genksyms/lex.lex.c
/bin/sh: = 1: flex: not found
make[2]: *** [scripts/Makefile.host:9: scripts/genksy= ms/lex.lex.c] Error 127
make[2]: *** Waiting for unfinished jobs....
= =C2=A0 HOSTCC =C2=A0scripts/extract-cert
make[1]: *** [scripts/Makefile.= build:549: scripts/genksyms] Error 2
make[1]: *** Waiting for unfinished= jobs....
make: *** [Makefile:1181: scripts] Error 2

<= /div>
In the early days we used to sudo apt-get install build-essential= and be done with it.
I guess a lot has changed since then. Maybe= someone should update the 'what tools
do I need' section= in https://kernelnewbies= .org/KernelBuild ?

Does anyone have a fix= for make menuconfig error below please ?
aruna@debian:/media/aru= na/linux-next/home/linux-5.16.10$ make menuconfig
=C2=A0 HOSTLD =C2=A0sc= ripts/kconfig/mconf
/usr/bin/ld: scripts/kconfig/confdata.o: relocation = R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE = object; recompile with -fPIE

At some point am = going to need menuconfig to work again so anyone else ever
had th= is problem ? If you did 'how' did you resolve ?=C2=A0

Thanks - Aruna

>
> thanks= ,
>
> greg k-h
--000000000000dc61e605d8c13651-- --===============7279105769520656662== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============7279105769520656662==--