> I have been trying to get CIL to build under > cygwin without success. Do you have any idea > what the following error message means? Google > has been zero help: > > Compiling src/cil.ml to bytecode > >> Fatal error: Primitive new_variables not found. > Fatal error: exception Misc.Fatal_error That's an error in the compiler -- CIL may require the most recent version ocaml. I built it with 3.09 on win32/cygwin. However, the version that comes with Cygwin's package management is currently 3.08.1. Try grabbing 3.09 from the website, building it, and installing it over the cygwin default. http://caml.inria.fr/download.en.html If that doesn't work for you, I have put up a precompiled x86-cygwin copy of CIL (as used in this project). If you drop it in over the cil directory in cs655-hw-5 you should be able to compile nf.ml with cygwin's ocaml 3.08. Verbose example for clarity: yuki:~/Desktop/655/cs655-hw-5$ make nf ocamlc -I cil/obj/x86_WIN32 -I cil/obj/x86_LINUX -c nf.ml ocamlc -I cil/obj/x86_WIN32 -I cil/obj/x86_LINUX -o nf str.cma unix.cma cil.cma nf.cmo yuki:~/Desktop/655/cs655-hw-5$ ./nf.exe 0 errors reported. In unrelated news, there's also a v2 of the codepack that fixes two or three small typos in nf.ml. - Wes --- > For reference, my problem has been solved. I didn't realize that the > cygwin ocaml was going ahead and using the OCAMLLIB environment variable > from the Win32 installation, apparently the ocaml compiler doesn't check > to make sure it is getting the right lib versions or some such. > It seems like things go fine with the standard cygwin installation as > long as I make sure to unset OCAMLLIB before doing the compilation. Great! - Wes --- > Wow, that was... quite a homework assignment. I definitely spent more > time on it than the previous four homeworks put together, even though it > didn't really become fun until near the end when I finally got my changes > to nf.ml up and running. Of course, once I had a working system, I felt > like I could keep working on it forever, adding feature after feature. > (As this would presumably get in the way of, say, other homeworks, my > semester project, or that little thing they call "research", I'm actually > glad that there's a due date here to make me stop working.) I'm glad to hear that you got to the chewey fun center at the center of the HW5 tootsie pop! - Wes