Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profiling #4574

Closed
vicuna opened this issue Jul 1, 2008 · 2 comments
Closed

Profiling #4574

vicuna opened this issue Jul 1, 2008 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Jul 1, 2008

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.
@vicuna
Copy link
Author

vicuna commented Jun 16, 2013

Comment author: @gasche

Issue reproduced on 4.01+dev.

@vicuna
Copy link
Author

vicuna commented Feb 27, 2017

Comment author: @damiendoligez

ocamlbuild is now a separate project that lives on GitHub.
PR transferred to ocaml/ocamlbuild#170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant