Hi Ken,

On Fri, Feb 15, 2008 at 01:43:16PM +0000, Ken Moffat wrote:
> On Wed, Feb 13, 2008 at 11:18:32AM +0100, Philippe De Muyter wrote:
> > Hi all
> > 
> > In the book 'Development CLFS (SVN)' for PowerPC, IV. Building the Basic 
> > Tools,
> > 6. Constructing a Temporary System / Binutils-2.18
> > 
> > The compilation fails with :
> > 
> > /archives/meip/clfs-svn-ppc-chroot-vanilla/sources/binutils-build/libiberty/pic
> >  
> > -liberty  -Wl,-soname -Wl,libbfd-2.18.0.so -o .libs/libbfd-2.18.0.so
> > libtool: link: (cd ".libs" && rm -f "libbfd.so" && ln -s "libbfd-2.18.0.so" 
> > "lib
> > bfd.so")
> > libtool: link: powerpc-unknown-linux-gnu-ar cru .libs/libbfd.a  archive.o 
> > archur
> > es.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 
> > 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: 
> > /archives/meip/clfs-svn-ppc-chroot-vanilla/sources/binutils-build/./bfd/.libs/libbfd-2.18.0.so:
> >  ELF file data encoding not little-endian
> > 
> > I surmise that powerpc-unknown-linux-gnu-ar finds in its search patch a 
> > newly
> > built library for powerpc while searching for its own x86-library.
> > I don't know how to solve that search-path problem, but an easy workaround
> > is to have powerpc-unknown-linux-gnu-ar linked statically in the previous
> > phase.
> > 
[...]
> 
>  I'm by no means a toolchain expert, but I think your diagnosis is
> unlikely.  The instructions in the book work for me.  Thanks for the
> patch, but I'm not minded to apply it unless the problem is widely
> seen and cannot be attributed to operator error.  I know people have
> said they have had problems with ppc at various times, so I'm
> keeping an open mind - it might even be a libtool problem, which
> version is on your host ?

I am on a x86 (not x86_64) host, running OpenSuse 10.3,
including :

        gcc version 4.2.1 (SUSE Linux)

I built the clfs system the day I wrote the mail, using the latest svn version
of clfs-development and the latest jhalfs-svn version (with a fix to jhalfs
to use the linux tarball for linux-headers).

Could the x86 vs x86_64 make a difference ?

Best regards

Philippe
_______________________________________________
Clfs-dev mailing list
[email protected]
http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org

Reply via email to