[poky] /usr/lib/libz.so: could not read symbols: File in wrong format
Richard Purdie
richard.purdie at linuxfoundation.org
Thu Mar 1 03:43:09 PST 2012
On Thu, 2012-03-01 at 16:06 +0530, sonu vishwakarma wrote:
> Hi ,
>
>
> I am building poky working on bernard branch on Ubuntu 10.10 ,64 bit
> host.
> I get the error in do_compile in xbmc-10.1 something like this :
>
>
> ***************************************
> | /usr/lib/libz.so: could not read symbols: File in wrong format
> | collect2: ld returned 1 exit status
> | make[4]: *** [libid3tag.la] Error 1
> | make[4]: Leaving directory
> `/home/poky_xbmc_01Dec2011/build/tmp/work/atom-poky-linux/xbmc-10.1-r0/confluence-10.1/xbmc/lib/libid3tag/libid3tag'
> | make[3]: *** [all-recursive] Error 1
> | make[3]: Leaving directory
> `/home/poky_xbmc_01Dec2011/build/tmp/work/atom-poky-linux/xbmc-10.1-r0/confluence-10.1/xbmc/lib/libid3tag/libid3tag'
> | make[2]: *** [all] Error 2
> | make[2]: Leaving directory
> `/home/poky_xbmc_01Dec2011/build/tmp/work/atom-poky-linux/xbmc-10.1-r0/confluence-10.1/xbmc/lib/libid3tag/libid3tag'
> | make[1]: *** [libid3tag/.libs/libid3tag.so] Error 2
> | make[1]: Leaving directory
> `/home/poky_xbmc_01Dec2011/build/tmp/work/atom-poky-linux/xbmc-10.1-r0/confluence-10.1/xbmc/lib/libid3tag'
> | make: *** [libid3tag] Error 2
> | FATAL: oe_runmake failed
> | ERROR: Function 'do_compile' failed
> **************************************
>
>
> When i tried this build on 32bit host it worked fine , so is there any
> option to enable this for 64bit host.
> I'm attaching the error log for reference.
It should be referencing the libz in the sysroot, not the one from the
host system. This probably means its using the wrong linker (ld). You
need to ensure it uses the correct linker (the cross one from the
sysroot, not /usr/bin/ld).
Cheers,
Richard
More information about the poky
mailing list