From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: <41B5A142-CD49-456F-AA4C-782EE401A192@gmail.com> In-Reply-To: From: Skip Tavakkolian Date: Fri, 28 Oct 2016 17:49:18 +0000 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a1140ac6ed448cf053ff07a8e Subject: Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image Topicbox-Message-UUID: a7525150-ead9-11e9-9d60-3106f5b1d025 --001a1140ac6ed448cf053ff07a8e Content-Type: text/plain; charset=UTF-8 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 <0intro@gmail.com> 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 > > --001a1140ac6ed448cf053ff07a8e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
An alternative to building a Go 1.4.3 bootstrap environmen= t, is to build a Go 1.7 bootstrap environment for Plan 9 in a mainstream en= vironment like Linux or Mac OS X, then use it to build Go 1.7 on Plan 9. = =C2=A0 General outline is to:

* follow the instructions = on how to clone and build Go 1.7 on, say, Linux.
* once Go is bui= lt =C2=A0and installed, build a Plan 9 bootstrap=C2=A0
=C2=A0 =C2= =A0 cd $GOROOT/src
=C2=A0 =C2=A0 GOOS=3Dplan9 GOARCH=3D386 ./boos= trap.bash

this produces the bootstrap hierarchy in= ../../go-plan9-386-bootstrap. =C2=A0copy the hierarchy over to Plan =C2=A0= 9 and set GOROOT_BOOTSTRAP to that location, then build Go 1.7 on Plan 9.

The general explanation of bootstrapping Go is here= :

FY= I, when i need to 'git clone' something on Plan 9, I mount the fs f= rom Linux (p9p) and do the git stuff there.
=
On Fri, Oct 28, 2016 at 6:1= 3 AM David du Colombier <0intro@gmai= l.com> wrote:
> you have = to have an n-1 version of Go to compile n

You have to bootstrap from Go >=3D 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/g= o go1.4
cd go1.4
hget http://9legacy.org/go/patch/sy= scall-exec.diff | ape/patch -p1
cd src
make.rc

GOROOT_BOOTSTRAP=3D/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

--001a1140ac6ed448cf053ff07a8e--