This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I am encountering some problems regarding the cross compilation of the 'perf' tool that comes with the 'ti-sdk-beagleboard-05.05.01.00-Linux-x86-Install' BeagleBoard EVM SDK package. I am no expert in cross compiling.
Following the instructions in the user guide, I export the path
export PATH="<path to sdk>/linux-devkit/bin:$PATH"
and source the environment variables
source <path to sdk>/linux-devkit/environment-setup
When trying to make the perf tool (found in <path to sdk>/board-support//linux-3.3.7-r115/tools/perf/ ) using:
make ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- distclean
make ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-
The error is:
Makefile:417: 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:434: *** No libelf.h/libelf found, please install libelf-dev/elfutils-libelf-devel. Stop.
Fixed it by adding
EXTRA_CFLAGS+= <path to sdk>/linux-devkit/arm-arago-linux-gnueabi/usr/include
Then another error arises like:
Makefile:482: *** No gnu/libc-version.h found, please install glibc-dev[el]/glibc-static. Stop.
After searching for the libc-version.h, it is located on the toolchain at (<path to sdk>/linux-devkit/arm-arago-linux-gnueabi/usr/include/gnu/libc-version.h) I know I have glibc installed on the host as there is also libc-version.h at /usr/include/gnu/.
Is there any way to fix this? I also tried using the Angstrom toolchain, having the same results.
When I compile with the native gcc it does not produce any errors.
Thanks for any help provided
Luis