简体   繁体   English

Windows端口构建问题:8l链接器崩溃

[英]'Go' windows port build problems: 8l linker crashes

I'm looking to give the 'Go' programming language a try but I'm having trouble getting even a simple test example to work. 我正在尝试尝试“ Go”编程语言,但是即使是一个简单的测试示例也无法正常工作。 I think it's probably an issue with the port so I've submitted a ticket under issues in gomingw project page. 我认为可能是港口问题,因此我在gomingw项目页面的问题下提交了票证。


What steps will reproduce the problem? 哪些步骤将重现该问题?

  1. Create any simple go test program 创建任何简单的go测试程序
  2. compile it with 8g. 用8g编译。 ie. 即。 8g hello.go 8克hello.go
  3. link it with 8l. 与8l链接。 ie. 即。 8l hello.8 8l你好8

What is the expected output? 什么是预期的输出? What do you see instead? 你看到了什么呢?

I expect 8l to link successfully with no errors. 我希望8l可以成功链接而不会出现错误。 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 这是Windows 7上的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 我在我的环境中设置了4个标准go变量,如下所示: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? 从查看错误开始,我要说的是它似乎需要使用mingw gcc工具集中的某些内容? Though I see no mention of this requirement anywhere, neither in the readme or install. 尽管我在任何地方都没有提到此要求,但自述文件或安装文件中都没有。 What is the runtime.a that is missing? 缺少什么runtime.a? Is it part of mingw? 它是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? 其他尝试过Go的Windows端口的人遇到这样的问题吗? What could be causing this? 是什么原因造成的?

Thanks 谢谢

The reason for the failure is stated in the error message: goos is not known: mingw . 错误消息中指出了失败的原因: goos is not known: mingw Read the instructions for setting the GOOS environment variable. 阅读有关设置GOOS环境变量的说明。 Set GOOS=windows. 设置GOOS = windows。

You should also be using the latest release of the Go Windows port binary . 您还应该使用最新版本的Go Windows端口二进制文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM