LFS 6.4 Chapter 6 Glibc Test errors

Aaron Schawalder mygcc at gmx.ch
Fri Feb 27 01:26:17 PST 2009


Ken Moffat wrote:
> What results does your debian system produce for version-check from
> http://www.linuxfromscratch.org/lfs/view/stable/prologue/hostreqs.html
> and how do they compare to the versions listed on that page ?
>
>  In particular, which kernel and which compiler version was used to
> build the kernel ?  I can't say I have confidence in the phrase on
> that page about the kernel '(having been compiled with GCC-3.0 or
> greater)' - anything less than the gcc-3.4 series has to be regarded
> as suspect nowadays.
>   
The  result of the ./version-check.sh script is:
"....
gcc (GCC) 3.4.6 (Debian 3.4.6-5)
GNU C Library stable release version 2.3.6,
....
Linux version 2.6.18-6-686 (Debian 2.6.18.dfsg.1-23etch1) 
(dannf at debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 
4.1.1-21)) #1 SMP Fri Dec 12 16:48:28 UTC 2008
....
Compilation OK"*

*
>> make[2]: *** [/sources/glibc-build/nptl/tst-mutex8.out] Error 1
>>     
Some first details:

tst-mutex8.out:
check normal mutex
check recursive mutex
cl: mutex_unlocked failed

In glibc-check-log I find:
GCONV_PATH=/sources/glibc-build/iconvdata LC_ALL=C   
/sources/glibc-build/elf/ld-linux.so.2 --library-path 
/sources/glibc-build:/sources/glibc-build/math:/sources/glibc-build/elf:/sources/glibc-build/dlfcn:/sources/glibc-build/nss:/sources/glibc-build/nis:/sources/glibc-build/rt:/sources/glibc-build/resolv:/sources/glibc-build/crypt:/sources/glibc-build/nptl 
/sources/glibc-build/nptl/tst-mutex8  > 
/sources/glibc-build/nptl/tst-mutex8.out
make[2]: *** [/sources/glibc-build/nptl/tst-mutex8.out] Error 1

I'm not yet a good code reader. I found that "cl: mutex_unlock failed" 
has to do with pthread_mutex_unlock in the source code tst-mutex8.c 
(https://www.codeblog.org/viewsrc/glibc-2.6.1/nptl/tst-mutex8.c). In 
this code pthread.h will be included and in pthread.h there I find under 
"mutex functions" "int pthread_mutex_unlock(pthread_mutex_t *mutex);". 
Pthread is the POSIX standard for threads. pthread_mutex_unlock deblocks 
mutex.

>> make[2]: *** [/sources/glibc-build/nptl/tst-mutexpi8.out] Error 1
>>     
tst-mtexpi8.out:
check normal mutex
check recursive mutex
cl: mutex_unlocked failed

In glibc-check-log I find:
GCONV_PATH=/sources/glibc-build/iconvdata LC_ALL=C   
/sources/glibc-build/elf/ld-linux.so.2 --library-path 
/sources/glibc-build:/sources/glibc-build/math:/sources/glibc-build/elf:/sources/glibc-build/dlfcn:/sources/glibc-build/nss:/sources/glibc-build/nis:/sources/glibc-build/rt:/sources/glibc-build/resolv:/sources/glibc-build/crypt:/sources/glibc-build/nptl 
/sources/glibc-build/nptl/tst-mutexpi8  > 
/sources/glibc-build/nptl/tst-mutexpi8.out
make[2]: *** [/sources/glibc-build/nptl/tst-mutexpi8.out] Error 1

>> make[2]: *** [/sources/glibc-build/nptl/tst-cond8.out] Error 1
>>     
tst-cond8.out:
&cond = 0x804b180
&mut = 0x804b110
parent: get mutex
parent: create child
parent: wait for child to lock mutex
child: got mutex; waiting
mutex not locked at all by cond_wait

In glibc-check-log I find:
GCONV_PATH=/sources/glibc-build/iconvdata LC_ALL=C   
/sources/glibc-build/elf/ld-linux.so.2 --library-path 
/sources/glibc-build:/sources/glibc-build/math:/sources/glibc-build/elf:/sources/glibc-build/dlfcn:/sources/glibc-build/nss:/sources/glibc-build/nis:/sources/glibc-build/rt:/sources/glibc-build/resolv:/sources/glibc-build/crypt:/sources/glibc-build/nptl 
/sources/glibc-build/nptl/tst-cond8  > 
/sources/glibc-build/nptl/tst-cond8.out
make[2]: *** [/sources/glibc-build/nptl/tst-cond8.out] Error 1

>  Perhaps your search was _too_ specific.  I just tried googling for
> LFS nptl/tst-mutex8.out     and the first entry took me to
> http://www.mail-archive.com/lfs-support@linuxfromscratch.org/msg02331.html
> which is three years old but might be relevant: typos in
> libgcc_s.so.1 symlink and somewhere in the perl install.
>
>   
Thank you for this hint and for further help.

Aaron.



More information about the lfs-support mailing list