LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-09-2021, 12:44 AM   #1
MaherFakhour
LQ Newbie
 
Registered: Oct 2021
Posts: 1

Rep: Reputation: Disabled
Recompiling Linux Kernel


Hello,

I've installed the linux kernel(linux-5.14.9) on kali and unzipped the file, but when I try to configure the kernel with the command "make menuconfig" in the source code directory, I have the following error:

Quote:
root@kali:~/kernel/linux-5.14.9# make menuconfig
YACC scripts/kconfig/parser.tab.[ch]
bison: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by bison)
make[1]: *** [scripts/Makefile.host:17: scripts/kconfig/parser.tab.h] Error 1
make: *** [Makefile:630: menuconfig] Error 2
what should I do ?
 
Old 10-09-2021, 12:57 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by MaherFakhour View Post
Hello,

I've installed the linux kernel(linux-5.14.9) on kali and unzipped the file, but when I try to configure the kernel with the command "make menuconfig" in the source code directory, I have the following error:
Quote:
root@kali:~/kernel/linux-5.14.9# make menuconfig
YACC scripts/kconfig/parser.tab.[ch]
bison: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by bison)
make[1]: *** [scripts/Makefile.host:17: scripts/kconfig/parser.tab.h] Error 1
make: *** [Makefile:630: menuconfig] Error 2
what should I do ?
It's telling you what the problem is:
Quote:
version `GLIBC_2.32' not found
You could start by checking out which version is actually installed.

I also cannot condone doing advanced compiling on Kali Linux. That simply isn't the purpose of this distro, possibly even defeats its purpose. You should check their docs & community, maybe they have sth to say about it.
 
Old 10-09-2021, 02:41 AM   #3
GentleThotSeaMonkey
Member
 
Registered: Dec 2016
Posts: 338
Blog Entries: 4

Rep: Reputation: 128Reputation: 128
I'm trying to learn here.... (relevant links to 'libc6 for n00bs' welcome)
Is the issue that: there's a newer ('wrong/mismatch') version of bison (that req 2.32)?

For example, (from DistroWatch) Debian unstable sid has glibc 2.32 & bison 2:3.8.2
&my MX 19.4 has
Code:
$ ldd --version
ldd (Debian GLIBC 2.28-10) 2.28
$ bison --version
bison (GNU Bison) 3.3.2
Hint to OP: do those 2 cmds (AND explain what&how you added pkgs; this?)

Last edited by GentleThotSeaMonkey; 10-09-2021 at 02:44 AM.
 
Old 10-09-2021, 05:08 PM   #4
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Kali is NOT a development distro.
Learning is great, use a tool designed for that purpose.

There are many different distros and most make it possible to obtain and compile software, including kernels.

A specialized distro that is designed for security testing is really not the best tool for learning how to compile software.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting "kernel panic" after recompiling kernel sumix Linux - Kernel 8 03-04-2010 06:21 AM
difference between kernel recompiling and kernel rebuilding vineet7kumar Linux - General 1 09-27-2007 01:35 AM
kernel modules when recompiling kernel prozac Linux - General 8 04-13-2006 06:17 AM
Increasing Kernel stack size to 8k without recompiling the Kernel deathman Linux - Software 2 04-08-2006 04:39 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration