不支持配置x86_64-pc-msys

问题描述 投票:0回答:1

我正在尝试通过

msys2
在我的 64 位 Windows 10 PC 上构建 GCC 10.1,但我收到了这个我不明白的奇怪错误。当我
--host
d GCC时,我没有设置3个开关:
--build
--target
./configure
。所以 GCC 选择了这些:

checking build system type... x86_64-pc-msys
checking host system type... x86_64-pc-msys
checking target system type... x86_64-pc-msys

我已经提供了所有必需的依赖项,还更新了

msys2
pacman -Syuu

checking if mkdir takes one argument... no
*** Configuration x86_64-pc-msys not supported
make[2]: *** [Makefile:4443: configure-stage1-gcc] Error 1
make[2]: Leaving directory '/c/gcc'
make[1]: *** [Makefile:25627: stage1-bubble] Error 2
make[1]: Leaving directory '/c/gcc'
make: *** [Makefile:1001: all] Error 2
gcc
1个回答
0
投票

我终于找到了一种方法,本质上你需要更新autotools config.sub和config.guess,你可以通过本质上像这样下载上游文件来做到这一点

wget 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' -O './config.guess'
wget 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' -O './config.sub'

./configure

直接来自 git,这至少可以消除该错误。

© www.soinside.com 2019 - 2024. All rights reserved.