Go交叉编译失败

huangapple go评论90阅读模式
英文:

Go Cross compiler fails

问题

当按照这个链接进行交叉编译时!

http://dave.cheney.net/2012/09/08/an-introduction-to-cross-compilation-with-go

在执行:go-crosscompile-build-all 时失败

出现以下错误:

# 构建 C 引导工具。
cmd/dist
go tool dist: FAILED: git rev-parse --abbrev-ref HEAD
./make.bash: eval: line 135: syntax error near unexpected token `('

英文:

When followed this link to do cross compilation!

http://dave.cheney.net/2012/09/08/an-introduction-to-cross-compilation-with-go

Failing at : % go-crosscompile-build-all

Getting Below error :

# Building C bootstrap tool.
cmd/dist
go tool dist: FAILED: git rev-parse --abbrev-ref HEAD
./make.bash: eval: line 135: syntax error near unexpected token `('

答案1

得分: 2

你说:

> 当我按照这个链接进行交叉编译时!
>
> http://dave.cheney.net/2012/09/08/an-introduction-to-cross-compilation-with-go

这篇文章明确说明它已经过时了。

> 用Go进行交叉编译的介绍
>
> 你好。感谢阅读这篇文章。现在Go 1.1已经发布,更新的版本
> 的文章已经可用。

请按照更新的文章中的说明进行操作。

英文:

You say:

> When followed this link to do cross compilation!
>
> http://dave.cheney.net/2012/09/08/an-introduction-to-cross-compilation-with-go

The article clearly states that it is obsolete.

> An introduction to cross compilation with Go
>
> Hello. Thanks for reading this article. Now that Go 1.1 has been
> released an updated
> version

> of this article is available.

Follow the instructions in the updated article.

huangapple
  • 本文由 发表于 2015年6月17日 17:50:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/30888062.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定