Closed bamnet closed 6 years ago
Until the new platform system is fully ready (hopefully in the next month or so) we don't directly support building for anything except amd64 in linux or mac flavours. If you look in go/private/toolchain.bzl#L54 you will see it picking linux_x86_64 if the host os is linux. You can try to change that and see if it works. Let us know how you get on.
I also build failed on POWER ppc64le with bazel 0.5.4 and filed an issue here https://github.com/bazelbuild/bazel/issues/3815
This should now all be working.
We detect s390x and ppc64le based on uname -p
in go/private/sdk.bzl#L28.
If you need a new addition to the list it's a very easy change (but we can't make it without a platform to test it on, so we happily accept contributions)
I'm trying to build a small go_library on a Raspberry Pi 3 using Bazel 0.5.1 + rules_go 0.5.0. I end up getting a bunch of errors from go build:
During the initial setup, it looks like the amd64 build of Go is downloaded, not the arm6l build I would expect:
Downloading https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz
.I tried mucking around in the skylark but couldn't figure out where go_repositories() is deciding to use the amd64 variant.