arm64 native build
ikitayama opened this issue · 6 comments
ikitayama commented
I am wondering if either branch, dev.arm64 or mwhudson-bits can be checked out for
native build.
minux commented
the dev.arm64 can be native built, and that's the main development branch.
ikitayama commented
Here's what I got using that branch:
$ ./all.bash
Building Go bootstrap tool.
cmd/dist
ERROR: Cannot find /home/itaru.kitayama/go1.4/bin/go.
Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.
./make.bash: line 124: /home/itaru.kitayama/go1.4/bin/go: No such file or directory
minux commented
You need a working Go 1.4 at $HOME/go1.4 to build.
First build Go 1.4 with GOARCH=arm GOHOSTARCH=arm CGO_ENABLED=0
ikitayama commented
In the src dir,
$ CC='arm-linux-gnu-gcc -static' GOARCH=7 GOHOSTARCH=arm CGO_ENABLED=0 ./make.bash
it still looks for Go 1.4.
minux commented
You need to have Go 1.4 available at $HOME/go1.4.
There is no way to get around that requirement.
See https://golang.org/s/go15bootstrap for details on how to bootstrap Go 1.5.
4ad commented
Working as intended.