Hi,
I have problem with
make check
in
Linux from Scratch - Version SVN-20050524 - 6.11. Glibc-2.3.5
Here is the last make check command that failed:
make -C nptl tests
make[2]: Entering directory `/sources/glibc-2.3.5/nptl'
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:/sourc
es/glibc-build/elf:/sources/glibc-build/dlfcn:/sources/glibc-build/nss:/sources/
glibc-build/nis:/sources/glibc-build/rt:/sources/glibc-build/resolv:/sources/gli
bc-build/crypt:/sources/glibc-build/nptl
/sources/glibc-build/nptl/tst-attr1 >
/sources/glibc-build/nptl/tst-attr1.out
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:/sourc
es/glibc-build/elf:/sources/glibc-build/dlfcn:/sources/glibc-build/nss:/sources/
glibc-build/nis:/sources/glibc-build/rt:/sources/glibc-build/resolv:/sources/gli
bc-build/crypt:/sources/glibc-build/nptl
/sources/glibc-build/nptl/tst-attr2 >
/sources/glibc-build/nptl/tst-attr2.out
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:/sourc
es/glibc-build/elf:/sources/glibc-build/dlfcn:/sources/glibc-build/nss:/sources/
glibc-build/nis:/sources/glibc-build/rt:/sources/glibc-build/resolv:/sources/gli
bc-build/crypt:/sources/glibc-build/nptl
/sources/glibc-build/nptl/tst-attr3 >
/sources/glibc-build/nptl/tst-attr3.out
/sources/glibc-build/nptl/tst-attr3: pthread_getattr_np failed: No
such file or directory
/sources/glibc-build/nptl/tst-attr3: pthread_attr_getstack returned
range does n ot cover main's stack
/sources/glibc-build/nptl/tst-attr3: pthread_attr_getaffinity_np
returned differ ent CPU mask than pthread_getattr_np
make[2]: *** [/sources/glibc-build/nptl/tst-attr3.out] Error 1
make[2]: Leaving directory `/sources/glibc-2.3.5/nptl'
make[1]: *** [nptl/tests] Error 2
make[1]: Leaving directory `/sources/glibc-2.3.5'
make: *** [check] Error 2
----------------------------------
And this is the content of tst-attr3.out:
thread stack 0xb76d2000-0xb7ed3000 (0x801000)
thread guardsize 4096
thread stack 0xb76d2000-0xb7ed3000 (0x801000)
thread guardsize 4096
thread stack 0xb76d2000-0xb7ed3000 (0x801000)
thread guardsize 65536
----------------------------------
I have run it twice with exact same error.
I am using Archlinux
uname -a
Linux myhost 2.6.11.7-ARCH #1 SMP Sat Apr 9 13:37:54 PDT 2005 i686
Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux
And I use
CFLAGS="-O2 -march=i686" CXXFLAGS="-O2 -march=i686"
---------------------
I saw that the tst-attr3.c causes failed test.
I want to see whether this test is the only test that failed by
disabling it (commenting out the test code inside tst-attr3.c).
It turns out that other test inside nptl failed too. I did not
continue further. It seems tests related to nptl failed in many
places.
But I continue with make install to find out if I can build the rest
of components.
Anyone would like to share the experience building glibc 2.3.5 using
host kernel 2.6.11.7?
-----------------------
/tools/lib/libc.so.6 output:
GNU C Library stable release version 2.3.5, by Roland McGrath et al.
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.4.
Compiled on a Linux 2.6.11 system on 2005-05-29.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
--------------------------
Additional info:
I do not create separate partition. I followed "LFS next to existing systems":
http://www.linuxfromscratch.org/hints/downloads/files/lfs_next_to_existing_systems.txt
-------------------------
I have a feeling that compiling under 2.6.11 kernel would cause some problems.
Here is my /lib/libc.so.6 on my ArchLinux host:
GNU C Library stable release version 2.3.3, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.3.
Compiled on a Linux 2.6.9 system on 2005-01-06.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
linuxthreads-0.10 by Xavier Leroy
BIND-8.2.3-T5B
libthread_db work sponsored by Alpha Processor Inc
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
-------------------------------
Thanks
Suwanto
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page