Last active
August 29, 2015 14:15
-
-
Save t-yuki/cf6d15cb7750699edb4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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