LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-24-2019, 05:10 PM   #1
Frinstall
LQ Newbie
 
Registered: Mar 2019
Posts: 1

Rep: Reputation: Disabled
Glibc errors make check & install in LFS 8.4


Good afternoon, please help me deal with make check and make install errors
Are they critical and how can I fix them?
Host is Debian 9.8
LFS 8.4 SystemD.
Ch6.9 GlibC
make check:
Code:
UNSUPPORTED: elf/tst-audit10
UNSUPPORTED: elf/tst-avx512
XPASS: elf/tst-protected1a
XPASS: elf/tst-protected1b
UNSUPPORTED: math/test-double-libmvec-alias-avx512
UNSUPPORTED: math/test-double-libmvec-alias-avx512-main
UNSUPPORTED: math/test-double-libmvec-sincos-avx512
UNSUPPORTED: math/test-float-libmvec-alias-avx512
UNSUPPORTED: math/test-float-libmvec-alias-avx512-main
UNSUPPORTED: math/test-float-libmvec-sincosf-avx512
FAIL: misc/check-installed-headers-c
UNSUPPORTED: misc/tst-pkey
FAIL: misc/tst-ttyname
UNSUPPORTED: nptl/test-cond-printers
UNSUPPORTED: nptl/test-condattr-printers
UNSUPPORTED: nptl/test-mutex-printers
UNSUPPORTED: nptl/test-mutexattr-printers
UNSUPPORTED: nptl/test-rwlock-printers
UNSUPPORTED: nptl/test-rwlockattr-printers
UNSUPPORTED: nss/tst-nss-test3
UNSUPPORTED: resolv/tst-resolv-ai_idn
UNSUPPORTED: resolv/tst-resolv-ai_idn-latin1
FAIL: sunrpc/tst-udp-timeout
Summary of test results:
      3 FAIL
   5961 PASS
     18 UNSUPPORTED
     17 XFAIL
      2 XPASS
make[1]: *** [Makefile:405: tests] Error 1
make[1]: Leaving directory '/sources/glibc-2.29'
make: *** [Makefile:9: check] Error 2
make install:
Code:
LD_SO=ld-linux-x86-64.so.2 CC="gcc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include -isystem /usr/include" /usr/bin/perl scripts/test-installation.pl /sources/glibc-2.29/build/
/tools/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lnss_nis
/tools/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lnss_nisplus
collect2: error: ld returned 1 exit status
Execution of gcc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include -isystem /usr/include failed!
The script has found some problems with your installation!
Please read the FAQ and the README file and check the following:
- Did you change the gcc specs file (necessary after upgrading from
  Linux libc5)?
- Are there any symbolic links of the form libXXX.so to old libraries?
  Links like libm.so -> libm.so.5 (where libm.so.5 is an old library) are wrong,
  libm.so should point to the newly installed glibc file - and there should be
  only one such link (check e.g. /lib and /usr/lib)
You should restart this script from your build directory after you've
fixed all problems!
Btw. the script doesn't work if you're installing GNU libc not as your
primary library!
make[1]: *** [Makefile:111: install] Error 1
make[1]: Leaving directory '/sources/glibc-2.29'
make: *** [Makefile:12: install] Error 2
 
Old 03-26-2019, 05:58 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Welcome to LQ.

Those results are a bummer. This is your first real compile on the static toolchain, and you went down in flames. You can't go forward, so it's only a question of how far back you go. I'd google the make install stuff (the first line that says 'Error') as a way of finding out what went wrong. Also go back to the beginning of chapter 6 and check your work. If you find an error. wipe glibc, untar afresh, and run 'make -j 1' this time. Otherwise, bite the bullet and restart chapter 5. You're using the chapter 5 stuff to build chapter 6.

Update/Upgrade Debian before you start, and don't do it again until you finish with it (Ch 6 using it's own compiler and /tools retired).
 
Old 03-30-2019, 12:07 PM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Why are you using gcc-8.3.0? Are you working from the development LFS? If so, you shouldn't be. That's for experienced users only. The current stable LFS uses gcc-8.2.0.

Also did you carry out the sed on page 6.9 before running the install command? I suspect that is the source of your problem.

PS: Your test results look fine to me. Only 3 FAILs and one of those was expected.

Last edited by hazel; 03-30-2019 at 12:18 PM. Reason: Added postscript
 
Old 04-14-2019, 06:21 AM   #4
sr_ls_boy
Member
 
Registered: Apr 2015
Posts: 105

Rep: Reputation: Disabled
This link might help you. It includes a patch.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LFS 7.3 / Chapter 6.9.1 / Page 89 / glibc make check errors Drumachine Linux From Scratch 4 08-14-2013 03:17 PM
Glibc giving Errors on Make Check in LFS 7.1 xerofoify Linux From Scratch 3 08-21-2012 11:02 AM
[SOLVED] problem with 6.9glibc make -k check 2>&1 | tee glibc-check-log bhismnarayan Linux From Scratch 3 10-01-2010 08:51 AM
problem with 6.9glibc make -k check 2>&1 | tee glibc-check-log bhismnarayan Linux From Scratch 1 09-30-2010 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration