LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Why i am getting error when i type "make check" when i try to install GCC (10.2.0) when i try to make LFS (https://www.linuxquestions.org/questions/linux-software-2/why-i-am-getting-error-when-i-type-make-check-when-i-try-to-install-gcc-10-2-0-when-i-try-to-make-lfs-4175694624/)

D3VBG 05-02-2021 04:58 PM

Why i am getting error when i type "make check" when i try to install GCC (10.2.0) when i try to make LFS
 
Making check in mpn
make[4]: Entering directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/mpn'
make[4]: Nothing to be done for 'check'.
make[4]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/mpn'
Making check in mpz
make[4]: Entering directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/mpz'
make[4]: Nothing to be done for 'check'.
make[4]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/mpz'
Making check in mpq
make[4]: Entering directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/mpq'
make[4]: Nothing to be done for 'check'.
make[4]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/mpq'
Making check in mpf
make[4]: Entering directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/mpf'
make[4]: Nothing to be done for 'check'.
make[4]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/mpf'
Making check in printf
make[4]: Entering directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/printf'
make[4]: Nothing to be done for 'check'.
make[4]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/printf'
Making check in scanf
make[4]: Entering directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/scanf'
make[4]: Nothing to be done for 'check'.
make[4]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/scanf'
Making check in rand
make[4]: Entering directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/rand'
make[4]: Nothing to be done for 'check'.
make[4]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/rand'
Making check in cxx
make[4]: Entering directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/cxx'
make[4]: Nothing to be done for 'check'.
make[4]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/cxx'
Making check in demos
make[4]: Entering directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/demos'
Making check in calc
make[5]: Entering directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/demos/calc'
make check-am
make[6]: Entering directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/demos/calc'
make[6]: Nothing to be done for 'check-am'.
make[6]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/demos/calc'
make[5]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/demos/calc'
Making check in expr
make[5]: Entering directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/demos/expr'
make[5]: Nothing to be done for 'check'.
make[5]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/demos/expr'
make[5]: Entering directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/demos'
make[5]: Nothing to be done for 'check-am'.
make[5]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/demos'
make[4]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/demos'
Making check in tune
make[4]: Entering directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/tune'
make[4]: Nothing to be done for 'check'.
make[4]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/tune'
Making check in doc
make[4]: Entering directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/doc'
make[4]: Nothing to be done for 'check'.
make[4]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp/doc'
make[4]: Entering directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp'
make[4]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp'
make[3]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp'
make[2]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build/gmp'
make[1]: Leaving directory '/mnt/bulgarianos/sources/gcc-10.2.0/build'
make: *** [Makefile:2334: do-check] Error 2

computersavvy 05-03-2021 01:32 PM

Do you see an error reported in any of those directories?
Make check is telling you it did nothing.

D3VBG 05-03-2021 03:55 PM

cc1: error: no include path in which to search for stdc-predef.h

shruggy 05-04-2021 01:59 AM

So this is the first pass. Then you should install Glibc headers for your host distribution. Depending on distribution, they may be in package libc6-dev, or glibc-headers, or something else.

See 2.2. Host System Requirements:
Quote:

Also note that many distributions will place software headers into separate packages, often in the form of “<package-name>-devel” or “<package-name>-dev”. Be sure to install those if your distribution provides them.


All times are GMT -5. The time now is 05:03 PM.