<div dir="ltr">Hi all,<div><br></div><div>I believe I have a successful AVR build on 32-bit Debian 7. A few source changes are required (eg. prog_void to const void), but it seems to generate a firmware that will execute bytecode on an Arduino. I&#39;ll commit changes here shortly; I leave for a few days visiting family starting tomorrow. </div>
<div><br></div><div><div>I have the build up on am Amazon EC2 instance as well; my goal is to move the compiler onto a server, and replace some of the local tools with a server-based solution. This will make my life easier until more hands can contribute to getting the platform-specific builds up. </div>
</div><div><br></div><div style>Does anyone, by chance, have an occam-pi syntax mode for gedit? That, or I&#39;ll just use JEdit with the mode we have... having a text editor with highlighting could be nice, despite the lack of a native compiler underneath the editor.</div>
<div style><br></div><div style>Cheers,</div><div style>Matt</div><div><br></div><div style>PS. As I said to Fred off-list, I mostly need to wrap my head around autotools/M4 to do things with the build.</div><div><br></div>
<div style>PPS. </div><div><br></div>There is a (new?) break in the occam source (below), which is odd... I don&#39;t know what might have changed that a module that was building now does not. I have not yet looked at it, because it was not in a straight line between me and a TVM firmware.<div>
<br></div><div><div>make[1]: Entering directory `/home/admin/git/avr/avr-obj/modules/useful/libsrc&#39;</div><div>/home/admin/git/avr/avr-obj/tools/kroc/occbuild --in-tree /home/admin/git/avr/avr-obj --toolchain=tvm --search /home/admin/git/avr/avr-obj/modules/course/libsrc --search /home/admin/git/avr/avr-obj/modules/inmoslibs/libsrc/maths --search /home/admin/git/avr/avr-obj/modules/inmoslibs/libsrc/maths --search /home/admin/git/avr/avr-obj/modules/inmoslibs/libsrc/maths --search /home/admin/git/avr/avr-obj/modules/time/libsrc  --object ../../../../modules/useful/libsrc/lexer.occ</div>
<div><br></div><div>    :--** @module useful</div><div>    :</div><div>    :--{{{  includes</div><div>    :#INCLUDE &quot;course.module&quot;</div><div>  23:#INCLUDE &quot;file.module&quot;</div><div>--------------^</div>
<div>    :</div><div>    :#INCLUDE &quot;useful.inc&quot;</div><div>    :</div><div>    :--}}}</div><div>Error-occ21-../../../../modules/useful/libsrc/lexer.occ(23)- cannot open file &quot;file.module&quot;</div><div><br>
</div><div>    :--</div><div>    :PROC stream.file.reader (VAL []BYTE fname, CHAN P.LEX.BYTESTREAM out!)</div><div>    :  INT fd:</div><div>    :  SEQ</div><div> 351:    file.open (fname, O.RDONLY, fd)</div><div>    :    IF</div>
<div>    :      fd &lt; 0</div><div>    :        out ! end.of.file</div><div>    :      TRUE</div><div>Error-occ21-../../../../modules/useful/libsrc/lexer.occ(351)- file.open is not declared</div><div><br></div><div>    :--</div>
<div>    :PROC stream.file.reader (VAL []BYTE fname, CHAN P.LEX.BYTESTREAM out!)</div><div>    :  INT fd:</div><div>    :  SEQ</div><div> 351:    file.open (fname, O.RDONLY, fd)</div><div>    :    IF</div><div>    :      fd &lt; 0</div>
<div>    :        out ! end.of.file</div><div>    :      TRUE</div><div>Error-occ21-../../../../modules/useful/libsrc/lexer.occ(351)- O.RDONLY is not declared</div><div><br></div><div>    :        SEQ</div><div>    :          INITIAL BOOL rloop IS TRUE:</div>
<div>    :          WHILE rloop</div><div>    :            SEQ</div><div> 362:              file.read (fd, buffer, result)</div><div>    :              IF</div><div>    :                result = 0</div><div>    :                  -- EOF</div>
<div>    :                  rloop := FALSE</div><div>Error-occ21-../../../../modules/useful/libsrc/lexer.occ(362)- file.read is not declared</div><div><br></div><div>    :                  rloop := FALSE</div><div>    :                TRUE</div>
<div>    :                  out ! bytes; [buffer FOR result]</div><div>    :          out ! end.of.file</div><div> 373:          file.close (fd, result)</div><div>    ::</div><div>    :--}}}</div><div>    :--{{{  PROC stream.lines.to.tokens (VAL BOOL track.indent, CHAN P.LEX.LINESTREAM in?, CHAN P.LEX.TOKENSTREAM out!)</div>
<div>    :--* Turns lines of input into tokens.</div><div>Error-occ21-../../../../modules/useful/libsrc/lexer.occ(373)- file.close is not declared</div><div>file.close undeclared on &quot;../../../../modules/useful/libsrc/lexer.occ&quot; line 373</div>
<div>file.read undeclared on &quot;../../../../modules/useful/libsrc/lexer.occ&quot; line 362</div><div>O.RDONLY undeclared on &quot;../../../../modules/useful/libsrc/lexer.occ&quot; line 351</div><div>file.open undeclared on &quot;../../../../modules/useful/libsrc/lexer.occ&quot; line 351</div>
<div>5 errors found in source</div></div><div><br></div></div>