Hi All,

I am trying to cross compile the oprofile for ARMv7 for cortex A9.
I am facing issue while cross compiling the oprofile for target.

I am using oprofile-0.96 and compiling on ubuntu-10.10 ,target is armv7 cortex A9.

I am using linux kernel of version 2.6.34.Does this kernel support for the target Armv7 Cortex A9.
Does oprofile -0.96 will support for Arm v7 cortex A9.

When I am trying to build the oprofile for Arm v7 cortex A9 I am getting the issue like  unresolvable R_ARM_MOVW_ABS_NC relocation against symbol `stderr' and some linking error regarding ld.

What are the the libararies required to compile the oprofile-0.96?

Here I pasted the output of the error which I am getting.


libtool: compile:  arm-linux-uclibcgnueabi-gcc --sysroot /home/durga/trident_sdk/SRC/open_source_archive/linux/toolchains/gnu_cortex-a9_tools -DHAVE_CONFIG_H -I. -I.. --sysroot /home/durga/trident_sdk/SRC/open_source_archive/linux/toolchains/gnu_cortex-a9_tools -fPIC -I/home/durga/trident_sdk/SRC/target/src/sd/os/oslinux/comps/kernel/linux-2.6.34/include -I/home/durga/trident_sdk/SRC/target/src/sd/os/oslinux/comps/kernel/linux-2.6.34/arch/arm/include -I/home/durga/trident_sdk/SRC/target/src/sd/os/oslinux/comps/kernel/linux-2.6.34/arch/arm/mach-apollo/include -I/home/durga/trident_sdk/SRC/target/output/objs/pnx8473_hirf_moca-I/home/durga/work/SRC/open_source_archive/linux/toolchains/gnu_cortex-a9_tools/usr/include/ -I/home/durga/binutils/binaries/include -D__LINUX_ARM_ARCH__=7 -fPIC -I ../libop -I ../libutil --sysroot /home/durga/trident_sdk/SRC/open_source_archive/linux/toolchains/gnu_cortex-a9_tools -fPIC -I/home/durga/trident_sdk/SRC/target/src/sd/os/oslinux/comps/kernel/linux-2.6.34/include -I/home/durga/trident_sdk/SRC/target/src/sd/os/oslinux/comps/kernel/linux-2.6.34/arch/arm/include -I/home/durga/trident_sdk/SRC/target/src/sd/os/oslinux/comps/kernel/linux-2.6.34/arch/arm/mach-apollo/include -I/home/durga/trident_sdk/SRC/target/output/objs/pnx8473_hirf_moca-I/home/durga/work/SRC/open_source_archive/linux/toolchains/gnu_cortex-a9_tools/usr/include/ -I/home/durga/binutils/binaries/include/ -D__LINUX_ARM_ARCH__=7 -MT libopagent_la-opagent.lo -MD -MP -MF .deps/libopagent_la-opagent.Tpo -c opagent.c -o libopagent_la-opagent.o >/dev/null 2>&1
libtool: link: arm-linux-uclibcgnueabi-gcc --sysroot /home/durga/trident_sdk/SRC/open_source_archive/linux/toolchains/gnu_cortex-a9_tools -shared  .libs/libopagent_la-opagent.o   -L/home/durga/trident_sdk/SRC/open_source_archive/linux/toolchains/gnu_cortex-a9_tools/usr/lib -L/home/durga/binutils/binaries/lib -lbfd -liberty -ldl -lintl  -Wl,--version-script=../libopagent/opagent_symbols.ver   -Wl,-soname -Wl,libopagent.so.1 -o .libs/libopagent.so.1.0.0
/home/durga/trident_sdk/SRC/open_source_archive/linux/toolchains/gnu_cortex-a9_tools/usr/bin/../lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/bin/ld: /home/durga/trident_sdk/SRC/open_source_archive/linux/toolchains/gnu_cortex-a9_tools/usr/lib/libbfd.a(bfd.o)(.text+0x118): unresolvable R_ARM_MOVW_ABS_NC relocation against symbol `stderr'
/home/durga/trident_sdk/SRC/open_source_archive/linux/toolchains/gnu_cortex-a9_tools/usr/bin/../lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
gmake[2]: *** [libopagent.la] Error 1
gmake[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Please provide a solution to solve this problem

Regards.
Durga Prasad.