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 `__ctype_b"
What are the the libararies required to compile the oprofile-0.96?

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


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 -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/libintl.a(localealias.o)(.text+0x2e4): unresolvable R_ARM_MOVW_ABS_NC relocation against symbol `__ctype_b'
/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

Anyone knows the root cause for the issue?

Thanks