我按照 LFS 稳定版中的步骤进行操作,并到达第 5.8 点,通过了工具链的健全性测试。尝试使用以下命令配置 gcc-7.3.0 包中包含的 lbstdc++:
../libstdc++-v3/configure \
--host=$LFS_TGT \
--prefix=/tools \
--disable-multilib \
--disable-nls \
--disable-libstdcxx-threads \
--disable-libstdcxx-pch \
--with-gxx-include-dir=/tools/$LFS_TGT/include/c++/7.3.0
我收到以下警告信息:
configure: WARNING: stdbool.h: present but cannot be compiled
configure: WARNING: stdbool.h: check for missing prerequisite headers?
configure: WARNING: stdbool.h: see the Autoconf documentation
configure: WARNING: stdbool.h: section "Present But Cannot Be Compiled"
configure: WARNING: stdbool.h: proceeding with the compiler's result
checking for stdbool.h... no
checking stdalign.h usability... no
checking stdalign.h presence... yes
configure: WARNING: stdalign.h: present but cannot be compiled
configure: WARNING: stdalign.h: check for missing prerequisite headers?
configure: WARNING: stdalign.h: see the Autoconf documentation
configure: WARNING: stdalign.h: section "Present But Cannot Be Compiled"
configure: WARNING: stdalign.h: proceeding with the compiler's result
checking for stdalign.h... no
checking for the value of EOF... configure: error: computing EOF failed
我检查了 $LFS 是否正确,结果是正确的。当我打开 config.log 时,我看到了以下突出显示的错误消息:
conftest.c:10:10: fatal error: stdio.h: No such file or directory
#include <stdio.h>
我猜想这两者是有关联的,但我不知道如何解决。如能得到任何帮助我将不胜感激。