solvuu / solvuu-build

DEPRECATED. We recommend Jane Street's dune (formerly jbuilder).
ISC License
24 stars 5 forks source link

cmxs compilation #31

Closed pveber closed 8 years ago

pveber commented 8 years ago

In biocaml/biocaml@991e88e, I observe that while compilation through make seems to work correctly, typing successively make byte and make native yields the following error:

Solver failed:
  Ocamlbuild knows of no rules that apply to a target named lib/biocaml_unix.cmxs. This can happen if you ask Ocamlbuild to build a target with the wrong extension (e.g. .opt instead of .native) or if the source files live in directories that have not been specified as include directories.
Compilation unsuccessful after building 0 targets (0 cached) in 00:00:00.
_build/project.mk:4 : la recette pour la cible « _build/lib/biocaml_unix.cmxs » a échouée
make: *** [_build/lib/biocaml_unix.cmxs] Erreur 6

As I haven't observed the same issue with other projects, I assume this is due to #29, but I can't be sure.

pveber commented 8 years ago

This is due to cmxs compilation not being implemented in the case there are C files. The poor error message is due to this line, which does nothing instead of creating appropriate rules. Maybe raising an exception here could help while cmxs compilation is not fully implemented?

In any case, this issue is redundant with #29, so I'm closing it.