Revision: badbefba0787
Branch: default
Author:
ar...@mgk.ro
Date: Wed Dec 3 18:05:36 2014 UTC
Log: Edited wiki page GoArm through web user interface.
https://code.google.com/p/go-wiki/source/detail?r=badbefba0787&repo=wiki
Modified:
/GoArm.wiki
=======================================
--- /GoArm.wiki Wed Nov 19 23:32:45 2014 UTC
+++ /GoArm.wiki Wed Dec 3 18:05:36 2014 UTC
@@ -327,3 +327,42 @@
}}}
_--T.J. Yang_
+
+== AppliedMicro X-Gene (ARMv8) ==
+
+Architecture: ARMv8 (64-bit) 8-core, 2.4GHz, 16GB RAM
+
+Operating System: Linux
+
+The linux/arm64 Go port is not functional yet, but you can run the
linux/arm port.
+
+{{{
+$ sudo apt-get install gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
+$
+$ cd go/src && CC='arm-linux-gnueabihf-gcc -static' GO_DISTFLAGS=-s
GOHOSTARCH=arm GOARM=7 CGO_ENABLED=0 ./make.bash
+$
+$ uname -a
+Linux xgene 3.16.0-25-generic #33-Ubuntu SMP Tue Nov 4 12:06:56 UTC 2014
aarch64 aarch64 aarch64 GNU/Linux
+$ go version
+go version devel +6a8045fd9da9 Wed Dec 03 18:33:35 2014 +0100 linux/arm
+$ go env
+GOARCH="arm"
+GOBIN=""
+GOCHAR="5"
+GOEXE=""
+GOHOSTARCH="arm"
+GOHOSTOS="linux"
+GOOS="linux"
+GOPATH="/home/aram"
+GORACE=""
+GOROOT="/home/aram/go"
+GOTOOLDIR="/home/aram/go/pkg/tool/linux_arm"
+CC="arm-linux-gnueabihf-gcc"
+GOGCCFLAGS="-static -fPIC -marm -pthread -fmessage-length=0"
+CXX="g++"
+CGO_ENABLED="1"
+}}}
+
+A static toolchain is required as arm64 Linux distributions don't ship the
necessary 32-bit arm libraries (except in a sysroot). `GO_DISTFLAGS=-s` is
not enough, `CC='arm-linux-gnueabihf-gcc -static'` is required to build a
static dist tool.
+
+_-- Aram Hăvărneanu_