[Clfs-support] Error compiling binutils in chapter 6.8 of Version SVN-20100103-x86_64-Multilib

Szabolcs Gyalókay gyalokay at gmail.com
Mon Mar 29 12:30:39 PDT 2010


Hi All,

I'm trying to build CLFS Version SVN-20100103-x86_64-Multilib, on a Core2
machine running Gentoo and I have a problem building binutils 2.20 in
Chapter 6.8.

I'm following instructions by the book, and here is what I get after make:

/bin/sh ./libtool --tag=CC   --mode=link x86_64-unknown-linux-gnu-gcc -m64
-W -W
all -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2  -release `cat
libto
ol-soversion`   -o libbfd.la -rpath /tools/lib64 archive.lo archures.lo
bfd.lo b
fdio.lo bfdwin.lo cache.lo coffgen.lo corefile.lo format.lo init.lo
libbfd.lo op
ncls.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/pardus/sources/binutils-build/bfd/../libibert
y/pic -liberty -Wl,-lc,--as-needed,-lm,--no-as-needed  -lz
libtool: link: x86_64-unknown-linux-gnu-gcc -m64 -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
.li
bs/reloc.o .libs/section.o .libs/syms.o .libs/targets.o .libs/hash.o
.libs/linke
r.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/v
erilog.o .libs/elf64-x86-64.o .libs/elf-ifunc.o .libs/elf64.o .libs/elf.o
.libs/
elflink.o .libs/elf-attrs.o .libs/elf-strtab.o .libs/elf-eh-frame.o
.libs/dwarf1
.o .libs/elf32-i386.o .libs/elf-vxworks.o .libs/elf32.o .libs/i386linux.o
.libs/
aout32.o .libs/pei-i386.o .libs/peigen.o .libs/cofflink.o .libs/pei-x86_64.o
.li
bs/pex64igen.o .libs/elf64-gen.o .libs/elf32-gen.o .libs/cpu-i386.o
.libs/cpu-l1
om.o .libs/archive64.o
-L/mnt/pardus/sources/binutils-build/bfd/../libiberty/p
ic -liberty -lz  -m64 -Wl,-lc -Wl,--as-needed -Wl,-lm -Wl,--no-as-needed
-Wl,-
soname -Wl,libbfd-2.20.0.so -o .libs/libbfd-2.20.0.so
libtool: link: (cd ".libs" && rm -f "libbfd.so" && ln -s "libbfd-2.20.0.so"
"lib
bfd.so")
libtool: link: x86_64-unknown-linux-gnu-ar cru .libs/libbfd.a  archive.o
archure
s.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
tek
hex.o ihex.o stabs.o stab-syms.o merge.o dwarf2.o simple.o compress.o
verilog.o
elf64-x86-64.o elf-ifunc.o elf64.o elf.o elflink.o elf-attrs.o elf-strtab.o
elf-
eh-frame.o dwarf1.o elf32-i386.o elf-vxworks.o elf32.o i386linux.o aout32.o
pei-
i386.o peigen.o cofflink.o pei-x86_64.o pex64igen.o elf64-gen.o elf32-gen.o
cpu-
i386.o cpu-l1om.o archive64.o
x86_64-unknown-linux-gnu-ar: /lib/libc.so.6: version `GLIBC_2.7' not found
(requ
ired by /mnt/pardus/sources/binutils-build/./bfd/.libs/libbfd-2.20.0.so)
make[4]: *** [libbfd.la] Error 1
make[4]: Leaving directory `/mnt/pardus/sources/binutils-build/bfd'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/mnt/pardus/sources/binutils-build/bfd'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mnt/pardus/sources/binutils-build/bfd'
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory `/mnt/pardus/sources/binutils-build'
make: *** [all] Error 2

The output of ldd /mnt/pardus/sources/binutils-build/./bfd/.libs/
libbfd-2.20.0.so:

/mnt/pardus/sources/binutils-build/./bfd/.libs/libbfd-2.20.0.so:
/lib/libc.so.6: version `GLIBC_2.7' not found (required by
/mnt/pardus/sources/binutils-build/./bfd/.libs/libbfd-2.20.0.so)
        linux-vdso.so.1 =>  (0x00007fff19dfe000)
        libz.so.1 => /lib/libz.so.1 (0x00002b0e91195000)
        libc.so.6 => /lib/libc.so.6 (0x00002b0e913aa000)
        /lib64/ld-linux-x86-64.so.2 (0x0000555555554000)

So why is this library still linked to something in /lib?

Output of version-check:

bash, version 4.0.28(2)-release
Binutils: (GNU Binutils) 2.18
bison (GNU Bison) 2.3
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils:  7.5
diff (GNU diffutils) 2.8.7
find (GNU findutils) 4.4.0
GNU Awk 3.1.5
gcc (GCC) 4.1.2 (Gentoo 4.1.2 p1.0.2)
GNU C Library stable release version 2.6.1,
grep (GNU grep) 2.5.1
gzip 1.3.12
Linux 2.6.24-gentoo-r7
GNU Make 3.81
ncurses 5.7.20081102
patch 2.5.9
GNU sed version 4.2
tar (GNU tar) 1.19
makeinfo (GNU texinfo) 4.13


Thanks for your help in advance!

Bye,

Szabolcs Gyalókay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20100329/3aad5ecd/attachment.html>


More information about the Clfs-support mailing list