[CCC DEV] Successful build, execute
Matt Jadud
matt at jadud.com
Wed May 22 20:33:41 BST 2013
Hi all,
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'll commit
changes here shortly; I leave for a few days visiting family starting
tomorrow.
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.
Does anyone, by chance, have an occam-pi syntax mode for gedit? That, or
I'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.
Cheers,
Matt
PS. As I said to Fred off-list, I mostly need to wrap my head around
autotools/M4 to do things with the build.
PPS.
There is a (new?) break in the occam source (below), which is odd... I
don'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.
make[1]: Entering directory
`/home/admin/git/avr/avr-obj/modules/useful/libsrc'
/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
:--** @module useful
:
:--{{{ includes
:#INCLUDE "course.module"
23:#INCLUDE "file.module"
--------------^
:
:#INCLUDE "useful.inc"
:
:--}}}
Error-occ21-../../../../modules/useful/libsrc/lexer.occ(23)- cannot open
file "file.module"
:--
:PROC stream.file.reader (VAL []BYTE fname, CHAN P.LEX.BYTESTREAM out!)
: INT fd:
: SEQ
351: file.open (fname, O.RDONLY, fd)
: IF
: fd < 0
: out ! end.of.file
: TRUE
Error-occ21-../../../../modules/useful/libsrc/lexer.occ(351)- file.open is
not declared
:--
:PROC stream.file.reader (VAL []BYTE fname, CHAN P.LEX.BYTESTREAM out!)
: INT fd:
: SEQ
351: file.open (fname, O.RDONLY, fd)
: IF
: fd < 0
: out ! end.of.file
: TRUE
Error-occ21-../../../../modules/useful/libsrc/lexer.occ(351)- O.RDONLY is
not declared
: SEQ
: INITIAL BOOL rloop IS TRUE:
: WHILE rloop
: SEQ
362: file.read (fd, buffer, result)
: IF
: result = 0
: -- EOF
: rloop := FALSE
Error-occ21-../../../../modules/useful/libsrc/lexer.occ(362)- file.read is
not declared
: rloop := FALSE
: TRUE
: out ! bytes; [buffer FOR result]
: out ! end.of.file
373: file.close (fd, result)
::
:--}}}
:--{{{ PROC stream.lines.to.tokens (VAL BOOL track.indent, CHAN
P.LEX.LINESTREAM in?, CHAN P.LEX.TOKENSTREAM out!)
:--* Turns lines of input into tokens.
Error-occ21-../../../../modules/useful/libsrc/lexer.occ(373)- file.close is
not declared
file.close undeclared on "../../../../modules/useful/libsrc/lexer.occ" line
373
file.read undeclared on "../../../../modules/useful/libsrc/lexer.occ" line
362
O.RDONLY undeclared on "../../../../modules/useful/libsrc/lexer.occ" line
351
file.open undeclared on "../../../../modules/useful/libsrc/lexer.occ" line
351
5 errors found in source
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.concurrency.cc/pipermail/developers/attachments/20130522/e9b094f7/attachment.htm>
More information about the developers
mailing list