From deb6c5b9200137423b9c594ff6a03bcc848a852e Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Wed, 10 Jun 2015 22:13:39 +1200 Subject: [PATCH] doc: hints on how to cross-bootstrap Change-Id: I854a093b9e1a62d2515ca114ee84956510925921 Reviewed-on: https://go-review.googlesource.com/10839 Reviewed-by: Ian Lance Taylor --- doc/install-source.html | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/doc/install-source.html b/doc/install-source.html index 31bc7167a7d..bf232407e70 100644 --- a/doc/install-source.html +++ b/doc/install-source.html @@ -110,6 +110,39 @@ Download the zip or tarball of Go 1.4 for your platform and extract it to location).

+

+If you want to install Go 1.5 on a system that is not supported by Go 1.4 (such +as linux/ppc64) you can either use +bootstrap.bash on a system that can bootstrap Go +1.5 normally, or bootstrap with gccgo 5. +

+ +

+When run as (for example) +

+ +
+$ GOOS=linux GOARCH=ppc64 ./bootstrap.bash
+
+ +

+bootstrap.bash cross-compiles a toolchain for that GOOS/GOARCH +combination, leaving the resulting tree in ../../go-${GOOS}-${GOARCH}-bootstrap. +That tree can be copied to a machine of the given target type +and used as GOROOT_BOOTSTRAP to bootstrap a local build. +

+ +

+To use gccgo, you need to arrange for $GOROOT_BOOSTRAP/bin/go to be +the go tool that comes as part of gccgo 5. For example on Ubuntu Vivid: +

+ +
+$ sudo apt-get install gccgo-5
+$ sudo update-alternatives --set go /usr/bin/go-5
+$ GOROOT_BOOTSTRAP=/usr ./make.bash
+
+

Install Git, if needed