You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4574 Reporter: Radzevich Belevich Status: resolved (set by @damiendoligez on 2017-02-27T13:49:37Z) Resolution: suspended Priority: normal Severity: minor Target version: later Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Bug description
[test]$ ls
mod mod.mlpack
[test]$ cat mod.mlpack
Base
M1
[test]$ ls mod
base.ml m1.ml _tags
[test]$ cat mod/base.ml
let register o = print_int o#id
[test]$ cat m1.ml
class o =
object
method id = Random.int 10000
end
let _ = begin
Random.self_init();
Base.register (new o);
end
[test]$ ocamlbuild mod.p.cmx
touch mod.mli ; if /usr/local/bin/ocamlopt.opt -pack -I mod mod/base.p.cmx mod/m1.p.cmx -o mod.p.cmx ; then rm -f mod.mli ; else rm -f mod.mli ; exit 1; fi
File "mod.p.cmx", line 1, characters 0-1:
Error: File mod/m1.p.cmx was compiled without access to the .cmx file
for module Base, which was produced by ocamlopt -for-pack'. Please recompile mod/m1.p.cmx with the correct -I' option
so that Base.cmx is found.
=======================================
Ocamlbuild compile m1.cmx with base.cmi from compilation of base.cmo.
While compile base.p.cmx it's produce base.p.cmi, but ocamlopt get the base.cmi - it's wrong.
The text was updated successfully, but these errors were encountered:
Original bug ID: 4574
Reporter: Radzevich Belevich
Status: resolved (set by @damiendoligez on 2017-02-27T13:49:37Z)
Resolution: suspended
Priority: normal
Severity: minor
Target version: later
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Bug description
[test]$ ls
mod mod.mlpack
[test]$ cat mod.mlpack
Base
M1
[test]$ ls mod
base.ml m1.ml _tags
[test]$ cat mod/base.ml
let register o = print_int o#id
[test]$ cat m1.ml
class o =
object
method id = Random.int 10000
end
let _ = begin
Random.self_init();
Base.register (new o);
end
[test]$ ocamlbuild mod.p.cmx
File "mod.p.cmx", line 1, characters 0-1:
Error: File mod/m1.p.cmx was compiled without access to the .cmx file
for module Base, which was produced by
ocamlopt -for-pack'. Please recompile mod/m1.p.cmx with the correct
-I' optionso that Base.cmx is found.
=======================================
Ocamlbuild compile m1.cmx with base.cmi from compilation of base.cmo.
While compile base.p.cmx it's produce base.p.cmi, but ocamlopt get the base.cmi - it's wrong.
The text was updated successfully, but these errors were encountered: