Errors when running glibc-2.11-1 tests in section 6.9.

jumbophut jumbophut at gmail.com
Sat Mar 27 23:00:02 PDT 2010


I have a significant number of errors when testing the build of
glibc-2.11.1 in section 6.9 of the book.

I would be grateful if people could advise whether these are a problem
before I go on.

Output of 'grep Error glibc-check-log':

make[2]: *** [/sources/glibc-build/dlfcn/bug-atexit3.out] Error 1
make[1]: *** [dlfcn/tests] Error 2
make[2]: [/sources/glibc-build/posix/annexc.out] Error 1 (ignored)
make[2]: *** [/sources/glibc-build/nptl/tst-cancel24.out] Error 127
make[1]: *** [nptl/tests] Error 2
make[2]: *** [/sources/glibc-build/debug/tst-chk4.out] Error 127
make[2]: *** [/sources/glibc-build/debug/tst-chk5.out] Error 127
make[2]: *** [/sources/glibc-build/debug/tst-chk6.out] Error 127
make[2]: *** [/sources/glibc-build/debug/tst-lfschk4.out] Error 127
make[2]: *** [/sources/glibc-build/debug/tst-lfschk5.out] Error 127
make[2]: *** [/sources/glibc-build/debug/tst-lfschk6.out] Error 127
make[1]: *** [debug/tests] Error 2
make: *** [check] Error 2

Further setup/system information is near the end of this email.

For the first error, the file bug-atexit3.out contains:

dlopen failed: libstdc++.so.6: cannot open shared object file: No such
file or directory

That library is definitely in /tools/lib, but it's obviously not being
looked for their by the test script.

For the other errors, the .out files are empty, but there are similar
comments in glibc-check-log just before the lines with Error in them:

/sources/glibc-build/nptl/tst-cancel24: error while loading shared
libraries: libstdc++.so.6: cannot open shared object file: No such
file or directory
...
/sources/glibc-build/debug/tst-chk4: error while loading shared
libraries: libstdc++.so.6: cannot open shared object file: No such
file or directory
...
/sources/glibc-build/debug/tst-chk5: error while loading shared
libraries: libstdc++.so.6: cannot open shared object file: No such
file or directory
...etc.

(Detail of the build process for each test is quite long, but happy to
post more if it will assist.  There are no obvious signs of trouble
before the error occurs).

A relevant factor seems to be that the particular tests in question
require the use of g++ (and none of the others do), but I don't
understand enough to know why that's problematic.  Perhaps relevant is
that when compiling the tests '/lib/ld-linux.so.2' is passed as the
-dynamic-linker option to the linker, although that occurs in more
than just the tests with errors.  '/lib/ld-linux.so.2' does not exist.

Worryingly, I did the build process twice (completely removing and
re-extracting the source in between) and I got one error fewer the
second time.  The above is the output of the second try.


FURTHER SETUP/SYSTEM INFORMATION.
==================================

I am:

* using Version 6.6 of the LFS book.
* running Debian Lenny on an ix86 machine (Pentium III).
* not deviating from the instructions in the book (not consciously, anyway)

Output of 'bash version-check.sh':

bash, version 3.2.39(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Debian) 2.18.0.20080103
bison (GNU Bison) 2.3
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils:  6.10
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.0
GNU Awk 3.1.5
/usr/bin/awk -> /usr/bin/gawk
gcc (Debian 4.3.2-1.1) 4.3.2
GNU C Library stable release version 2.7
GNU grep 2.5.3
gzip 1.3.12
Linux version 2.6.26-2-686 (Debian 2.6.26-21lenny4) (dannf at debian.org)
(gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Tue
Mar 9 17:35:51 UTC 2010
m4 (GNU M4) 1.4.11
GNU Make 3.81
patch 2.5.9
Perl version='5.10.0';
GNU sed version 4.1.5
tar (GNU tar) 1.20
Texinfo: makeinfo (GNU texinfo) 4.11
Compilation OK

Regards
Tony

-- 
Tony (echo 'spend!,pocket awide' | sed 'y/acdeikospntw!, /l at omcgtjuba.phi/')



More information about the lfs-support mailing list