在 make 命令中安装 GCC 4.7.0 失败

在 make 命令中安装 GCC 4.7.0 失败

我正在尝试在 Linux Mint 中安装 GCC 4.7.0(基于 Ubuntu 18.04)。我已经完成了配置它的第一步。但是,当我运行时make -j5,出现以下错误:

make[2]: Leaving directory '/home/james/src/build-gcc'
Makefile:26035: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/home/james/src/build-gcc'
Makefile:941: recipe for target 'all' failed
make: *** [all] Error 2
make[1]: Entering directory '/home/james/src/build-gcc'
/bin/bash ../gcc-7.4.0/mkinstalldirs /home/james/opt/gcc-7.4.0 
/home/james/opt/gcc-7.4.0
make[2]: Entering directory '/home/james/src/build-gcc/fixincludes'
make[2]: *** No rule to make target 'install'.  Stop.
make[2]: Leaving directory '/home/james/src/build-gcc/fixincludes'
Makefile:3736: recipe for target 'install-fixincludes' failed
make[1]: *** [install-fixincludes] Error 2
make[1]: Leaving directory '/home/james/src/build-gcc'
Makefile:2337: recipe for target 'install' failed
make: *** [install] Error 2

我按照 OSDev Wiki 提供的步骤进行操作:https://wiki.osdev.org/Building_GCC。我需要这个编译器来工作,这样我就可以制作一个交叉编译器。为什么会发生这种情况以及如何解决它?

编辑:这是完整的 config.log 文件:http://www.mediafire.com/file/oco5szzfrr7hpmq/config.log/file

相关内容