[Clfs-support] Binutils -2.20.1 and Powerpc

Peter Welles wantahorchwelles at snet.net
Sat Oct 30 10:53:02 PDT 2010


Hello to Everyone,

Using the cliche of "killing two birds with one stone", I would like to do the 
following:
1. Learn a little more about how Linux works
2. Put a linux system on a G-4 ibook. (an Apple Product)

I came across the version SVN-20100828-PowerPC, and it seemed to be a good
project to accomplish my above goals.

I have a compilation problem in chapter 6.9, where the library for the binary 
file descriptor
yelled "ouch" at not finding little endian. I went through some of the archives, 
and the solved
problems did not closely match the one I have. I could have missed it, so I 
would appreciate
it if someone could point me to the proper FAQ. Thank you.

The following information is to comply with the things to mention from the book:

My /mnt/clfs partition is a USB Flashdrive attached to a 32 bit Pentium4 Desktop 
Machine
that is using OpenSUSE 11.3 with kernel 2.6.34.7-0.4-default i686. For what it's 
worth,
it is more KDE than Gnome.

I tried to not deviate from the book. ( I did a chmod to get a patch to work in 
ncurses.)

Here is the last part of the make command out-put:

la -rpath /tools/lib 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 compress.lo verilog.lo `cat 
ofiles` -L/mnt/clfs/sources/binutils-build/bfd/../libiberty/pic -liberty 
-Wl,-lc,--as-needed,-lm,--no-as-needed  -lz 

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/compress.o .libs/verilog.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/bfd/../libiberty/pic 
-liberty -lz  -Wl,-lc -Wl,--as-needed -Wl,-lm -Wl,--no-as-needed   -Wl,-soname 
-Wl,libbfd-2.20.1.20100303.so -o .libs/libbfd-2.20.1.20100303.so
libtool: link: (cd ".libs" && rm -f "libbfd.so" && ln -s 
"libbfd-2.20.1.20100303.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 
compress.o verilog.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 
liils-build/./bfd/.libs/libbfd-2.20.1.20100303.so: ELF file d
make[4]: *** [libbfd.la] Error 127
make[4]: Leaving directory `/mnt/clfs/sources/binutils-buil
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/mnt/clfs/sources/binutils-buil
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mnt/clfs/sources/binutils-buil
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory `/mnt/clfs/sources/binutils-buil
make: *** [all] Error 2
clfs:/mnt/clfs/sources/binutils-build$ echo ${CLFS_HOST}
i586-cross-linux-gnu
clfs:/mnt/clfs/sources/binutils-build$ echo ${CLFS_TARGET}
powerpc-unknown-linux-gnu
clfs:/mnt/clfs/sources/binutils-build$ c

Thank you again, 
Peter Welles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20101030/633da2f0/attachment.html>


More information about the Clfs-support mailing list