[C--] Really exciting projet, but problems building/running it correctly
Zorg 421 <[email protected]> Tue, 24 Mar 2009 20:34:26 +0100
| Newsgroups | gmane.comp.lang.c-- |
|---|---|
| Message-ID | <[email protected]> |
Hello c-- users,
I've spent some time building the snapshot of 20090321 (after
installing lua-4.0.1), and trying this invocation of the compiler:
zorg@daws:/opt/qc--/bin$ ./qc-- ~/tailrec1.cmm -o tailrec
lua: access to undefined table with key As
Stack trace:
=A0`error' fallback (OCaml)
=A0`gettable' fallback in file "luadriver.nw", line 898 column 5
=A0main of dofile('./qc--.lua') in file "luadriver.nw", line 234 column 1
=A0function dofile (OCaml)
=A0function Util.dosearchfile (OCaml)
=A0main of dostring('Util.dosearchfile('qc--.lua', Boot)') defined in
file dostring('Util.dosearchfile('qc--.lua', Boot)')
Lua interpreter halted with error
FYI the .cmm file is:
/* Tail recursion */
export sp2;
sp2( bits32 n ) {
=A0 =A0jump sp2_help( n, 1, 1 );
}
sp2_help( bits32 n, bits32 s, bits32 p ) {
=A0 =A0if n=3D=3D1 {
=A0 =A0return( s, p );
=A0 =A0} else {
=A0 =A0 =A0 =A0jump sp2_help( n-1, s+n, p*n );
=A0 =A0}
}
and I've tried to do:
/opt/qc--/bin$ sudo ln -s ../src/qc--.lua qc--.lua
and rerun the compiler, with no luck.
Despite having built the thing using
vi ./configure
mk timestamps
mk all all.opt
mk install install.opt
qc--interpreter and qc--.opt are not being built.
Note: I hade to manually set in config/config.mk, right
after running ./configure:
config_has_latex =A0 =A0 =A0 =A0 =A0 =A0=3D false
to overcome a latex install problem.
I'm using lua-4.0.1 and ocaml 3.10.2 (from godi), all on OSX.
Also, sudo mk clean leaves a lot of cruft like ml / mli files and this
qc--.lua seems not beeing cleaned
Thanks for any help!
_______________________________________________
Cminusminus mailing list
[email protected]
https://www.eecs.harvard.edu/mailman/listinfo/cminusminus