LinuxQuestions.org
Review your favorite Linux distribution.
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 07-30-2019, 11:16 AM   #1
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,Tumbleweed,BLFS 9.0
Posts: 227

Rep: Reputation: Disabled
gcc shows this error at build


8.4 systemd building base system

Hi All,
GCC build shows this :

make[1]: Target 'check-host' not remade because of errors.
make[1]: Leaving directory '/sources/gcc-8.2.0/build'
make: *** [Makefile:2235: do-check] Error 2
make: Target 'check' not remade because of errors.
Should I continue?
 
Old 07-30-2019, 11:53 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,578
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
When you have build errors, don't just show the last few lines because they are totally uninformative. You need to scroll back and find the actual errors. If you can't do that because they are too far up, repeat the build operation with a log file so that you will have something to examine.

Also you haven't told us whether these are Chapter 5 or Chapter 6 errors, or what stage of the build they come from. It looks like the "make check" stage but how can we tell if you don't tell us? And with gcc, there is a further wrinkle because this is actually a composite build like binutils. We need to know which part of it caused the errors. More information please. And no, you shouldn't continue. gcc is one of the most important packages in the whole of LFS. It has to be built properly.
 
Old 07-30-2019, 02:51 PM   #3
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,Tumbleweed,BLFS 9.0
Posts: 227

Original Poster
Rep: Reputation: Disabled
Thanks Hazel,
I will have to do it tomorrow. It takes a long time as you know. Was in Chapter 6 .
 
Old 07-31-2019, 12:42 PM   #4
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,Tumbleweed,BLFS 9.0
Posts: 227

Original Poster
Rep: Reputation: Disabled
Here is the latest build: this in in chapter 6 building the base system.

Schedule of variations:
unix

Running target unix
Using /tools/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /tools/share/dejagnu/config/unix.exp as generic interface file for target.
Using ../../../../libitm/testsuite/config/default.exp as tool-and-target-specific interface file.
Running ../../../../libitm/testsuite/libitm.c/c.exp ...
Running ../../../../libitm/testsuite/libitm.c++/c++.exp ...

=== libitm Summary ===

# of expected passes 42
# of expected failures 3
# of unsupported tests 1
make[4]: Leaving directory '/sources/gcc-8.2.0/build/x86_64-pc-linux-gnu/libitm/testsuite'
make[3]: Leaving directory '/sources/gcc-8.2.0/build/x86_64-pc-linux-gnu/libitm/testsuite'
make[3]: Entering directory '/sources/gcc-8.2.0/build/x86_64-pc-linux-gnu/libitm'
true DO=all multi-do # make
make[3]: Leaving directory '/sources/gcc-8.2.0/build/x86_64-pc-linux-gnu/libitm'
make[2]: Leaving directory '/sources/gcc-8.2.0/build/x86_64-pc-linux-gnu/libitm'
make[2]: Entering directory '/sources/gcc-8.2.0/build/x86_64-pc-linux-gnu/libatomic'
Making check in testsuite
make[3]: Entering directory '/sources/gcc-8.2.0/build/x86_64-pc-linux-gnu/libatomic/testsuite'
make check-DEJAGNU
make[4]: Entering directory '/sources/gcc-8.2.0/build/x86_64-pc-linux-gnu/libatomic/testsuite'
Making a new site.exp file...
srcdir='../../../../libatomic/testsuite'; export srcdir; \
EXPECT=expect; export EXPECT; \
runtest=runtest; \
if /bin/sh -c "$runtest --version" > /dev/null 2>&1; then \
exit_status=0; l='libatomic'; for tool in $l; do \
if $runtest --tool $tool --srcdir $srcdir ; \
then :; else exit_status=1; fi; \
done; \
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
fi; \
exit $exit_status
WARNING: Couldn't find the global config file.
Using ../../../../libatomic/testsuite/lib/libatomic.exp as tool init file.
Test run by nobody on Wed Jul 31 17:34:21 2019
Native configuration is x86_64-pc-linux-gnu

=== libatomic tests ===

Schedule of variations:
unix

Running target unix
Using /tools/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /tools/share/dejagnu/config/unix.exp as generic interface file for target.
Using ../../../../libatomic/testsuite/config/default.exp as tool-and-target-specific interface file.
Running ../../../../libatomic/testsuite/libatomic.c/c.exp ...

=== libatomic Summary ===

# of expected passes 54
make[4]: Leaving directory '/sources/gcc-8.2.0/build/x86_64-pc-linux-gnu/libatomic/testsuite'
make[3]: Leaving directory '/sources/gcc-8.2.0/build/x86_64-pc-linux-gnu/libatomic/testsuite'
make[3]: Entering directory '/sources/gcc-8.2.0/build/x86_64-pc-linux-gnu/libatomic'
true DO=all multi-do # make
make[3]: Leaving directory '/sources/gcc-8.2.0/build/x86_64-pc-linux-gnu/libatomic'
make[2]: Leaving directory '/sources/gcc-8.2.0/build/x86_64-pc-linux-gnu/libatomic'
make[1]: Leaving directory '/sources/gcc-8.2.0/build'
make: *** [Makefile:2235: do-check] Error 2
make: Target 'check' not remade because of errors.
(lfs chroot) root:/sources/gcc-8.2.0/build#

Last edited by rabidlinux; 07-31-2019 at 12:54 PM.
 
Old 07-31-2019, 01:04 PM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,578
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
Fine. It's the check stage in chapter 6. Always provide this kind of information in future.

Now, if you read Chap 6.31 of the book again, it will tell you how to print out a summary of the results. There's a program called test_summary that will do it for you. There will be a few errors, so don't panic! I believe there are six expected ones in libgcc++ alone.

Then follow the link to the official build and check your errors against those shown. If there are no additional ones (or only one or two of them), you are good to go.
 
Old 07-31-2019, 01:50 PM   #6
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,Tumbleweed,BLFS 9.0
Posts: 227

Original Poster
Rep: Reputation: Disabled
Thanks for the help Hazel
 
  


Reply

Tags
hi all



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] 8.3 systemd build GCC test shows this error? rabidlinux Linux From Scratch 1 09-27-2018 10:46 AM
GCC test summary shows too many unexpected failures - LFS - GCC 8.2.0 rithinskaria Linux From Scratch 4 09-17-2018 04:45 PM
[SOLVED] Linux 4.4 seems to refuse to build IPv6 for the 64-bit build - 32-bit build works fine GameCodingNinja Linux From Scratch 2 02-07-2016 06:40 PM
gcc-4.4.3 make error - failed to build gcc-4.4.3--please help aayu09 Fedora 4 03-05-2010 09:20 AM
LXer: Build 'em Right, Build 'em Strong, Build 'em Linux LXer Syndicated Linux News 0 10-01-2007 09:51 PM

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

All times are GMT -5. The time now is 08:48 AM.

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