LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   7.2 chapter 6.9. Glibc-2.16.0 - test failed (https://www.linuxquestions.org/questions/linux-from-scratch-13/7-2-chapter-6-9-glibc-2-16-0-test-failed-4175451723/)

Thomas Mueller 02-26-2013 02:23 AM

7.2 chapter 6.9. Glibc-2.16.0 - test failed
 
Quote:

make -k check 2>&1 | tee glibc-check-log
grep Error glibc-check-log
produced a few errors.

Are these errors critical or can they be ignored? I didn't find anything useful neither in the faq nor in the mailing lists. Google showed nothing. Also I am waiting for confirmation of my subscription, so I can't post this question in linuxsfromcratch.org mailinlists at the moment.

Below listed are those that weren't regarded as unproblematic in the book 7.2, chapter 6.9. Glibc-2.16.0
Afaik I did not deviate from the instruction.

I try to show
a) error message from glibc-check-log
b) content of respective output file
c) that, what I suppose is the failing instruction

1.)
Code:

make[2]: *** [/sources/glibc-build/csu/test-multiarch.out] Error 1
Code:

root:/sources/glibc-build/csu# cat test-multiarch.out
cannot open /proc/cpuinfo

Code:

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/csu/test-multiarch  > /sources/glibc-build/csu/test-multiarch.out

-------------------------------------------------------------------------------
2.)

Code:

make[2]: *** [/sources/glibc-build/nptl/tst-pthread-getattr.out] Error 1
Code:

root:/sources/glibc-build/nptl# cat tst-pthread-getattr.out
Verifying that stack top is accessible
check_stack_top: pthread_getattr_np failed: No such file or directory

Code:

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-pthread-getattr  > /sources/glibc-build/nptl/tst-pthread-getattr.out

------------------------------------------------------------------------------
3.) Same issue as 2.)?

Code:

make[2]: *** [/sources/glibc-build/nptl/tst-execstack.out] Error 1
Code:

root:/sources/glibc-build/nptl# cat tst-execstack.out
executable stacks allowed
threads waiting
before execstack: pthread_getattr_np returned error: No such file or directory

------------------------------------------------------------------------------
4.)

Code:

make[2]: *** [/sources/glibc-build/debug/tst-chk3.out] Error 1
Code:

Test checking routines at fortify level 2
Failure on line 647
Failure on line 652
Hello, World!
Hello, World!
Hello, World!
Failure on line 678
World!
Hello, World!
Hello, World!
Hello, World!
Failure on line 706
World!
Failure on line 723
Failure on line 730

Code:

GCONV_PATH=/sources/glibc-build/iconvdata
LC_ALL=C
LOCPATH=/sources/glibc-build/localedata 
        /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/debug/tst-chk3  > /sources/glibc-build/debug/tst-chk3.out



5.) - 8.) with no further information. Can be delivered if needed

Code:

make[2]: *** [/sources/glibc-build/debug/tst-lfschk3.out] Error 1
make[2]: *** [/sources/glibc-build/debug/tst-chk6.out] Error 1
make[2]: *** [/sources/glibc-build/debug/tst-lfschk6.out] Error 1
make[1]: *** [/sources/glibc-build/c++-types-check.out] Error 1

Please note, that I cannot use "less" in the chroot environment (bash: less: command not found).
Don't know if that is to be expected at that stage.

Any help will be appreciated.

Regards

Edit: Changed title due to error in version

stoat 02-26-2013 12:20 PM

Quote:

Originally Posted by Thomas Mueller

Are these errors critical or can they be ignored?

Hello,

I don't really know the answer to the first part of that question, but I wouldn't ignore them. I don't recall ever seeing those in my glibc tests or in the developers' posted glibc test logs for v7.2. So maybe asking about them at the lfs-support mailing list is a good idea.

Other thoughts that I had about this... Double-check the mounting of the virtual filesystems in the chroot environment (one of the tests could not open /proc/cpuinfo). Also, if you used a -j option with make when building glibc, then try it again without that. I know the book says it's okay to do a "parallel make", but it also says to revert back if problems occur. And sort of conversely, if the host is old and slow, try the idea in the book related to test timeouts.

P.S.: Less has not been installed in your chrooted system yet. It comes along later in section 6.48.

Thomas Mueller 02-28-2013 03:17 PM

The timeoutfactor did the trick. In fact, every single error disappeared. Even those considered non-critical. I am a bit skeptical, but continue nevertheless. So far no further problems.

Sorry for not trying out the timeoutfactor correction myself, but I am a bit overcautious, since it is my first lfs build.

thank you very much
thomas


All times are GMT -5. The time now is 06:53 PM.