LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-14-2009, 02:05 AM   #1
makphy
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Rep: Reputation: 0
collect2: ld returned 1 exit status


Hi,
I was trying to cross compile madplayer for arm platform. For this I had to cross compile zlib-1.2.3-ptx4, libid3tag 0.15.1b and libmad-0.15.1b.
zlib and libid3tag was successfully cross compiled and installed. while cross compiling libmad, it was configured successfully using the command:
./configure --prefix=/opt/madplayer CC=arm-none-linux-gnueabi-gcc --host=arm-linux

But when I gave make command, it was showing this error:

make all-recursive
make[1]: Entering directory `/usr/local/share/1/libmad-0.15.1b'
make[2]: Entering directory `/usr/local/share/1/libmad-0.15.1b'
/bin/sh ./libtool --mode=link arm-none-linux-gnueabi-gcc -Wall -g -O -fforce-mem -fforce-addr -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -fexpensive-optimizations -fregmove -fschedule-insns2 -fstrength-reduce -L/opt/madplayer/lib -o libmad.la -rpath /opt/madplayer/lib -version-info 2:1:2 version.lo fixed.lo bit.lo timer.lo stream.lo frame.lo synth.lo decoder.lo layer12.lo layer3.lo huffman.lo imdct_l_arm.lo
arm-none-linux-gnueabi-gcc -shared .libs/version.o .libs/fixed.o .libs/bit.o .libs/timer.o .libs/stream.o .libs/frame.o .libs/synth.o .libs/decoder.o .libs/layer12.o .libs/layer3.o .libs/huffman.o .libs/imdct_l_arm.o -L/opt/madplayer/lib -Wl,-soname -Wl,libmad.so.0 -o .libs/libmad.so.0.2.1
/opt/arm-none-linux-gnueabi/bin/../lib/gcc/arm-none-linux-gnueabi/4.1.1/../../../../arm-none-linux-gnueabi/bin/ld: .libs/version.o: Relocations in generic ELF (EM: 3)
/opt/arm-none-linux-gnueabi/bin/../lib/gcc/arm-none-linux-gnueabi/4.1.1/../../../../arm-none-linux-gnueabi/bin/ld: .libs/version.o: Relocations in generic ELF (EM: 3)
.libs/version.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [libmad.la] Error 1
make[2]: Leaving directory `/usr/local/share/1/libmad-0.15.1b'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/share/1/libmad-0.15.1b'
make: *** [all] Error 2

Plz guide me through this....

Thanks
 
  


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
collect2: ld returned 1 exit status kvijaik Linux - Software 2 10-07-2009 09:17 PM
collect2: ld returned 1 exit status Ritendra Linux - Newbie 2 07-30-2009 07:39 AM
ld: cannot find -lc collect2: ld returned 1 exit status ArbuZz Linux From Scratch 3 09-27-2005 12:52 AM
collect2: ld returned 1 exit status abirami Linux - Software 0 03-02-2005 01:07 AM
popa3d collect2: ld returned 1 exit status datapunk Linux - Software 1 01-02-2004 06:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:00 AM.

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