From: Skip Tavakkolian <skip.tavakkolian@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Go on Plan 9?
Date: Tue, 12 Apr 2016 14:26:40 -0700 [thread overview]
Message-ID: <CAJSxfmKKtEfEDk0TcUeeeVJtp3_TDmWqjPtKOWJefpgmQwE0ww@mail.gmail.com> (raw)
In-Reply-To: <C37AE86F-CA3A-40F8-B960-1E244B12AD1E@yahoo.ca>
[-- Attachment #1: Type: text/plain, Size: 2921 bytes --]
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 this:
supermic% ls -l
d-rwxrwxr-x M 5543 fst fst 0 Jul 21 2015 .hg
--rw-rw-r-- M 5543 fst fst 1071 Feb 10 2013 LICENSE
--rw-rw-r-- M 5543 fst fst 206 Feb 10 2013 README
--rw-rw-r-- M 5543 fst fst 12477 Feb 10 2013 admui.go
--rw-rw-r-- M 5543 fst fst 6332 Feb 10 2013 client.go
--rw-rw-r-- M 5543 fst fst 8623 Feb 10 2013 index.html
--rw-rw-r-- M 5543 fst fst 450 Feb 10 2013 logger.go
--rw-rw-r-- M 5543 fst fst 1307 Feb 10 2013 main.go
--rw-rw-r-- M 5543 fst fst 4232 May 13 2013 server.go
--rwxrwxr-x M 5543 fst fst 5977542 Apr 12 13:57 tcpmeter
supermic% rm tcpmeter
supermic% go build
supermic% ls -ltr
--rw-rw-r-- M 5543 fst fst 6332 Feb 10 2013 client.go
--rw-rw-r-- M 5543 fst fst 450 Feb 10 2013 logger.go
--rw-rw-r-- M 5543 fst fst 1071 Feb 10 2013 LICENSE
--rw-rw-r-- M 5543 fst fst 1307 Feb 10 2013 main.go
--rw-rw-r-- M 5543 fst fst 206 Feb 10 2013 README
--rw-rw-r-- M 5543 fst fst 12477 Feb 10 2013 admui.go
--rw-rw-r-- M 5543 fst fst 8623 Feb 10 2013 index.html
--rw-rw-r-- M 5543 fst fst 4232 May 13 2013 server.go
d-rwxrwxr-x M 5543 fst fst 0 Jul 21 2015 .hg
--rwxrwxr-x M 5543 fst fst 5855281 Apr 12 14:00 tcpmeter
supermic% file tcpmeter
tcpmeter: 386 plan 9 executable
supermic% ./tcpmeter -?
flag provided but not defined: -?
2016/04/12 14:00:31 usage: ./tcpmeter (-c|-s) [-r [host:]port] [-h
[host:]port] [-l logfile]
supermic% GOARCH=arm go build
supermic% file tcpmeter
tcpmeter: arm plan 9 executable
supermic% cpu -h rpi2
rpi2% ./tcpmeter -?
flag provided but not defined: -?
2016/04/12 14:04:35 usage: ./tcpmeter (-c|-s) [-r [host:]port] [-h
[host:]port] [-l logfile]
rpi2% pwd
/usr/fst/GoApps/src/tcpmeter
rpi2% exit
supermic% pwd
/usr/fst/GoApps/src/tcpmeter
supermic%
Similar setup could be done under Linux/MacOSX with some work. I found this
article very helpful:
https://medium.com/@rakyll/go-1-5-cross-compilation-488092ba44ec#.635w6yhi5
btw, building Go on rpi/linux, took some time. i have not tried rpi3 yet
(waiting for 64bit plan9 or linux). building Go on odroid-c2 (linux/arm64)
"feels" as speedy as on atom or i3.
On Tue, Apr 12, 2016 at 12:21 PM, Chris McGee <sirnewton_01@yahoo.ca> wrote:
> 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
> >
> >
>
>
>
[-- Attachment #2: Type: text/html, Size: 3942 bytes --]
next prev parent reply other threads:[~2016-04-12 21:26 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-12 0:59 Chris McGee
2016-04-12 19:01 ` Skip Tavakkolian
2016-04-12 19:21 ` Chris McGee
2016-04-12 19:50 ` Dave MacFarlane
2016-04-12 21:26 ` Skip Tavakkolian [this message]
2016-04-13 0:18 ` Chris McGee
2016-04-12 21:44 ` sl
2016-04-13 2:50 ` Skip Tavakkolian
2016-04-13 2:59 ` Chris McGee
2016-04-13 7:27 ` lucio
2016-04-13 9:10 ` Richard Miller
2016-04-13 9:10 ` Richard Miller
2016-04-13 13:08 ` Chris McGee
2016-04-13 13:46 ` Richard Miller
2016-04-13 14:00 ` Chris McGee
2016-04-13 14:32 ` Kenny Lasse Hoff Levinsen
2016-04-13 14:32 ` Charles Forsyth
2016-04-13 14:39 ` Richard Miller
2016-04-13 14:42 ` Charles Forsyth
2016-04-13 14:46 ` Richard Miller
2016-04-13 14:46 ` Charles Forsyth
2016-04-13 14:52 ` lucio
2016-04-13 16:12 ` Richard Miller
2016-04-13 7:21 ` lucio
2016-04-13 7:34 ` lucio
2016-04-13 20:38 ` Skip Tavakkolian
-- strict thread matches above, loose matches on Subject: below --
2016-01-26 21:52 sl
2016-01-26 22:03 ` Kenny Lasse Hoff Levinsen
2016-01-26 22:29 ` sl
2016-01-26 22:38 ` David du Colombier
2016-01-27 1:29 ` Matthew Veety
2016-01-26 21:44 Sean Caron
2016-01-26 22:05 ` Skip Tavakkolian
2016-01-26 22:16 ` Sean Caron
2016-01-26 22:32 ` David du Colombier
2016-01-26 22:40 ` David du Colombier
2016-01-27 1:40 ` Sean Caron
2016-01-27 1:52 ` Skip Tavakkolian
2016-01-27 2:24 ` Sean Caron
2016-01-27 4:04 ` lucio
2016-01-27 6:25 ` David du Colombier
2016-01-27 13:45 ` Charles Forsyth
2016-01-26 22:19 ` David du Colombier
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=CAJSxfmKKtEfEDk0TcUeeeVJtp3_TDmWqjPtKOWJefpgmQwE0ww@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).