Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y

libelf-dev
how to install libelf-dev libelf-devel or elfutils-libelf-devel
linux libelf

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 !

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

Linux kernel 4.14.12 requires "libelf-dev". · Issue #141 · ivandavidov , Makefile:942: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-​libelf-devel". "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop.

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

#886510, Hello everyone ! 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  Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y #621. Closed idnovic opened this issue Feb 24, 2018 · 1 comment Closed Cannot

For me I had to install elfutils-devel first then install eflutils and eflutils-libelf-devel. libelf-dev and libelf-devel could not be found but when I ran /sbin/vboxconfig again this time it did not error out. I ran the check, "systemctl status vboxdrv" and this time it showed Active: as Active (exited) and I was able to spin up the VM.

Problem building Virtualbox modules on Centos (cannot generate , Subject: Re: Bug#886510: Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or  Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y. Are the linux header files installed for the wanted kernel? This would be linux415-headers. Also that kernel series is tagged as end of life since weeks now. Also if you use the unstable branch, all extramodules building is broken due to updates of gcc. All our kernels need to be compiled with the new toolchain, which might happen it two weeks or so.

Alpine 3.8.0: Installing app, getting error: "Cannot generate ORC , in submake: disabling jobserver mode. Makefile:958: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install  aliceinwire commented on Jan 18, 2018. New 4.14 kernel is using CONFIG_UNWINDER_ORC=y by default. but having USE="minimal" is removing virtual/libelf, this is breaking the Kernel compilation. Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y. Loading status checks…. 252155a.

Bug#886510: Cannot generate ORC metadata for , I was building a kernel module and got the same error message ( Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y ). Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y New 4.14 kernel is using CONFIG_UNWINDER_ORC=y by default but having USE="minimal" is removing virtual/libelf, this is breaking the Kernel compilation.

Cannot install nvidia driver, Bug#886510: Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y​, please install libelf-dev, libelf-devel or elfutils-libelf-devel  The most recent stable kernel has new build dependency. Makefile:942: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". The issue has been discussed here. The kernel build process can be fixed by installing libelf-dev like this (Ubuntu): sudo apt install libelf-dev.

Comments
  • crossposted: forum.manjaro.org/t/…
  • this doesn't apply to the OP's question (manjaro != fedora), however I experienced the same thing on Fedora 29
  • For CentOS7, this was: elfutils-devel
  • worked for my centos.