LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-30-2018, 05:30 AM   #1
Santoshkb
Member
 
Registered: Sep 2007
Posts: 50

Rep: Reputation: 15
Dependencies error - Building Linux Kernel on Arch Linux- Need help


While doing a make of linux kernel for 4.15.10 on arch Linux which is running 4.12.8-1-ARCH.
Getting below packages are missing, when trying to install there is no packages by that name.


root@osboxes linux-stable]# make -j4
Makefile:938: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop.

could not find any of 3 packages.

From arch repo found and Installed "pacman -Syy libelf". however when i query list packages dont see the libelf.
and make fails.

PS: Arch Linux is running in Virtual Box.

Last edited by Santoshkb; 04-30-2018 at 05:30 AM. Reason: .
 
Old 04-30-2018, 06:37 AM   #2
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX
Posts: 2,468
Blog Entries: 6

Rep: Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187
Try looking under elfutils. I have that on Crux and it includes libelf.
 
Old 05-02-2018, 01:05 PM   #3
Santoshkb
Member
 
Registered: Sep 2007
Posts: 50

Original Poster
Rep: Reputation: 15
Could you suggest way to update all the packages and install development packages/tools which will enable for kernel compilation?


My Arch Linux is running 4.12.8-1-ARCH kernel , which is latest (month). Please note this is virtual Box image.


On this was building 4.15.10,

1 picked the current kernel config from /proc/config.gz
2. $[linux_src/] cp config .config
3. $[linux_src/] make defconfig
4. sudo pacman -Syy gnome-common yelp-tools intltool cvs docbook-xsl js185 ragel gperf ruby xorg-util-macros xf86-input-wacom base-devel openssh gtk-doc python2-dbus glib2-docs cmake

5. if i run: make defconfig

[root@osboxes linux-stable]# make defconfig
HOSTCC scripts/basic/fixdep
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.1/cc1: error while loading shared libraries: libmpfr.so.6: cannot open shared object file: No such file or directory
make[1]: *** [scripts/Makefile.host:90: scripts/basic/fixdep] Error 1
make: *** [Makefile:461: scripts_basic] Error 2

[root@osboxes linux-stable]# find / -iname "libmpfr.so.*"
/usr/lib/libmpfr.so.4.1.5
/usr/lib/libmpfr.so.4

It seems need to update packages...
 
Old 05-03-2018, 12:31 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000
I'm not sure exactly which instructions you're using, but I would run a 'make clean'. Then, pic a config file from the configs directory in the kernel sources. Debian-based systems have had trouble just grabbing the current config from /proc or /boot.

Install libmpfr6. If it isn't in the repos, then your version is too old to compile the kernel you want. After you clean up the sources, edit Makefile and change the revision to something unique, preceded by a '-'. Then run 'make oldconfig'. Then configure the kernel with make xconfig, or gconfig, or menuconfig, or plain old config if you want hours of mindless tedium. On Debian-based systems I usually build using 'make -jX deb-pkg'.

Are you using the sources from the repos?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mandocs Error while building Linux kernel 3.4.6 with Xenomai cryomick Linux - Kernel 2 03-27-2018 09:07 PM
courier-imap (running on arch linux) using mailx (also on arch linux pc) 'imap error: mailbox does not exist, or is not subscribed to' lilmike Linux - Server 1 11-10-2016 03:43 AM
LXer: Arch BSD: Arch Linux Atop The FreeBSD Kernel LXer Syndicated Linux News 0 01-24-2013 04:20 PM
Error while building linux kernel 2.6.32 code for HTC G2 samanthapudi Linux - Kernel 0 01-27-2011 06:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration