FYI, Building from CVS today, I needed to add some __MINGW32__ hair in
vm/builtins.c
Thanks Doug.
I didn't check about Mingw yet but I'm pretty sure there is only a few
tweaks to do in order to compile Neko with it.
#ifdef _WIN32
#ifdef __MINGW32__
#undef setjmp
#define setjmp _setjmp
#endif
long _ftol( double f );
long _ftol2( double f) { return _ftol(f); };
#endif
Then the vm build seemed to go fine (with hacked Makefile) except for
libs/std/string.c:96: warning: conflicting types for built-in function 'sprintf'
I'll patch theses.
Next I had to change
compiler:
(cd src; ${NEKO_EXEC} nekoml -v neko/Main.nml nekoml/Main.nml)
to
compiler:
(cd src; ${NEKO_EXEC} ../boot/nekoml -v neko/Main.nml nekoml/Main.nml)
to avoid
(cd src; LD_LIBRARY_PATH=../bin: NEKOPATH=../boot:../bin ../bin/neko nekoml -v
neko/Main.nml nekoml/Main.nml)
Uncaught exception - load.c(167) : Module not found : nekoml
You shouldn't need any change since NEKOPATH is referencing ../boot
You might need to add some traces in vm/load.c which is doing the file
resolution in "neko_select_file" (the path is created from NEKOPATH in
"init_path").
Instead I got a hard crash with
(cd src; LD_LIBRARY_PATH=../bin: NEKOPATH=../boot:../bin ../bin/neko
../boot/nekoml -v neko/Main.nml nekoml/Main.nml)
make: *** [compiler] Error 5
I guess this shouldn't happen too :)
Can you get a stack dump of this error ?
Best,
Nicolas
--
Neko : One VM to run them all
(http://nekovm.org)