在 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

相關內容