Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
Qiang Huang authored on 2016/06/28 15:31:34... | ... |
@@ -94,8 +94,9 @@ RUN set -x \ |
94 | 94 |
|
95 | 95 |
# Install Go |
96 | 96 |
# We don't have official binary tarballs for ARM64, eigher for Go or bootstrap, |
97 |
-# so we use the official armv6 released binaries as a GOROOT_BOOTSTRAP, and |
|
98 |
-# build Go from source code. |
|
97 |
+# so we use gccgo as bootstrap to build Go from source code. |
|
98 |
+# We don't use the official ARMv6 released binaries as a GOROOT_BOOTSTRAP, because |
|
99 |
+# not all ARM64 platforms support 32-bit mode. 32-bit mode is optional for ARMv8. |
|
99 | 100 |
ENV GO_VERSION 1.6.2 |
100 | 101 |
RUN mkdir /usr/src/go && curl -fsSL https://storage.googleapis.com/golang/go${GO_VERSION}.src.tar.gz | tar -v -C /usr/src/go -xz --strip-components=1 \ |
101 | 102 |
&& cd /usr/src/go/src \ |