9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)
@ 2016-10-28 19:31 Marshall Conover
  2016-10-28 20:14 ` David du Colombier
  0 siblings, 1 reply; 12+ messages in thread
From: Marshall Conover @ 2016-10-28 19:31 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1344 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 ...

> 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

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)
  2016-10-28 19:31 [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee) Marshall Conover
@ 2016-10-28 20:14 ` David du Colombier
  2016-10-29 12:49   ` Chris McGee
  0 siblings, 1 reply; 12+ messages in thread
From: David du Colombier @ 2016-10-28 20:14 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)
  2016-10-28 20:14 ` David du Colombier
@ 2016-10-29 12:49   ` Chris McGee
  2016-10-29 18:46     ` David du Colombier
  0 siblings, 1 reply; 12+ messages in thread
From: Chris McGee @ 2016-10-29 12:49 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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 <0intro@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
> 



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)
  2016-10-29 12:49   ` Chris McGee
@ 2016-10-29 18:46     ` David du Colombier
  2016-10-30  2:13       ` Chris McGee
  0 siblings, 1 reply; 12+ messages in thread
From: David du Colombier @ 2016-10-29 18:46 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

> 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

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)
  2016-10-29 18:46     ` David du Colombier
@ 2016-10-30  2:13       ` Chris McGee
  2016-10-30  8:39         ` David du Colombier
  0 siblings, 1 reply; 12+ messages in thread
From: Chris McGee @ 2016-10-30  2:13 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

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 <0intro@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

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)
  2016-10-30  2:13       ` Chris McGee
@ 2016-10-30  8:39         ` David du Colombier
  2016-10-31  1:08           ` Chris McGee
  0 siblings, 1 reply; 12+ messages in thread
From: David du Colombier @ 2016-10-30  8:39 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

> 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

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)
  2016-10-30  8:39         ` David du Colombier
@ 2016-10-31  1:08           ` Chris McGee
  2016-10-31  1:47             ` Stanley Lieber
  0 siblings, 1 reply; 12+ messages in thread
From: Chris McGee @ 2016-10-31  1:08 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

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 <0intro@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
> 


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)
  2016-10-31  1:08           ` Chris McGee
@ 2016-10-31  1:47             ` Stanley Lieber
  2016-11-01 13:05               ` Chris McGee
  0 siblings, 1 reply; 12+ messages in thread
From: Stanley Lieber @ 2016-10-31  1:47 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Chris McGee <newton688@gmail.com> 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 <0intro@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




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)
  2016-10-31  1:47             ` Stanley Lieber
@ 2016-11-01 13:05               ` Chris McGee
  2016-11-13 18:07                 ` David du Colombier
  0 siblings, 1 reply; 12+ messages in thread
From: Chris McGee @ 2016-11-01 13:05 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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 <sl@9front.org> wrote:
> 
> Chris McGee <newton688@gmail.com> 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 <0intro@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
> 
> 



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)
  2016-11-01 13:05               ` Chris McGee
@ 2016-11-13 18:07                 ` David du Colombier
  2016-11-13 18:26                   ` Chris McGee
  0 siblings, 1 reply; 12+ messages in thread
From: David du Colombier @ 2016-11-13 18:07 UTC (permalink / raw)
  To: 9fans

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



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)
  2016-11-13 18:07                 ` David du Colombier
@ 2016-11-13 18:26                   ` Chris McGee
  2016-11-13 18:49                     ` David du Colombier
  0 siblings, 1 reply; 12+ messages in thread
From: Chris McGee @ 2016-11-13 18:26 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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 <0intro@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
> 



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee)
  2016-11-13 18:26                   ` Chris McGee
@ 2016-11-13 18:49                     ` David du Colombier
  0 siblings, 0 replies; 12+ messages in thread
From: David du Colombier @ 2016-11-13 18:49 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> 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



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-11-13 18:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-28 19:31 [9fans] Making available a pre-compiled go binary for Miller's plan-9 Pi image (Chris McGee) Marshall Conover
2016-10-28 20:14 ` David du Colombier
2016-10-29 12:49   ` Chris McGee
2016-10-29 18:46     ` David du Colombier
2016-10-30  2:13       ` Chris McGee
2016-10-30  8:39         ` David du Colombier
2016-10-31  1:08           ` Chris McGee
2016-10-31  1:47             ` Stanley Lieber
2016-11-01 13:05               ` Chris McGee
2016-11-13 18:07                 ` David du Colombier
2016-11-13 18:26                   ` Chris McGee
2016-11-13 18:49                     ` David du Colombier

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