Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005484OCamlOCaml generalpublic2012-01-19 09:502013-08-31 12:44
Reporterbarnier 
Assigned Tolefessan 
PrioritynormalSeverityminorReproducibilityalways
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[a.ml]
 type t = float

ocamlopt.opt -c a.ml -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
(0006727)
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


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker