An alternative to building a Go 1.4.3 bootstrap environment, is to build a
Go 1.7 bootstrap environment for Plan 9 in a mainstream environment like
Linux or Mac OS X, then use it to build Go 1.7 on Plan 9. General outline
is to:
* follow the instructions on how to clone and build Go 1.7 on, say, Linux.
* once Go is built and installed, build a Plan 9 bootstrap
cd $GOROOT/src
GOOS=plan9 GOARCH=386 ./boostrap.bash
this produces the bootstrap hierarchy in ../../go-plan9-386-bootstrap.
copy the hierarchy over to Plan 9 and set GOROOT_BOOTSTRAP to that
location, then build Go 1.7 on Plan 9.
The general explanation of bootstrapping Go is here:
https://golang.org/doc/install/source#go14
FYI, when i need to 'git clone' something on Plan 9, I mount the fs from
Linux (p9p) and do the git stuff there.
On Fri, Oct 28, 2016 at 6:13 AM David du Colombier <[email protected]> wrote:
> > you have to have an n-1 version of Go to compile n
>
> You have to bootstrap from Go >= 1.4.
>
> If you want to build the current Go source from scratch on plan9/386,
> you can just do:
>
> cd /tmp
> git clone -b go1.4.3 https://go.googlesource.com/go go1.4
> cd go1.4
> hget http://9legacy.org/go/patch/syscall-exec.diff | ape/patch -p1
> cd src
> make.rc
>
> GOROOT_BOOTSTRAP=/tmp/go1.4
> cd /tmp
> git clone https://go.googlesource.com/go
> cd go/src
> make.rc
>
> This is documented on https://github.com/golang/go/wiki/Plan9
>
> --
> David du Colombier
>
>