> Op 21 jan. 2021, om 17:51 heeft Xi Ruoyao <xry...@mengyan1223.wang> het 
> volgende geschreven:
> 
(…)

> Well the problem is "facsinating" (I mean, troubling).
> 
> Could you try
> 
>  echo "" | cpp -v
> 
> And check the output?  It should contains lines like
> 
>> #include "..." search starts here:
>> #include <...> search starts here:
>> /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include
>> /usr/local/include
>> /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed
>> /usr/include
> 
> Of course your output shouldn't contain x86_64 :).  Just check if /usr/include
> is there.

This is the outcome on the “donor” machine (running plain LFS, not in chroot 
from Ubuntu):

pol@iMac-G3:/sources/gmp-6.1.2$ echo "" | cpp -v
Ingebouwde specs worden gebruikt.
COLLECT_GCC=cpp
Target: powerpc-unknown-linux-gnu
Configured with: ../configure --prefix=/usr --enable-languages=c,c++ 
--disable-multilib --disable-bootstrap --with-system-zlib
Thread model: posix
gcc versie 7.3.0 (GCC) 
COLLECT_GCC_OPTIONS='-E' '-v'
 /usr/libexec/gcc/powerpc-unknown-linux-gnu/7.3.0/cc1 -E -quiet -v -imultilib . 
-imultiarch powerpc-linux-gnu -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix 
-D__unix -Dlinux -D__linux -Asystem=linux -Asystem=unix -Asystem=posix -
niet-bestaande map "/usr/local/include/powerpc-linux-gnu" wordt genegeerd
niet-bestaande map 
"/usr/lib/gcc/powerpc-unknown-linux-gnu/7.3.0/../../../../powerpc-unknown-linux-gnu/include"
 wordt genegeerd
niet-bestaande map "/usr/include/powerpc-linux-gnu" wordt genegeerd
dubbele map "/usr/include" wordt genegeerd
Zoektocht voor #include "..." begint hier:
Zoektocht voor #include <...> begint hier:
 /usr/include
 /usr/lib/gcc/powerpc-unknown-linux-gnu/7.3.0/include
 /usr/local/include
 /usr/lib/gcc/powerpc-unknown-linux-gnu/7.3.0/include-fixed
Einde van opzoekingslijst.
# 1 "<stdin>"
# 1 "<ingebouwd>"
# 1 "<opdrachtregel>"
# 1 "/usr/include/stdc-predef.h" 1 3
# 1 "<opdrachtregel>" 2
# 1 "<stdin>"
COMPILER_PATH=/usr/libexec/gcc/powerpc-unknown-linux-gnu/7.3.0/:/usr/libexec/gcc/powerpc-unknown-linux-gnu/7.3.0/:/usr/libexec/gcc/powerpc-unknown-linux-gnu/:/usr/lib/gcc/powerpc-unknown-linux-gnu/7.3.0/:/usr/lib/gcc/powerpc-unknown-linux-gnu/
LIBRARY_PATH=/usr/lib/:/usr/lib/gcc/powerpc-unknown-linux-gnu/7.3.0/:/usr/lib/gcc/powerpc-unknown-linux-gnu/7.3.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-E' '-v'

The lines, you are looking for, are put in bold.
There are some lines (marked in red) that worry me about “unexisting directory 
… ignored” and “double directory … ignored”.

I want to add that I already recompiled several times the kernel with this 
version/configuration of the compiler without any problem…

pvg
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to