LinuxQuestions.org
Register a domain and help support LQ
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: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,923

Rep: Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587
'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


All times are GMT -5. The time now is 06:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration