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
|