The attached file fails to produce valid ocaml because of a problem with topological sorting:
./sail -ocaml config_fail.sail
+ ocamlfind ocamlc -c -g -package lem -package linksem -package zarith -o out.cmo out.ml
File "out.ml", line 10, characters 20-24:
10 | let zisa_config = ({zISA = true});;
^^^^
Error: Unbound record field zISA
Command exited with code 2.
Compilation unsuccessful after building 6 targets (4 cached) in 00:00:00.
ocamlbuild -use-ocamlfind out.cmo terminated with code 10
The problem goes away if you remove the struct isa_config declaration, so the problem appears to be caused by a conflict between the name of the struct and the name of the top level let binding.
The attached file fails to produce valid ocaml because of a problem with topological sorting:
The problem goes away if you remove the
struct isa_config
declaration, so the problem appears to be caused by a conflict between the name of the struct and the name of the top level let binding.config_fail.sail.txt