Anyone tried to compile the perf tool on DigiEL 5.7 environment?
I tried following from directory /usr/local/DigiEL-5.7/kernel/linux-2.6.35/tools/perf$ , but getting errors:
export PATH=/usr/local/DigiEL-5.7/x-tools/arm-unknown-linux-uclibcgnueabi/bin:$PATH
export CROSS_COMPILE=arm-linux-
make ARCH=arm
The error is:
Makefile:512: No libdw.h found or old libdw.h found or elfutils is older than 0.138, disables dwarf support. Please install new elfutils-devel/libdw-dev
Makefile:548: *** No libelf.h/libelf found, please install libelf-dev/elfutils-libelf-devel and glibc-dev[el]. Stop.
I can see that libelf.h/libelf are present in the following path:
./x-tools/arm-unknown-linux-uclibcgnueabi/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/libelf
./x-tools/arm-unknown-linux-uclibcgnueabi/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/libelf/libelf.h
even if i give sysroot path in the make command getting the same error.