dongshuql24533 2010-12-08 01:26
浏览 40
已采纳

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

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?

  1. Create any simple go test program
  2. compile it with 8g. ie. 8g hello.go
  3. 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

  • 写回答

1条回答 默认 最新

  • duangu1878 2010-12-08 06:42
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于大棚监测的pcb板设计
  • ¥20 sim800c模块 at指令及平台
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计