Go Cross compiler fails

338 views Asked by At

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

There are 1 answers

1
peterSO On

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.