Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y

I’m big enthusiast of Manjaro since 2015 but today I got a problem that I couldn’t resolve on my own. After big updates done few days ago (by update manager) I have a problem with compiling Kernel Drivers on kernel 4.15.18-1. After call make I got error:

make -C /usr/lib/modules/4.15.18-1-MANJARO/build M=/run/media/mati/common/hello_world modules
make[1]: Wejście do katalogu '/usr/lib/modules/4.15.18-1-MANJARO/build'
**Makefile:974: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop.**
make[1]: Opuszczenie katalogu '/usr/lib/modules/4.15.18-1-MANJARO/build'
make: *** [Makefile:4: all] Błąd 2

The problem is that I cannot install mentioned libraries and command: pacman -Q libelf returns libelf 0.170-1

i have no idea what happend, I tried another kernels (I have few versions installed) but each has problems (e.g. the newest, experimental 4.17 has problem with asm goto of gcc compiler). I started learning Linux Kernel Drivers programming but now I can’t learn because of these compilation problems … anyone can help me ?

(Hope my english is understanable).

Greetings !

like image 947
user2807536 Avatar asked May 12 '18 18:05

user2807536


2 Answers

I got this error while setting up VirtualBox in my Fedora OS 29, I issued the following command and this issue got resolved.

sudo dnf install elfutils-libelf-devel
like image 181
balatamilmani Avatar answered Sep 23 '22 02:09

balatamilmani


Are you able to install these packages on your system?

elfutils
elfutils-libelf-devel
libelf-dev
libelf-devel 

May require dependencies such as: zlib-devel

like image 32
bc1984adam Avatar answered Sep 24 '22 02:09

bc1984adam