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 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效