Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005484OCaml-OCaml generalpublic2012-01-19 09:502013-08-31 12:44
Assigned Tolefessan 
StatusclosedResolutionwon't fix 
Platformamd64OSDebian LinuxOS Version3.1
Product Version3.12.1 
Target VersionFixed in Version 
Summary0005484: -for-pack option does not work if placed after the source file on the compilation command line
DescriptionThe -for-pack option is sensitive to the order on the compilation command line
and *must* be placed before the .ml source file, but AFAIK it is not mentioned
in the documentation - so I assumed it's more a bug than a feature.
Steps To Reproduce[]
 type t = float

ocamlopt.opt -c -for-pack P
ocamlopt.opt -o p.cmx a.cmx -pack
File "p.cmx", line 1, characters 0-1:
Error: File a.cmx
was not compiled with the `-for-pack P' option
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
lefessan (developer)
2012-01-19 13:36

That's true for all options used with "-c": when a source filename is found on the command-line, the compiler immediatly compiles it, taking into account only arguments given before it (i.e. -pp, -I, etc. are not taken into account if placed after the filename).

- Issue History
Date Modified Username Field Change
2012-01-19 09:50 barnier New Issue
2012-01-19 13:36 lefessan Note Added: 0006727
2012-01-19 13:36 lefessan Status new => resolved
2012-01-19 13:36 lefessan Resolution open => won't fix
2012-01-19 13:36 lefessan Assigned To => lefessan
2013-08-31 12:44 xleroy Status resolved => closed
2017-02-23 16:36 doligez Category OCaml general => -OCaml general

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker