Hi, i'm relatively new to linux and i'm trying to do a cross-compile for a ppc. The system i'm compiling on is a 2500+ AMD running suse 10.2. (I did a clean install of suse before starting the operation) I used the clfs book: CLFS-SVN-SVN-2007-09-13
The first part went well, finished the cross-compile tools without errors, but when I started Chapter 6.3 (binutils-2.18) I got the following error: make[4]: Entering directory `/mnt/clfs/sources/binutils-build/bfd' /bin/sh ./libtool --tag=CC --mode=link powerpc-unknown-linux-gnu-gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -o libbfd.la -rpath /tools/lib -release `cat libtool-soversion` archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo coffgen.lo corefile.lo format.lo init.lo libbfd.lo opncls.lo reloc.lo section.lo syms.lo targets.lo hash.lo linker.lo srec.lo binary.lo tekhex.lo ihex.lo stabs.lo stab-syms.lo merge.lo dwarf2.lo simple.lo `cat ofiles` -L../libiberty/pic -liberty libtool: link: rm -fr .libs/libbfd-2.18.so .libs/libbfd.so libtool: link: powerpc-unknown-linux-gnu-gcc -shared .libs/archive.o .libs/archures.o .libs/bfd.o .libs/bfdio.o .libs/bfdwin.o .libs/cache.o .libs/coffgen.o .libs/corefile.o .libs/format.o .libs/init.o .libs/libbfd.o .libs/opncls.o .libs/reloc.o .libs/section.o .libs/syms.o .libs/targets.o .libs/hash.o .libs/linker.o .libs/srec.o .libs/binary.o .libs/tekhex.o .libs/ihex.o .libs/stabs.o .libs/stab-syms.o .libs/merge.o .libs/dwarf2.o .libs/simple.o .libs/elf32-ppc.o .libs/elf-vxworks.o .libs/elf32.o .libs/elf.o .libs/elflink.o .libs/elf-attrs.o .libs/elf-strtab.o .libs/elf-eh-frame.o .libs/dwarf1.o .libs/coff-rs6000.o .libs/xcofflink.o .libs/ppcboot.o .libs/elf32-gen.o .libs/cpu-rs6000.o .libs/cpu-powerpc.o -L/mnt/clfs/sources/binutils-build/libiberty/pic -liberty -Wl,-soname -Wl,libbfd-2.18.so -o .libs/libbfd-2.18.so libtool: link: (cd ".libs" && rm -f "libbfd.so" && ln -s "libbfd-2.18.so" "libbfd.so") 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 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.18.so: ELF file data encoding not little-endian make[4]: *** [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 The file is big-endian, i presume, but it wants a little-endian. Does this mean my cross-compiler is not working correctly and it then uses my system's libbfd.la somehow? I did not create a new partition, because Chapter 2.2 said: "However, if your building for a different architecture you can simply build everything in /mnt/clfs? and transfer it to your target machine." The only "error" i got was when i had to create a new user, the rest went by the book: useradd -s /bin/bash -g clfs -m -k /dev/null clfs useradd: Copying of skel directory failed. So i don't know if that maybe had something to do with my cross-compile error. I cleaned and recompiled the cross-tools 3 times and came to the same error. Can anyone comment on this? Should i rater try book1.0's cross-compiler and just build the newer Packages? Thx for the Help Want a more affordable home loan? Get it with First National Bank! Save BIG on Costs. You could Win R5000 http://www.swiftsms.co.za/swiftT/track.asp?e=*em*&cid=152&u=8&tid=1916 _______________________________________________ Clfs-support mailing list Clfs-support@lists.cross-lfs.org http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support