9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Ori Bernstein <ori@eigenstate.org>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] New Language [Myrddin] On Plan 9/amd64
Date: Sun,  4 Jan 2015 11:39:03 -0800	[thread overview]
Message-ID: <20150104113903.1caca52966298e2deada9146@eigenstate.org> (raw)
In-Reply-To: <acdd11822b78cac8ad9d9fa93db15e18@brasstown>

Ah, I forgot about that: This is a bug with Ape's printf; It's missing
the %z specifier to print size_ts.

The below patch fixes it, although I seem to remember that 9atom
has a rewritten ape -- I'm not sure if this will apply:


diff -r 40f67c7db147 sys/src/ape/lib/ap/stdio/vfprintf.c
--- a/sys/src/ape/lib/ap/stdio/vfprintf.c	Thu Dec 11 17:03:01 2014 +0100
+++ b/sys/src/ape/lib/ap/stdio/vfprintf.c	Sun Dec 21 23:32:04 2014 -0800
@@ -75,7 +75,7 @@
 0,	0,	0,	0,	0,	0,	0,	0,	/*  `  a  b  c  d  e  f  g */
 SHORT,	0,	0,	0,	LONG,	0,	0,	0,	/*  h  i  j  k  l  m  n  o */
 0,	0,	0,	0,	0,	0,	0,	0,	/*  p  q  r  s  t  u  v  w */
-0,	0,	0,	0,	0,	0,	0,	0,	/*  x  y  z  {  |  }  ~ ^? */
+0,	0,	LONG,	0,	0,	0,	0,	0,	/*  x  y  z  {  |  }  ~ ^? */
 0,	0,	0,	0,	0,	0,	0,	0,
 0,	0,	0,	0,	0,	0,	0,	0,


On Sun, 4 Jan 2015 11:08:37 -0800
erik quanstrom <quanstro@quanstro.net> wrote:

> i am getting a build error:
>
> ../myrbuild/6.out -C../6/6.out -M../muse/6.out -l sys sys.myr systypes.myr ifreq.myr syscall.s util.s
> 	../6/6.out	systypes.myr
> 	../6/6.out	sys.myr
> /tmp/tmp7109d3e2d-sys.myr.s:2 syntax error, last name: zd
> nam:  LNAME offset.( pointer )
> saw  ;
> /tmp/tmp7109d3e2d-sys.myr.s:2 syntax error, last name: zd
> offset:  +.con
> saw LNAME
> /tmp/tmp7109d3e2d-sys.myr.s:4 syntax error, last name: zd
> nam:  LNAME offset.( pointer )
> saw  ;
> /tmp/tmp7109d3e2d-sys.myr.s:4 syntax error, last name: zd
> offset:  +.con
> saw LNAME
> /tmp/tmp7109d3e2d-sys.myr.s:6 syntax error, last name: zd
> nam:  LNAME offset.( pointer )
> saw  ;
> /tmp/tmp7109d3e2d-sys.myr.s:6 syntax error, last name: zd
> offset:  +.con
> saw LNAME
> /tmp/tmp7109d3e2d-sys.myr.s:8 syntax error, last name: zd
> nam:  LNAME offset.( pointer )
> saw  ;
> /tmp/tmp7109d3e2d-sys.myr.s:8 syntax error, last name: zd
> offset:  +.con
> saw LNAME
> /tmp/tmp7109d3e2d-sys.myr.s:10 syntax error, last name: zd
> nam:  LNAME offset.( pointer )
> saw  ;
> /tmp/tmp7109d3e2d-sys.myr.s:10 syntax error, last name: zd
> offset:  +.con
> saw LNAME
> /tmp/tmp7109d3e2d-sys.myr.s:12 syntax error, last name: zd
> too many errors
> Couldn't run assembler
>
> - erik
>


--
Ori Bernstein <ori@eigenstate.org>



  reply	other threads:[~2015-01-04 19:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-04  8:59 Ori Bernstein
2015-01-04 15:13 ` Ryan
2015-01-04 19:45   ` Ori Bernstein
2015-01-04 19:08 ` erik quanstrom
2015-01-04 19:39   ` Ori Bernstein [this message]
2015-01-04 19:51 ` Skip Tavakkolian
2015-01-04 21:43   ` Ori Bernstein
2015-01-04 21:48 ` Winston Kodogo
2015-01-04 23:42 ` Ori Bernstein

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=20150104113903.1caca52966298e2deada9146@eigenstate.org \
    --to=ori@eigenstate.org \
    --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).