News for hackers. Stuff that matters.
Re:Golang on ARM by vessenes on Tuesday November 17, 2015 @03:07PM (#10583598)
It's incredible to run buildall.sh on a recent go repo and see all the cross-compilers get built with no fuss or hassle. There are at least 30 different target platforms I can get to from my ubuntu box with a single command line.

I'm not aware of anything that even comes close to tooling out cross compilation so easily.

Re:Golang on ARM by bch on Tuesday November 17, 2015 @04:09PM (#10583962)
It's called NetBSD.

build.sh cross compiles one codebase for 57(+)[0] architectures. Even for a "native" build, the tooling is the same abstraction that builds for a completely foreign target, so it's continuously well-exercised.

[0] http://www.netbsd.org/ports/

Re:Golang on ARM by bbrazil on Tuesday November 17, 2015 @04:14PM (#10583993)
I do nightly binaries for Prometheus in all the possible archs, while things should compile perfectly there can be small things that prevent things from cross-compiling.

darwin/arm, darwin/arm64, plan9/386, plan9/amd64 and solaris/amd64 don't compile for any of the 11 binaries (e.g. plan9 doesn't work due to logrus not having support for it).

This leaves me with the list at http://www.robustperception.io/prometheus-nightly-binaries/ That's still 20 architectures I can compile almost everything to automatically with an ansible+jenkins setup.

Re:Golang on ARM by 4ad on Tuesday November 17, 2015 @05:21PM (#10584430)
What is the problem with solaris/amd64?
Re:Golang on ARM by bbrazil on Tuesday November 17, 2015 @05:54PM (#10584618)
../../Sirupsen/logrus/text_formatter.go:28: undefined: IsTerminal

The logrus library we use for logging doesn't support Solaris.

Re:Golang on ARM by threemux on Tuesday November 17, 2015 @09:44PM (#10585580)
Re:Golang on ARM by bbrazil on Wednesday November 18, 2015 @07:31AM (#10587298)
Good to know, thanks. We vendor our dependencies so it'll be next release before this will work out of the box.