LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 04:30 AM   #1
Santoshkb
Member
 
Registered: Sep 2007
Posts: 56

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 04:30 AM. Reason: .
 
Old 04-30-2018, 05:37 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

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

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, 11:31 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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



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 08: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 02:43 AM
LXer: Arch BSD: Arch Linux Atop The FreeBSD Kernel LXer Syndicated Linux News 0 01-24-2013 03:20 PM
Error while building linux kernel 2.6.32 code for HTC G2 samanthapudi Linux - Kernel 0 01-27-2011 05:12 AM

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

All times are GMT -5. The time now is 11:01 PM.

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