遇到:checking build system type... Invalid configuration `loongarch64-linux-gnu': machine `loongarch64' not recognized
configure: error: /bin/bash config/config.sub loongarch64-linux-gnu failed
解决方法:在根目录下搜索config.sub,把找到的文件一个一个打开,修改后保存
通过vim命令打开config.sub,输入“/”进行搜索模式
找到:# Some are omitted here because they have special meanings below.
把下一行:1750a | 580 \
修改为:1750a | 580 | loongarch64 \
---------------------------------
找到:# Recognize the basic CPU types with company name.
把下一行:580-* \
修改为:580-* | loongarch64-* \
保存退出后即可