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