Я выполняю шаги в стабильной версии LFS и добрался до пункта 5.8, передав тест на работоспособность для цепочки инструментов. При попытке настроить lbstdc ++, содержащиеся в пакете gcc-7.3.0, следующие команды:
../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>
Я предполагаю, что эти два связаны, но я не знаю, как его решить. Любая помощь будет принята с благодарностью.