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 <quans...@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 <o...@eigenstate.org>

Reply via email to