“走吧” Windows 端口构建问题:8l 链接器崩溃
我想尝试一下“Go”编程语言,但我什至无法让一个简单的测试示例正常工作。我认为这可能是端口的问题,所以我在 gomingw 项目页面的问题下提交了一张票。
哪些步骤会重现该问题?
- 创建任何简单的 go 测试程序,
- 使用 8g 进行编译。 IE。 8g hello.go
- 将其与 8l 链接。 IE。 8l hello.8
预期输出是什么?你看到了什么?
我希望 8l 能够成功链接,没有错误。相反,我看到以下错误输出,然后发生崩溃。
> goos is not known: mingw
> warning: uanble to find runtime.a
> runtime.morestack not defined
您使用的是哪个版本的产品?在什么操作系统上?
这是在 Windows 7 上使用 gowin32_2010-12-02.zip
请在下面提供任何其他信息。
我在我的环境中设置了 4 个标准 go 变量,如下所示: goos = mingw, gobin = G:\oss\go\bin, goarch = 386, goroot = G:\oss\go
从查看错误来看,我想说它看起来需要来自 mingw gcc 工具集的东西?尽管我在自述文件或安装中都没有看到任何地方提到此要求。缺少的runtime.a 是什么?它是 mingw 的一部分吗?我还尝试过最新版本之前的一个版本,该问题也存在于该版本上。
有其他尝试过 Go 的 windows 端口的人遇到过这样的问题吗?可能是什么原因造成的?
谢谢
I'm looking to give the 'Go' programming language a try but I'm having trouble getting even a simple test example to work. I think it's probably an issue with the port so I've submitted a ticket under issues in gomingw project page.
What steps will reproduce the problem?
- Create any simple go test program
- compile it with 8g. ie. 8g hello.go
- link it with 8l. ie. 8l hello.8
What is the expected output? What do you see instead?
I expect 8l to link successfully with no errors. Instead I see the follow errors output followed with a crash.
> goos is not known: mingw
> warning: uanble to find runtime.a
> runtime.morestack not defined
What version of the product are you using? On what operating system?
This is on windows 7 with gowin32_2010-12-02.zip
Please provide any additional information below.
I have set the 4 standard go variables on my environment as follows:
goos = mingw, gobin = G:\oss\go\bin, goarch = 386, goroot = G:\oss\go
From looking at the error, I'm going to say it looks like it needs something from mingw gcc toolset? Though I see no mention of this requirement anywhere, neither in the readme or install. What is the runtime.a that is missing? Is it part of mingw? I've also tried one version before this latest one and the problem is present on that version as well.
Has anyone else that's tried Go's port of windows encountered an issue like this? What could be causing this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
错误消息中说明了失败的原因:
goos is notknown: mingw
。阅读有关设置 GOOS 环境变量的说明。 设置 GOOS=windows。您还应该使用最新版本的 Go Windows 端口二进制文件。
The reason for the failure is stated in the error message:
goos is not known: mingw
. Read the instructions for setting the GOOS environment variable. Set GOOS=windows.You should also be using the latest release of the Go Windows port binary.