9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Lucio De Re <lucio@proxima.alt.za>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Plan 9 Go (Was: GNU/Linux/Plan 9 disto)
Date: Wed, 13 Jul 2011 20:31:58 +0200	[thread overview]
Message-ID: <20110713183158.GL1985@fangle.proxima.alt.za> (raw)
In-Reply-To: <CA+N-5bY_=obMbS3VG9oCE5CnEUfRBZ1eM2eEFHuKUmFr+pKJHw@mail.gmail.com>

On Tue, Jul 12, 2011 at 08:35:26PM +0200, Francisco J Ballesteros wrote:
> If you could put just a tgz at sources I'm willing to test it,
> even for updates, I could just unpack the tgz again and rebuild the thing.
> although I don't have much spare time these days and it's likely
> I wont be able to help other than by testing (sorry about that).
>
OK, here's my side of things.

I've uploaded to sources the /go hierarchy that, to the best of my
knowledge, should make it possible for a mildly savvy Plan 9 user to
build 8a, 8l and 8c on a 386 platform.

The location is /n/sources/contrib/lucio/go and is meant to install in
the root (at /go, to be specific).  I have hard coded in many mkfiles the
assignment ROOT=/go to keep things simple, so it's easiest to go along
with this convention until somebody puts some effort into improving is.

The test operation I perform is to change directory to /go/src/cmd/8c
and execute "mk".  It ought to execute without problems, but my Plan 9
platform may have some tweaks that I have forgotten, so it's important
to report to me anything unexpected.

If "8c" builds correctly, the executable can be "mk install"ed into
/go/386/bin, off the cuff I'm notsure that this directory is created,
so it may be necessary to check first.  I would need to correct the
"devproto" file (in "/go") to make sure all target directories are in
fact created.

To build your own development environment, I suggest:

	% 9fs sources
	% disk/mkext -a -s /n/sources/contrib/lucio/go /n/sources/contrib/lucio/go/devproto |
		disk/mkext -d /go

There are many inconsistencies I am vaguely aware of, feel free to remind
me and make suggestion on how to improve them.	The mkfiles randomly rely
on GOROOT et al or make their own decisions about where the sources are
installed: they need to be identified, some thought applied and a final
approach decided upon.	/sys/src/cmd/mk* files are used arbitrarily
(these are the ones I remember, others may bite you as well), the idea
is that if we need slight variations we ought to target $ROOT/src/cmd/mk*
instead, but these are early days and there are inconsistencies lurking.

/go/386/include/u.h is particularly of interest: bits of fluff have been
tucked away in there to simplify porting and may appear particularly ugly.

I will try to document all the important details, but like all
programmers, I have a subconscious need to avoid documenting anything
at all costs.  I will reply to all reasonable questions.

Lucio.

PS: I assume there are p9p users here who, like me, believe it would be
advantageous to add the Go toolchain to the p9p distribution.  I'd like
to hear from them.  I can't give that particular task a high priority,
but I'm keen to encourage others to make some progress on that front.



  reply	other threads:[~2011-07-13 18:31 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-11 16:05 [9fans] GNU/Linux/Plan 9 disto rbnsw-plan9
2011-07-11 16:41 ` Jens Staal
2011-07-11 16:59   ` Gorka Guardiola
2011-07-11 19:31     ` Charles Forsyth
2011-07-12  5:59       ` Pavel Zholkover
2011-07-12 15:13         ` [9fans] Plan 9 Go (Was: GNU/Linux/Plan 9 disto) Lucio De Re
2011-07-12 18:35           ` Francisco J Ballesteros
2011-07-13 18:31             ` Lucio De Re [this message]
2011-07-13 18:45               ` Lucio De Re
2011-07-14 18:59                 ` stephano zanzin
2011-07-14 20:21                   ` Lucio De Re
2011-07-14 20:35                     ` Iruatã Souza
2011-07-15  2:37                     ` Fazlul Shahriar
2011-07-22  4:40               ` Lucio De Re
2011-07-22 14:37                 ` Ethan Grammatikidis
2011-07-27  2:55                   ` kokamoto
2011-07-12 18:44           ` Skip Tavakkolian
2011-07-12 12:35       ` [9fans] GNU/Linux/Plan 9 disto Ethan Grammatikidis
2011-07-12  5:50     ` Jens Staal
     [not found]   ` <CACm3i_j1dxqY=sfunozAXRY+uhO83BnTodfpWvNb+4rSNouC_g@mail.gmail.c>
2011-07-11 17:43     ` erik quanstrom
2011-07-11 19:29       ` Charles Forsyth
2011-08-21 16:20         ` Enrico Weigelt
2011-08-21 17:27           ` erik quanstrom
2011-08-21 16:16   ` Enrico Weigelt
2011-07-11 17:56 ` hiro
     [not found] ` <CAFSF3XO7ejhGBq5Zqj1oL7UnnPf7naTtwbG56hN4k1fz3koxBw@mail.gmail.c>
2011-07-11 18:12   ` erik quanstrom
2011-07-12  0:10     ` hiro
2011-07-12 13:35       ` Ethan Grammatikidis
2011-07-12 17:18         ` hiro
2011-07-12 18:09       ` Richard Miller
2011-07-12 19:08         ` Ethan Grammatikidis
2011-07-15  8:51 [9fans] Plan 9 Go (Was: GNU/Linux/Plan 9 disto) Alex Brainman
2011-07-22  5:36 arnold
2011-07-22  6:33 ` Lucio De Re
2011-07-22  7:42   ` Bakul Shah
2011-07-22  9:49     ` Lucio De Re
2011-07-22 12:41 ` erik quanstrom
2011-07-22 13:03   ` Lucio De Re
2011-07-22 15:13     ` erik quanstrom
2011-07-22 15:37       ` Lucio De Re
2011-07-22 17:13         ` Bakul Shah
2011-07-22 17:53           ` erik quanstrom
2011-07-22 18:08             ` Lucio De Re
2011-07-22 18:20               ` erik quanstrom
2011-07-22 18:32                 ` Skip Tavakkolian
2011-07-22 19:04                   ` Lucio De Re
2011-07-22 18:54                 ` Lucio De Re
2011-07-22 18:22             ` ComeauAt9Fans@gmail.com
2011-07-22 18:32               ` erik quanstrom
2011-07-22 18:57               ` Lucio De Re
2011-07-22 18:38             ` Bakul Shah
2011-07-22 18:45               ` erik quanstrom
2011-07-22 18:48               ` ComeauAt9Fans@gmail.com
2011-07-22 18:53                 ` erik quanstrom
2011-07-22 19:08                   ` tlaronde
2011-07-22 18:55                 ` Bakul Shah
2011-07-22 19:09                   ` erik quanstrom
2011-07-22 19:42                     ` Bakul Shah
2011-07-23  9:14                       ` erik quanstrom
2011-07-23 13:24                         ` Lucio De Re
2011-07-22 19:13                   ` Lucio De Re
2011-07-22 15:39     ` Bakul Shah
2011-07-22 15:43       ` erik quanstrom
2011-07-22 16:35         ` Steve Simon
2011-07-22 17:53           ` Lucio De Re
2011-07-22 18:03             ` Lucio De Re
2011-07-22 18:30           ` Ethan Grammatikidis
2011-07-22 18:33             ` erik quanstrom
2011-07-22 18:53               ` ComeauAt9Fans@gmail.com
2011-07-22 19:00             ` Lucio De Re
2011-07-22 20:10               ` Ethan Grammatikidis
2011-07-22 22:59                 ` Russ Cox
2011-07-23 11:16                   ` Ethan Grammatikidis
2011-07-22 17:48       ` Lucio De Re
2011-07-22 18:17         ` Ethan Grammatikidis
2011-07-22 19:40         ` Bakul Shah
2011-07-22  8:18 arnold

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=20110713183158.GL1985@fangle.proxima.alt.za \
    --to=lucio@proxima.alt.za \
    --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).