Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004574OCamlOCamlbuild (the tool)public2008-07-01 13:242014-09-04 00:25
ReporterRadzevich Belevich 
Assigned Toxclerc 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionundecidedFixed in Version 
Summary0004574: Profiling
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.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0009516)
gasche (developer)
2013-06-16 18:47

Issue reproduced on 4.01+dev.

- Issue History
Date Modified Username Field Change
2008-07-01 13:24 Radzevich Belevich New Issue
2008-08-01 16:13 xleroy Assigned To => ertai
2008-08-01 16:13 xleroy Status new => assigned
2008-08-01 16:13 xleroy Description Updated
2010-07-22 11:45 ertai Assigned To ertai => xclerc
2012-02-02 15:17 protz Category OCamlbuild => OCamlbuild (the tool)
2012-07-06 16:39 doligez Target Version => 4.01.0+dev
2012-07-06 16:39 doligez Description Updated View Revisions
2012-07-31 13:36 doligez Target Version 4.01.0+dev => 4.00.1+dev
2012-09-10 14:05 frisch Target Version 4.00.1+dev => 4.00.2+dev
2013-06-16 18:47 gasche Note Added: 0009516
2013-06-16 18:47 gasche Target Version 4.00.2+dev => 4.02.0+dev
2013-06-16 21:25 gasche Severity major => minor
2013-07-12 18:15 doligez Target Version 4.02.0+dev => 4.01.1+dev
2014-05-25 20:20 doligez Target Version 4.01.1+dev => 4.02.0+dev
2014-08-20 17:32 doligez Target Version 4.02.0+dev => 4.02.1+dev
2014-09-04 00:25 doligez Target Version 4.02.1+dev => undecided


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker