Skip to content

Instantly share code, notes, and snippets.

@rgrinberg
Created July 11, 2017 17:43
Show Gist options
  • Save rgrinberg/23bb95758302fecb8267868a30e7b5f9 to your computer and use it in GitHub Desktop.
Save rgrinberg/23bb95758302fecb8267868a30e7b5f9 to your computer and use it in GitHub Desktop.
-*- mode: compilation; default-directory: "~/reps/ml/tyxml/" -*-
Compilation started at Tue Jul 11 13:42:41
jbuilder build
Warning: Module Xml_sigs in lib doesn't have a corresponding .ml file.
Modules without an implementation are not recommended, see this discussion:
https://github.com/janestreet/jbuilder/issues/9
In the meantime I'm implicitely adding this rule:
(rule (with-stdout-to xml_sigs.ml
(progn
(echo "[@@@warning \"-a\"]\nmodule rec HACK : sig\n")
(cat xml_sigs.mli)
(echo "\nend = HACK\ninclude HACK\n"))))
Add it to your jbuild file to remove this warning.
Warning: Module Svg_types in lib doesn't have a corresponding .ml file.
Modules without an implementation are not recommended, see this discussion:
https://github.com/janestreet/jbuilder/issues/9
In the meantime I'm implicitely adding this rule:
(rule (with-stdout-to svg_types.ml
(progn
(echo "[@@@warning \"-a\"]\nmodule rec HACK : sig\n")
(cat svg_types.mli)
(echo "\nend = HACK\ninclude HACK\n"))))
Add it to your jbuild file to remove this warning.
Warning: Module Svg_sigs in lib doesn't have a corresponding .ml file.
Modules without an implementation are not recommended, see this discussion:
https://github.com/janestreet/jbuilder/issues/9
In the meantime I'm implicitely adding this rule:
(rule (with-stdout-to svg_sigs.ml
(progn
(echo "[@@@warning \"-a\"]\nmodule rec HACK : sig\n")
(cat svg_sigs.mli)
(echo "\nend = HACK\ninclude HACK\n"))))
Add it to your jbuild file to remove this warning.
Warning: Module Html_types in lib doesn't have a corresponding .ml file.
Modules without an implementation are not recommended, see this discussion:
https://github.com/janestreet/jbuilder/issues/9
In the meantime I'm implicitely adding this rule:
(rule (with-stdout-to html_types.ml
(progn
(echo "[@@@warning \"-a\"]\nmodule rec HACK : sig\n")
(cat html_types.mli)
(echo "\nend = HACK\ninclude HACK\n"))))
Add it to your jbuild file to remove this warning.
Warning: Module Html_sigs in lib doesn't have a corresponding .ml file.
Modules without an implementation are not recommended, see this discussion:
https://github.com/janestreet/jbuilder/issues/9
In the meantime I'm implicitely adding this rule:
(rule (with-stdout-to html_sigs.ml
(progn
(echo "[@@@warning \"-a\"]\nmodule rec HACK : sig\n")
(cat html_sigs.mli)
(echo "\nend = HACK\ninclude HACK\n"))))
Add it to your jbuild file to remove this warning.
ocamlopt lib/svg_sigs.{cmx,o} (exit 2)
(cd _build/default && /home/rgrinberg/.opam/4.04.1/bin/ocamlopt.opt -w -40 -g -I /home/rgrinberg/.opam/4.04.1/lib/bytes -I /home/rgrinberg/.opam/4.04.1/lib/re -I /home/rgrinberg/.opam/4.04.1/lib/uchar -I /home/rgrinberg/.opam/4.04.1/lib/uutf -no-alias-deps -I lib -o lib/svg_sigs.cmx -c -impl lib/svg_sigs.ml)
File "lib/svg_sigs.ml", line 1094, characters 6-10:
Error: Cannot safely evaluate the definition
of the recursively-defined module HACK
ocamlc lib/svg_sigs.{cmo,cmt} (exit 2)
(cd _build/default && /home/rgrinberg/.opam/4.04.1/bin/ocamlc.opt -w -40 -g -bin-annot -I /home/rgrinberg/.opam/4.04.1/lib/bytes -I /home/rgrinberg/.opam/4.04.1/lib/re -I /home/rgrinberg/.opam/4.04.1/lib/uchar -I /home/rgrinberg/.opam/4.04.1/lib/uutf -no-alias-deps -I lib -o lib/svg_sigs.cmo -c -impl lib/svg_sigs.ml)
File "lib/svg_sigs.ml", line 1094, characters 6-10:
Error: Cannot safely evaluate the definition
of the recursively-defined module HACK
Compilation exited abnormally with code 1 at Tue Jul 11 13:42:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment