[MPlayer-dev-eng] FW: Link error - Relocations in generic ELF (EM: 3)

Siarhei Siamashka siarhei.siamashka at gmail.com
Tue Jun 5 23:38:23 CEST 2007


On Tuesday 05 June 2007 05:58, Shapiro, Alex (OTTAWA) wrote:
> I have a link error with my released version of mplayer package. At the
> end of compilation with (my arm toolchain) "ccache
> arm-wrs-linux-gnueabi-armv5tel-glibc_small-gcc", the link start, and
> immediately failed with the following error:

[...]

> /home/dsodemo/WindRiver/gnu/3.4.4-wrlinux-1.5/x86-linux2/bin/../lib/gcc/
> arm-wrs-linux-gnueabi/3.4.4/../../../../arm-wrs-linux-gnueabi/bin/ld:
> libmpdemux/libmpdemux.a(demux_rtp.o): Relocations in generic ELF (EM: 3)
> /home/dsodemo/WindRiver/gnu/3.4.4-wrlinux-1.5/x86-linux2/bin/../lib/gcc/
> arm-wrs-linux-gnueabi/3.4.4/../../../../arm-wrs-linux-gnueabi/bin/ld:
> libmpdemux/libmpdemux.a(demux_rtp.o): Relocations in generic ELF (EM: 3)
> libmpdemux/libmpdemux.a: could not read symbols: File in wrong format
> collect2: ld returned 1 exit status
> make[1]: *** [mplayer] Error 1
> make[1]: Leaving directory
> `/home/dsodemo/WindRiver/workspace/Nokia-770-LX1.5-Platform_prj/build/mp
> layer-checkout-2007-06-01'
> make: *** [mplayer.compile] Error 2
> [dsodemo at WindRiverVM build]$

Can you check if your *.a files are compiled for ARM architecture
(using 'readelf -h somefile.a'). Maybe you tried to compile the same
sources for x86 before and have some stale *.a files remaining?

Anyway, I would suggest you to try a fresh mplayer SVN checkout first. I 
did not have any troubles building it with ARM crosscompiler a few weeks
ago. Also a patch with your local modifications (are so many changes
really needed?) would be much easier to analyze instead of a handful
of files you have attached.



More information about the MPlayer-dev-eng mailing list