From: K. "pestophagous" Heller $GOROOT_BOOTSTRAP/bin/go
should be
the go
command binary for the bootstrap toolchain.
To use a binary release as a bootstrap toolchain, see the downloads page or use any other packaged Go distribution.
+
To build a bootstrap toolchain from source, use
either the git branch release-branch.go1.4
or
@@ -159,6 +163,17 @@ the environment, and run make.bash
(or,
on Windows, make.bat
).
+Once the Go 1.4 source has been unpacked into your GOROOT_BOOTSTRAP directory,
+you must keep this git clone instance checked out to branch
+release-branch.go1.4
. Specifically, do not attempt to reuse
+this git clone in the later step named "Fetch the repository." The go1.4
+bootstrap toolchain must be able to properly traverse the go1.4 sources
+that it assumes are present under this repository root.
+
To cross-compile a bootstrap toolchain from source, which is
necessary on systems Go 1.4 did not target (for
@@ -181,6 +196,8 @@ 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 as the bootstrap toolchain, you need to arrange
for $GOROOT_BOOTSTRAP/bin/go
to be the go tool that comes
@@ -246,6 +263,11 @@ that if Go is checked out in $HOME/go
, it will conflict with
the default location of $GOPATH
.
See GOPATH
below.
git clone
again at this point
+(to checkout the latest <tag>
), because you must keep your
+go1.4 repository distinct.
+
If you intend to modify the go source code, and