9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Skip Tavakkolian <skip.tavakkolian@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image
Date: Fri, 28 Oct 2016 17:49:18 +0000	[thread overview]
Message-ID: <CAJSxfmL7_7Egy2GJ=0TpYngmBt+gsgyHwzMXouBkK4GSLPx3Ew@mail.gmail.com> (raw)
In-Reply-To: <CANUoZoF+SHiQPqHFxCfLjNGmD9KdHbBsVJYWSJ31LPeSPAyQ9A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1512 bytes --]

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
>
>

[-- Attachment #2: Type: text/html, Size: 2916 bytes --]

  parent reply	other threads:[~2016-10-28 17:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-27 16:26 Marshall Conover
2016-10-27 23:43 ` Chris McGee
2016-10-28  6:54   ` David du Colombier
2016-10-28  6:58     ` David du Colombier
2016-10-28 14:53       ` Chris McGee
2016-10-28 17:49       ` Skip Tavakkolian [this message]
2016-10-31 13:56 Marshall Conover

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJSxfmL7_7Egy2GJ=0TpYngmBt+gsgyHwzMXouBkK4GSLPx3Ew@mail.gmail.com' \
    --to=skip.tavakkolian@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).