Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)

2016-11-13 Thread David du Colombier
> Will you add new Go releases there as they come out so that we can bootstrap 
> from previous releases?

Yes. I've scripted the process to do that.

> Also, the Git script is working quite well for me. Thanks for that too.

You're welcome :-)

-- 
David du Colombier



Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)

2016-11-13 Thread Chris McGee
Thanks David,

Will you add new Go releases there as they come out so that we can bootstrap 
from previous releases?

Also, the Git script is working quite well for me. Thanks for that too.

Chris

> On Nov 13, 2016, at 1:07 PM, David du Colombier <0in...@gmail.com> wrote:
> 
> I've updated the Go binary packages with the fix to make.rc:
> 
> http://9legacy.org/download/go/go1.7.3-plan9-386-bootstrap.tbz
> http://9legacy.org/download/go/go1.7.3-plan9-amd64-bootstrap.tbz
> http://9legacy.org/download/go/go1.7.3-plan9-arm6-bootstrap.tbz
> http://9legacy.org/download/go/go1.7.3-plan9-arm7-bootstrap.tbz
> 
> -- 
> David du Colombier
> 



Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)

2016-11-13 Thread David du Colombier
I've updated the Go binary packages with the fix to make.rc:

http://9legacy.org/download/go/go1.7.3-plan9-386-bootstrap.tbz
http://9legacy.org/download/go/go1.7.3-plan9-amd64-bootstrap.tbz
http://9legacy.org/download/go/go1.7.3-plan9-arm6-bootstrap.tbz
http://9legacy.org/download/go/go1.7.3-plan9-arm7-bootstrap.tbz

-- 
David du Colombier



Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)

2016-11-01 Thread Chris McGee
Thanks David, Stanley,

I managed to get the cross compile to work using the 9legacy go binaries and 
the git script.

The workaround for the error I received before is to create a dummy rc script 
called 'install' and put it into my /bin. The go make.rc script calls it and 
continues on seemingly fine afterwards.

Chris

> On Oct 30, 2016, at 9:47 PM, Stanley Lieber  wrote:
> 
> Chris McGee  wrote:
> 
>> I tried this command with both go 1.7.3 and master branches. Both fail
>> right after “ Building packages and commands for host, plan9/386”
>> with an error “install: ./install not found.”
>> 
>> It seems like the go bootstrap tool is trying to call a binary called
>> “install” but there are none on my system. Is there such a command on
>> p9bl? Maybe 9front doesn’t have it?
>> 
>> It works fine if I don’t try to cross compile to plan9/arm or even
>> linux/386.
>> 
>> Chris
>> 
>>> On Oct 30, 2016, at 4:39 AM, David du Colombier <0in...@gmail.com>
>> wrote:
>>> 
 To cross compile with make.rc do you just set GOARCH and GOOS and
>> just run it?
>>> 
>>> Yes and you can add the --no-rebuild flag to prevent cmd/dist to
>> remove the existing binaries.
>>> 
>>> For example:
>>> 
>>> ℅ GOOS=plan9 GOARCH=arm make.rc --no-rebuild
>>> 
>>> -- 
>>> David du Colombier
>>> 
> 
> 'install' is from BSD. It does not exist in Plan 9.
> 
> sl
> 
> 



Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image

2016-10-31 Thread Marshall Conover
> On Oct 28, 2016, at 4:14 PM, David du Colombier <0in...@gmail.com> wrote:
>
> As you wish:
>
> http://www.9legacy.org/download/go/go1.7.3-plan9-386-bootstrap.tbz
> http://www.9legacy.org/download/go/go1.7.3-plan9-amd64-bootstrap.tbz
> http://www.9legacy.org/download/go/go1.7.3-plan9-arm6-bootstrap.tbz
> http://www.9legacy.org/download/go/go1.7.3-plan9-arm7-bootstrap.tbz

Awesome! Thanks for putting these up. I wasn't aware of 9legacy, I'll have
to go looking around.

Thanks!

Marshall


Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)

2016-10-30 Thread Stanley Lieber
Chris McGee  wrote:

>I tried this command with both go 1.7.3 and master branches. Both fail
>right after “ Building packages and commands for host, plan9/386”
>with an error “install: ./install not found.”
>
>It seems like the go bootstrap tool is trying to call a binary called
>“install” but there are none on my system. Is there such a command on
>p9bl? Maybe 9front doesn’t have it?
>
>It works fine if I don’t try to cross compile to plan9/arm or even
>linux/386.
>
>Chris
>
>> On Oct 30, 2016, at 4:39 AM, David du Colombier <0in...@gmail.com>
>wrote:
>> 
>> > To cross compile with make.rc do you just set GOARCH and GOOS and
>just run it?
>> 
>> Yes and you can add the --no-rebuild flag to prevent cmd/dist to
>remove the existing binaries.
>> 
>> For example:
>> 
>> ℅ GOOS=plan9 GOARCH=arm make.rc --no-rebuild
>> 
>> -- 
>> David du Colombier
>> 

'install' is from BSD. It does not exist in Plan 9.

sl




Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)

2016-10-30 Thread Chris McGee
I tried this command with both go 1.7.3 and master branches. Both fail right 
after “ Building packages and commands for host, plan9/386” with an error 
“install: ./install not found.”

It seems like the go bootstrap tool is trying to call a binary called “install” 
but there are none on my system. Is there such a command on p9bl? Maybe 9front 
doesn’t have it?

It works fine if I don’t try to cross compile to plan9/arm or even linux/386.

Chris

> On Oct 30, 2016, at 4:39 AM, David du Colombier <0in...@gmail.com> wrote:
> 
> > To cross compile with make.rc do you just set GOARCH and GOOS and just run 
> > it?
> 
> Yes and you can add the --no-rebuild flag to prevent cmd/dist to remove the 
> existing binaries.
> 
> For example:
> 
> ℅ GOOS=plan9 GOARCH=arm make.rc --no-rebuild
> 
> -- 
> David du Colombier
> 



Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)

2016-10-30 Thread David du Colombier
> To cross compile with make.rc do you just set GOARCH and GOOS and just
run it?

Yes and you can add the --no-rebuild flag to prevent cmd/dist to remove the
existing binaries.

For example:

℅ GOOS=plan9 GOARCH=arm make.rc --no-rebuild

-- 
David du Colombier


Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)

2016-10-29 Thread Chris McGee
To cross compile with make.rc do you just set GOARCH and GOOS and just run it?


> On Oct 29, 2016, at 2:46 PM, David du Colombier <0in...@gmail.com> wrote:
> 
> > Maybe cross compile isn't working with Go on plan9 yet?
> 
> I don't know about bootstrap.sh, but cross-compiling works fine on Plan 9 
> using make.rc.
> 
> -- 
> David du Colombier


Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)

2016-10-29 Thread David du Colombier
> Maybe cross compile isn't working with Go on plan9 yet?

I don't know about bootstrap.sh, but cross-compiling works fine on Plan 9
using make.rc.

-- 
David du Colombier


Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)

2016-10-29 Thread Chris McGee
Thanks David,

These binaries are great as a starting point to compile newer versions of Go.

I almost fully automated the preparation of my 9front rpi sd card images. Cross 
compiling from plan9 386 to plan9 arm using the bootstrap fails with this error:

Install: './install' not found

Maybe cross compile isn't working with Go on plan9 yet?

Thanks,
Chris

> On Oct 28, 2016, at 4:14 PM, David du Colombier <0in...@gmail.com> wrote:
> 
> As you wish:
> 
> http://www.9legacy.org/download/go/go1.7.3-plan9-386-bootstrap.tbz
> http://www.9legacy.org/download/go/go1.7.3-plan9-amd64-bootstrap.tbz
> http://www.9legacy.org/download/go/go1.7.3-plan9-arm6-bootstrap.tbz
> http://www.9legacy.org/download/go/go1.7.3-plan9-arm7-bootstrap.tbz
> 
> -- 
> David du Colombier
> 



Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)

2016-10-28 Thread David du Colombier
As you wish:

http://www.9legacy.org/download/go/go1.7.3-plan9-386-bootstrap.tbz
http://www.9legacy.org/download/go/go1.7.3-plan9-amd64-bootstrap.tbz
http://www.9legacy.org/download/go/go1.7.3-plan9-arm6-bootstrap.tbz
http://www.9legacy.org/download/go/go1.7.3-plan9-arm7-bootstrap.tbz

-- 
David du Colombier



Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)

2016-10-28 Thread Marshall Conover
> 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 ...

> If you want to build the current Go source from scratch on plan9/386,
you can just do...

The binary I built was specifically for arm (or more accurately, for the
raspi), on which I initially spent a chunk of time trying to get 1.4
building; eventually, as suggested here, cross-compiling on my Linux box
was how I ended up getting things working. However, that process wasn't
really intuitive, and felt a good chunk like wasted time.

I figured having a binary available would save people some hassle; there's
no real reason to make everyone cross-compile the binary, especially with
as small a target platform as the pi, and for people like myself who
weren't immediately aware of exactly what to do, it's more things to figure
out for no real reason. Bandwidth is cheap, the binary's small, so I
figured having it around would help other people who install plan 9 on
their Pi to check it out.

I'm already hosting it myself, but it seems like my link got me
spam-filtered. I'm more just wondering where to make it more obvious that
it's available, so noobies like myself can just grab it and play instead of
having to spin the same wheels I did.

Thanks!

mars


Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image

2016-10-28 Thread Skip Tavakkolian
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 <0in...@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
>
>


Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image

2016-10-28 Thread Chris McGee
Thanks David,

I will give this a try.

Chris

On Oct 28, 2016, at 2:58 AM, David du Colombier <0in...@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
> 



Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image

2016-10-28 Thread David du Colombier
> 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



Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image

2016-10-27 Thread David du Colombier
If you have troubles building Go on Plan 9, you can easily cross-compile
Go for plan9/arm from another operating system.

cd /usr/local/go/src
GOOS=plan9 GOARCH=arm GOARM=7 ./bootstrap.bash

Then you get /usr/local/go-plan9-arm-bootstrap.tbz, that you can extract
on your Raspberry Pi.

-- 
David du Colombier



Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image

2016-10-27 Thread Chris McGee
I was thinking about this myself. I'm more in favour of a script that downloads 
the go source and compiles it since it seems to be more in the spirit of plan9.

The trouble is that Go has made it harder to do now that you have to have an 
n-1 version of Go to compile n. This started with 1.5 but 1.5 doesn't seem to 
compile or run well on plan9.

Maybe a compromise would be to have tbz binaries for 1.7 and a script that 
takes them and uses it to compile a fresh copy from sources and cleans up the 
bootstrap. Otherwise, you need to cross compile from another OS. Yuck.

Chris

> On Oct 27, 2016, at 12:26 PM, Marshall Conover  wrote:
> 
> Hi All!
> 
>I compiled a Go binary for use on Richard Miller's raspberry pi image in 
> contrib (thanks for that Richard, by the way). I threw up a link to the 
> binary in a previous email a week or two ago, but I think that email got spam 
> filtered, so I won't link it again - but, is there a good place to make this 
> available for ease-of-use? Woudl've been nice to just hget a tgz and extract 
> it when I was getting things up and running the other day, instead of getting 
> go set up on my linux box, compiling it, setting the final_goroot, etc. 
> Richard, if you're comfortable with it, I could pass it to you to throw up on 
> your contrib.
> 
> Thanks!
> 
> Marshall


[9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image

2016-10-27 Thread Marshall Conover
Hi All!

   I compiled a Go binary for use on Richard Miller's raspberry pi image in
contrib (thanks for that Richard, by the way). I threw up a link to the
binary in a previous email a week or two ago, but I think that email got
spam filtered, so I won't link it again - but, is there a good place to
make this available for ease-of-use? Woudl've been nice to just hget a tgz
and extract it when I was getting things up and running the other day,
instead of getting go set up on my linux box, compiling it, setting the
final_goroot, etc. Richard, if you're comfortable with it, I could pass it
to you to throw up on your contrib.

Thanks!

Marshall