9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Dan Cross <cross@math.psu.edu>
To: 9fans@cse.psu.edu
Subject: [9fans] Alpha compiler chokes on webfs/io.c; various fixes.
Date: Mon, 14 Oct 2002 15:53:08 -0400	[thread overview]
Message-ID: <200210141953.g9EJr8i25613@augusta.math.psu.edu> (raw)

Hey Folks,
   Just for the hell of it, last night I decided to try building Plan
9 for a bunch of different architectures.  I encounted a few problems,
and fixed what I could (and what I had time for).  Some diff's (in the
ed-script format, perhaps this'll be easier to apply) follow.
   First, some directories need to be created: /^(power arm)^/bin/ip/httpd
and /^(power arm)^/bin/usb are missing from the distribution.
   Second, the alpha build choked on building io.c in /sys/src/cmd/webfs.
A diff to fix it follows:

term% diff -e /n/sources/plan9/sys/src/cmd/webfs/io.c io.c
52,56c
	addr = va_arg(*arg, char*);
	local = va_arg(*arg, char*);
	dir = va_arg(*arg, char*);
	cfdp = va_arg(*arg, int*);
	usetls = va_arg(*arg, int);
.
term%

Note the *'s before `arg' in the macro call.
   Next, the MIPS compiler (actually, assembler) chokes on the stuff
in /sys/src/libmp/mips, but my MIPS book is literally buried under a
bunch of stuff right now, so I didn't track that down, but perhaps
someone is more familiar with it and knows what's up.
   When building kernels, the mtx build failed due to things missing
during the link stage.  A diff:

term% diff -e /n/sources/plan9/sys/src/9/mtx/mkfile mkfile
21a
	nulledf.$O\
.
17a
	devrealtime.$O\
.
term%

And similarly, the alphapc mkfile needed an addition:

term% diff -e /n/sources/plan9/sys/src/9/alphapc/mkfile mkfile
17a
	devrealtime.$O\
.
term%

That's basically it.  I'm not sure anyone really cares, since alpha's
probably aren't used much anymore, and not a lot of people have mtx's,
but I thought I'd send along the diff's anyway.

	- Dan C.



             reply	other threads:[~2002-10-14 19:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-14 19:53 Dan Cross [this message]
2002-10-14 20:30 ` Axel Belinfante
2002-10-14 20:32   ` Axel Belinfante
2002-10-14 20:02 Charles Forsyth
2002-10-14 20:20 presotto
2002-10-14 20:26 presotto
2002-10-14 21:48 ` Dan Cross

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=200210141953.g9EJr8i25613@augusta.math.psu.edu \
    --to=cross@math.psu.edu \
    --cc=9fans@cse.psu.edu \
    /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).