Skip to content

Instantly share code, notes, and snippets.

@t-yuki
Last active August 29, 2015 14:15
Show Gist options
  • Save t-yuki/cf6d15cb7750699edb4f to your computer and use it in GitHub Desktop.
Save t-yuki/cf6d15cb7750699edb4f to your computer and use it in GitHub Desktop.
sudo apt-get install gcc gcc-aarch64-linux-gnu
git clone https://github.com/4ad/go.git go.arm64
cd go.arm64/src
GOARCH=arm64 ./all.bash # errors on runtime.GOMAXPROCS is not found
GOROOT=~/go.arm64 GOPATH=~/gopath PATH=~/go.arm64/bin:$PATH GOARCH=arm64 go tool
# not working yet
cd $GOPATH/src
cat <<'EOF' > main.go
package main
import "fmt"
func main() {
fmt.Println("hello arm64")
}
EOF
GOROOT=~/go.arm64 GOPATH=~/gopath PATH=~/go.arm64/bin:$PATH GOARCH=arm64 go build -o main
file main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment