Search code examples
linuxmakefilelinux-device-driverembedded-linuxyocto

Compiling module using SDK throws warning message: libelf-dev not found


We have customized intel core-i7-64 machine and we developed Yocto image and SDK for the hardware.

After sourcing the environment script and running make modules_prepare, I get the following warning:

Makefile:956: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"

The same error happens when I compile out of tree modules. How can I remove this error? What all packages should we need to add to avoid this.


Solution

  • Install libelf-dev and elfutils package. If you are using Ubuntu or any Debian variant then use the following command to install them.

    sudo apt install libelf-dev