为 LFS 编译 GCC 时出现问题

为 LFS 编译 GCC 时出现问题

我想编译 LFS 并在 GCC-13.2.0 Pass 1 中,但在 make 步骤中我遇到了错误

done
make[4]: Leaving directory '/mnt/lfs/sources/gcc-13.2.0/build/x86_64-pc-linux-gnu/libgcc'
make[3]: Leaving directory '/mnt/lfs/sources/gcc-13.2.0/build/x86_64-pc-linux-gnu/libgcc'
make[2]: Leaving directory '/mnt/lfs/sources/gcc-13.2.0/build'
make[2]: Entering directory '/mnt/lfs/sources/gcc-13.2.0/build'
make[3]: Entering directory '/mnt/lfs/sources/gcc-13.2.0/build'
rm -f stage_current
make[3]: Leaving directory '/mnt/lfs/sources/gcc-13.2.0/build'
make[2]: Leaving directory '/mnt/lfs/sources/gcc-13.2.0/build'
make[2]: Entering directory '/mnt/lfs/sources/gcc-13.2.0/build'
Configuring stage 2 in ./intl
configure: loading cache ./config.cache
checking for x86_64-pc-linux-gnu-gcc...  /mnt/lfs/sources/gcc-13.2.0/build/./prev-gcc/xgcc -B/mnt/lfs/sources/gcc-13.2.0/build/./prev-gcc/ -B/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ -B/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ -B/mnt/lfs/tools/x86_64-pc-linux-gnu/lib/ -isystem /mnt/lfs/tools/x86_64-pc-linux-gnu/include -isystem /mnt/lfs/tools/x86_64-pc-linux-gnu/sys-include   -fno-checking
checking whether the C compiler works... no
configure: error: in `/mnt/lfs/sources/gcc-13.2.0/build/intl':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[2]: *** [Makefile:6551: configure-stage2-intl] Error 77
make[2]: Leaving directory '/mnt/lfs/sources/gcc-13.2.0/build'
make[1]: *** [Makefile:21586: stage2-bubble] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-13.2.0/build'
make: *** [Makefile:1027: all] Error 2

我不知道我错过了什么。我看了LFS的书。有谁知道答案吗?

相关内容