[Clfs-dev] powerpc-unknown-linux-gnu-ar libbfd-2.19.1.so: ELF file data encoding not little-endian

Jim Gifford clfs at jg555.com
Fri Feb 20 09:09:19 PST 2009


Priya Sundararajan wrote:
> Hi all,
>  I am trying to build a Cross linux system for PowerPC. I am working 
> on OpenSuse v10.3
>
> I am following instructions available at 
> http://cross-lfs.org/view/svn/ppc/temp-system/binutils.html
>
> I get the following error when trying to build Binutils-1.19.1 
> (Section 6.6) . This is how my error message looks like -
> =======================
> libtool: link: powerpc-unknown-linux-gnu-ar cru .libs/libbfd.a  
> archive.o archures.o bfd.o bfdio.o bfdwin.o cache.o coffgen.o 
> corefile.o format.o init.o libbfd.o opncls.o reloc.o section.o syms.o 
> targets.o hash.o linker.o srec.o binary.o tekhex.o ihex.o stabs.o 
> stab-syms.o merge.o dwarf2.o simple.o compress.o elf32-ppc.o 
> elf-vxworks.o elf32.o elf.o elflink.o elf-attrs.o elf-strtab.o 
> elf-eh-frame.o dwarf1.o coff-rs6000.o xcofflink.o ppcboot.o 
> elf32-gen.o cpu-rs6000.o cpu-powerpc.o
> powerpc-unknown-linux-gnu-ar: error while loading shared libraries: 
> /mnt/clfs/sources/binutils-build/./bfd/.libs/libbfd-2.19.1.so 
> <http://libbfd-2.19.1.so>: ELF file data encoding not little-endian
> make[4]: *** [libbfd.la <http://libbfd.la>] Error 127
> make[4]: Leaving directory `/mnt/clfs/sources/binutils-build/bfd'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/mnt/clfs/sources/binutils-build/bfd'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/mnt/clfs/sources/binutils-build/bfd'
> make[1]: *** [all-bfd] Error 2
> make[1]: Leaving directory `/mnt/clfs/sources/binutils-build'
> make: *** [all] Error 2
> =======================
>
> I tried CLFS 1.1.0 <http://cross-lfs.org/view/1.1.0/> and got the same 
> error there too.
>
> Any information on fixing this would be very helpful.
> Thanks and regards,
> Priya
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Clfs-dev mailing list
> Clfs-dev at lists.cross-lfs.org
> http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org
>   
We have only see this issue with OpenSuse. We could never figure out the 
cause of the issue is.
http://lists.cross-lfs.org/pipermail/clfs-dev-cross-lfs.org/2008-February/000075.html.

You can try changing the --enable-shared to --disable-shared to see if 
that works.



More information about the Clfs-dev mailing list