LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-17-2009, 12:37 AM   #1
namit2010
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Rep: Reputation: 0
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
 
Old 06-18-2009, 12:16 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
'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 !
.....

Last edited by knudfl; 06-18-2009 at 12:22 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cross compiling apache-2.0.54 for arm jkeertir Linux - Newbie 3 09-11-2014 01:35 PM
Compiling for embedded arm linux mvhurlburt Linux - Embedded & Single-board computer 1 06-16-2009 09:06 AM
Compiling project with threads for ARM _oligarch Programming 1 04-27-2009 04:00 PM
Error compiling 2.6.26 for ARM zahidul Linux - Kernel 0 11-04-2008 05:20 AM
Problem compiling BlueZ stack on ARM ( cross compilation from linux x86) shilpates Linux - Wireless Networking 1 08-20-2008 03:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration