0

我需要构建一个用 Go 编写的工具。Go 不支持 Windows 2000,所以我想使用内置支持 Go (gccgo) 的最新 GCC 编译器。我在 windows 2000 机器(oracle 虚拟机)上有 cygwin 1.7(也许我需要一个 cygwin 专家来帮助在这个设置中获取最新的 gcc。)

我找不到要遵循的分步过程。我尝试在 Windows 2000 上的 cygwin 1.7 上构建 gcc 9.2,但它崩溃了。

我在 cygwin 1.7 (windows 2000) 上从 gcc 9.2 源代码运行 ./configure 时遇到的错误:

./configure: line 1932: cannot create temp file for here document: Device or resource busy
./configure: line 1944: cannot create temp file for here document: Device or resource busy
./configure: line 1979: cannot create temp file for here document: Device or resource busy
./configure: line 2141: cannot create temp file for here document: Device or resource busy
./configure: line 2145: cannot create temp file for here document: Device or resource busy
./configure: line 2149: cannot create temp file for here document: Device or resource busy
./configure: line 2153: cannot create temp file for here document: Device or resource busy
./configure: line 2157: cannot create temp file for here document: Device or resource busy
./configure: line 2161: cannot create temp file for here document: Device or resource busy
configure: error: cannot run /bin/sh ./config.sub
4

1 回答 1

0

我为 Windows 构建了自己的 GCC 个人版本(请参阅http://winlibs.com),并且我尝试了启用 Go 语言的 GCC 9,但我得到:

configure: WARNING: go not supported for this target
configure: error:
The following requested languages could not be built: go
Supported languages are: c,brig,c,c++,d,fortran,jit,lto,objc,obj-c++

所以看起来 GCC 在 Windows 上还不支持 Go ......

让我们希望即将发布的 GCC 10 支持 Go。

于 2020-04-30T11:52:39.100 回答