How to compile elfutils for x86 based platforms ?

elfutils is a collection of utilities and libraries to read, create and modify ELF binary files, find and handle DWARF debug data, symbols, thread state and stacktraces for processes and core files on GNU/Linux. [ Also READ : What is the difference between elfutils and binutils ? ]

Note: During the compilation of elfutils, 0.176 was the the last known version. Almost all commands remains same for other versions as well.


If you are trying to compile elfutils on freshly installed ubuntu, you may need to install “m4” as,

 $ sudo apt-get install m4 

Download the stable release code as below,

$ wget -c 
$ tar xvf elfutils-0.176.tar.bz2 
$ cd elfutils-0.169 
$ mkdir out 
 $ ./configure --prefix=$PWD/out 
 $ make 
 $ make install 

Above command will install all the required libraries and binaries at out folder in current directory. You can change the location as you want using –prefix as mentioned above.

$ tree out/
├── bin
│   ├── eu-addr2line
│   ├── eu-ar
│   ├── eu-elfcmp
│   ├── eu-elfcompress
│   ├── eu-elflint
│   ├── eu-findtextrel
│   ├── eu-make-debug-archive
│   ├── eu-nm
│   ├── eu-objdump
│   ├── eu-ranlib
│   ├── eu-readelf
│   ├── eu-size
│   ├── eu-stack
│   ├── eu-strings
│   ├── eu-strip
│   └── eu-unstrip

If you want to try the current under development code at git, you can try below procedure, but it may or may not work, since its development source

The current elfutils source code can be checked out with:

 $ git clone git:// 
 $ cd elfutils 
 automake -a 

This will generate the “configure” script which we can use to configure and create makefiles as,


In the next post we will describe the details of how to cross compile the elfutils for ARM.

Android Android Commands Android Java Applications Application Libraries Application Stack / User Interface Bash / Shell Scripts Commands and Packages Compilation Content Management System - CMS Core Kernel C Programs Development & Build Development Environment Setup Errors & Failures Flutter git Go Language Programs Hardware Platforms HTML JAVA Programs Kernel & Device Drivers Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Monetization / Google AdSense NDK / Middleware / HAL OS Concepts PHP Programming Languages RaspberryPi Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Socurce Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized User Interface Userspace Utilities Web design and development Wordpress Yocto / Bitbake / Openembedded


  1. nanxiongchao May 22, 2019
    • lynxbeedev May 22, 2019

Leave a Reply / Ask Question