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.

Cross compiling perf for DM814x

Hi,


How to cross compile perf for DM814x?. Any one help me to fix this issue?

When I cross compile with below command it shows error

make LDFLAGS=-static ARCH=arm CROSS_COMPILE=<PATH_TO_CC>/CodeSourcery/Sourcery_G++_Lite_arm_2009q1-203/bin/arm-none-linux-gnueabi- EXTRA_CFLAGS+=<PATH_TO_EZSDK>/ezsdk_c6a811x-evm_5_05_01_10/linux-devkit/arm-none-linux-gnueabi/usr/include

Error:

Makefile:513: 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:544: *** No gnu/libc-version.h found, please install glibc-dev[el]/glibc-static.  Stop.

BR/-

Nihad

  • Moving this to the DM814X forum.
  • Hello,

    You could try to disable the dwarf support or install a new elfutils.
    Or you could try to set elfutils include path in EXTRA_CFLAGS for dwarf support.

    You could try to search in the net for more information.

    BR
    Margarita
  • Hi,

    I have tried almost everything from Internet to fix the issue, but still there is error.
    I have cross compiled and installed elfutils under CodeSourcery/Sourcery_G++_Lite_arm_2009q1-203/arm-none-linux-gnueabi/libc/usr,
    But I am getting below error

    ezsdk_c6a811x-evm_5_05_01_10/board-support/linux-2.6.37-psp04.07.00.02/tools/perf$ make LDFLAGS=-static ARCH=arm CROSS_COMPILE=/home/abdulnihad/CodeSourcery/Sourcery_G++_Lite_arm_2009q1-203/bin/arm-none-linux-gnueabi-
    Makefile:522: /home/abdulnihad/CodeSourcery/Sourcery_G++_Lite_arm_2009q1-203/bin/../arm-none-linux-gnueabi/libc
    Makefile:523: -I/home/abdulnihad/CodeSourcery/Sourcery_G++_Lite_arm_2009q1-203/bin/../arm-none-linux-gnueabi/libc/usr/include
    Makefile:530: 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:563: *** No libelf.h/libelf found, please install libelf-dev/elfutils-libelf-devel. Stop.
    abdulnihad@nidLinuxVaio:~/myWork/panasonic/RSB/ezsdk_c6a811x-evm_5_05_01_10/board-support/linux-2.6.37-psp04.07.00.02/tools/perf$

    Below Error got when I added EXTRA_CFLAGS
    ---------------------------------------------------------
    ezsdk_c6a811x-evm_5_05_01_10/board-support/linux-2.6.37-psp04.07.00.02/tools/perf$ make LDFLAGS=-static ARCH=arm CROSS_COMPILE=/home/abdulnihad/CodeSourcery/Sourcery_G++_Lite_arm_2009q1-203/bin/arm-none-linux-gnueabi- EXTRA_CFLAGS+=/home/abdulnihad/CodeSourcery/Sourcery_G++_Lite_arm_2009q1-203/arm-none-linux-gnueabi/libc/usr/include/
    Makefile:522: /home/abdulnihad/CodeSourcery/Sourcery_G++_Lite_arm_2009q1-203/bin/../arm-none-linux-gnueabi/libc
    Makefile:523: -I/home/abdulnihad/CodeSourcery/Sourcery_G++_Lite_arm_2009q1-203/bin/../arm-none-linux-gnueabi/libc/usr/include
    Makefile:530: 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:561: *** No gnu/libc-version.h found, please install glibc-dev[el]/glibc-static. Stop.
    abdulnihad@nidLinuxVaio:~/myWork/panasonic/RSB/ezsdk_c6a811x-evm_5_05_01_10/board-support/linux-2.6.37-psp04.07.00.02/tools/perf$

    BR/-
    Nihad