Re: [9fans] Go on Plan 9?

2016-04-12 Thread Chris McGee
I see now that there is plan9/arm in tip (1.7), but not 1.6. I tried a bootstrapped version on my RPi but it fails with a "fork/exec ... virtual memory allocation failed” error when I try to compile anything. According to stats I have plenty of memory left when it runs. I’m not sure what to mak

Re: [9fans] Go on Plan 9?

2016-04-12 Thread Skip Tavakkolian
I think Richards' CL's were submitted to main Go repo before Go 1.6 and are now in 1.7 dev branch (tip). I believe I first saw the announcement on godev list. as a Go user, it is a good way of keeping up with the fast-paced development; e.g. IBM's linux/s390x port went in today! I usually keep one

Re: [9fans] Go on Plan 9?

2016-04-12 Thread sl
Skip, isn't the point here that being able to run go binaries in Plan 9 on an arm machine is news to most Plan 9 users? Perhaps even news to those who regularly use go on Plan 9. sl

Re: [9fans] Go on Plan 9?

2016-04-12 Thread Chris McGee
Thanks, I'll give it a shot. I noticed that there are some assembly files in golang for plan9/386 and no equivalent for plan9/arm so I assumed that it wouldn't work with that combination. Chris > On Apr 12, 2016, at 5:26 PM, Skip Tavakkolian > wrote: > > i've not built Go under plan9/arm.

Re: [9fans] Go on Plan 9?

2016-04-12 Thread Skip Tavakkolian
i've not built Go under plan9/arm. however, in practice (in a real Plan 9 environment) this is not an issue. the way authentication and namespaces (including file server) work in a Plan 9 envrionment, it is natural to use the fastest cpu available to (cross) compile apps. typical sessions are like

Re: [9fans] Go on Plan 9?

2016-04-12 Thread Dave MacFarlane
I've managed to get Go running on an RPi2 using a similar method, but: 1. You need to make sure you're using go-tip. <= 1.6 doesn't have Plan9/arm support. 2. I had to apply this patch that Richard Miller sent me to my kernel: term% diff /n/sources/contrib/miller/9/bcm/mem.h /sys/src/9/bcm/mem.h

Re: [9fans] Go on Plan 9?

2016-04-12 Thread Chris McGee
Hi Skip, Have you managed to get Go running on an RPi this way? Cheers, Chris > > If you run Plan 9 in a VM, emulator or a confined device (RPi), it will be > easier/faster to cross compile your app and copy it over. E.g. to compile for > 9Pi: > $ GOOS=plan9 GOARCH=arm go build > >

Re: [9fans] Go on Plan 9?

2016-04-12 Thread Skip Tavakkolian
Yes, this works and is the easier of the two methods. Using a desktop OS and starting no Go compilers: 1. download the Go 1.6 binaries for your desktop OS and install them; set GOROOT_BOOTSTRAP to that directory (e.g. /usr/local/go) 2. copy the Go 1.6 sources (either the tar.gz or git clone of s