LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem in compiling oprofile for arm (https://www.linuxquestions.org/questions/linux-software-2/problem-in-compiling-oprofile-for-arm-733515/)

namit2010 06-17-2009 12:37 AM

problem in compiling oprofile for arm
 
Hi All,

from past two day I was struggling to resolve a compilation problem which comes across compiling of oprofiler for arm
for compilation steps I followed are

- configuration

CC=arm_v6_vfp_le-gcc CXX=arm_v6_vfp_le-g++ ./configure -target=arm-linux --with-extra-libs=/opt/arm_v6_vfp_le/lib/ --with-extra-includes=/opt/arm_v6_vfp_le/include/

after configuration while making it gives error


/opt/arm_v6_vfp_le/bin/../lib/gcc/armv6fl-montavista-linux-gnueabi/4.2.0/../../../../armv6fl-montavista-linux-gnueabi/bin/ld: /opt/arm_v6_vfp_le/lib/libbfd.a(bfd.o): Relocations in generic ELF (EM: 3)
/opt/arm_v6_vfp_le/bin/../lib/gcc/armv6fl-montavista-linux-gnueabi/4.2.0/../../../../armv6fl-montavista-linux-gnueabi/bin/ld: /opt/arm_v6_vfp_le/lib/libbfd.a(bfd.o): Relocations in generic ELF (EM: 3)
/opt/arm_v6_vfp_le/bin/../lib/gcc/armv6fl-montavista-linux-gnueabi/4.2.0/../../../../armv6fl-montavista-linux-gnueabi/bin/ld: /opt/arm_v6_vfp_le/lib/libbfd.a(bfd.o): Relocations in generic ELF (EM: 3)
/opt/arm_v6_vfp_le/bin/../lib/gcc/armv6fl-montavista-linux-gnueabi/4.2.0/../../../../armv6fl-montavista-linux-gnueabi/bin/ld: /opt/arm_v6_vfp_le/lib/libbfd.a(bfd.o): Relocations in generic ELF (EM: 3)
/opt/arm_v6_vfp_le/bin/../lib/gcc/armv6fl-montavista-linux-gnueabi/4.2.0/../../../../armv6fl-montavista-linux-gnueabi/bin/ld: /opt/arm_v6_vfp_le/lib/libbfd.a(bfd.o): Relocations in generic ELF (EM: 3)
/opt/arm_v6_vfp_le/bin/../lib/gcc/armv6fl-montavista-linux-gnueabi/4.2.0/../../../../armv6fl-montavista-linux-gnueabi/bin/ld: /opt/arm_v6_vfp_le/lib/libbfd.a(bfd.o): Relocations in generic ELF (EM: 3)
/opt/arm_v6_vfp_le/bin/../lib/gcc/armv6fl-montavista-linux-gnueabi/4.2.0/../../../../armv6fl-montavista-linux-gnueabi/bin/ld: /opt/arm_v6_vfp_le/lib/libbfd.a(bfd.o): Relocations in generic ELF (EM: 3)
/opt/arm_v6_vfp_le/bin/../lib/gcc/armv6fl-montavista-linux-gnueabi/4.2.0/../../../../armv6fl-montavista-linux-gnueabi/bin/ld: /opt/arm_v6_vfp_le/lib/libbfd.a(bfd.o): Relocations in generic ELF (EM: 3)
/opt/arm_v6_vfp_le/lib/libbfd.a: could not read symbols: File in wrong format

i have compiled bin utils for arm again and change libbfd but result was as it is
please help me if any one have idea

Thanks in advance

Regards,
Namit Gupta

knudfl 06-18-2009 12:16 PM

'oprofile' requires 'libbfd.so' , which means that
binutils must be configured with ' --enable-shared '
to create libbfd.so -> libbfd-2.xx.xx.x.so

May be, you already have a libbfd-2.xx.xx.x.so in
your "arm tool chain" ( cross compiler ) and the
link libbfd.so is missing ? ?

Example package 'libbfd-dev' for arm :
http://packages.debian.org/en/etch/a...s-dev/filelist
http://packages.debian.org/en/etch/binutils-dev

Other LQ threads about libbfd / oprofile
http://www.linuxquestions.org/questi...ghlight=libbfd

http://www.linuxquestions.org/questi...archid=3318705
.....
Good luck !
.....


All times are GMT -5. The time now is 12:20 AM.