Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005890OCamlOCaml tools (ocaml{lex,yacc,dep,browser,debug})public2013-01-14 16:322013-09-12 16:00
Reporterkosik 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Product Version3.12.1 
Target Version4.02.0+devFixed in Version 
Summary0005890: ocamlc does not fully take into consideration -o parameter
DescriptionWhen one tries to build an Ocaml library directly from multiple ml-files this way:

  ocamlc -a -o library.cma foo.ml bar.ml baz.ml

things work fine. Essential *.cmi and *.cmo files are created in the same place as library.cma target.

However, when one tries to specify non-current output directory:

  ocamlc -a -o /tmp/library.cma foo.ml bar.ml baz.ml

then *.cmo and *.cmi files are created in the current directory and only library.cma file is created in the designated /tmp directory.

While the manual page does not explicitly make any promises in this regard, the current behavior is surprising. It does not seem probably that user would want object files to be generated in one directory and resulting library in a different directory.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0008749)
kosik (reporter)
2013-01-14 16:34

ocamlopt has a similar (surprising) property
(0009641)
doligez (administrator)
2013-06-28 18:19

I personally don't find this surprising at all, but this is related to a feature wish I seem to remember, for a "-odir" option to specify in what directory to put the generated files that are not specified with -o and thus have an implicit file name.

- Issue History
Date Modified Username Field Change
2013-01-14 16:32 kosik New Issue
2013-01-14 16:34 kosik Note Added: 0008749
2013-06-28 18:19 doligez Note Added: 0009641
2013-06-28 18:19 doligez Status new => acknowledged
2013-07-12 09:22 doligez Target Version => 4.01.0+dev
2013-07-22 12:46 frisch Target Version 4.01.0+dev => later
2013-08-19 15:58 doligez Category OCaml tools (ocaml{lex,yacc,dep,browser}) => OCaml tools (ocaml{lex,yacc,dep,browser,debug})
2013-09-12 16:00 doligez Target Version later => 4.02.0+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker