LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   gcc shows this error at build (https://www.linuxquestions.org/questions/linux-from-scratch-13/gcc-shows-this-error-at-build-4175658288/)

rabidlinux 07-30-2019 11:16 AM

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?

hazel 07-30-2019 11:53 AM

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.

rabidlinux 07-30-2019 02:51 PM

Thanks Hazel,
I will have to do it tomorrow. It takes a long time as you know. Was in Chapter 6 .

rabidlinux 07-31-2019 12:42 PM

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#

hazel 07-31-2019 01:04 PM

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.

rabidlinux 07-31-2019 01:50 PM

Thanks for the help Hazel


All times are GMT -5. The time now is 07:12 PM.