Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005406OCamlOCamlbuild (the tool)public2011-11-22 23:552012-09-20 16:50
Reporterwilliam 
Assigned Tomeyer 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionreopened 
PlatformOSOS Version
Product Version3.12.0 
Target Version4.01.0+devFixed in Version 
Summary0005406: tag does not expect a parameter, but is used with parameter ...
Descriptionocamlbuild warns for something strange. For example :

# ocamlbuild -pkgs lablgtk2 -tags warn_s tree.byte
Warning: tag "package" does not expect a parameter, but is used with parameter "lablgtk2"
Finished, 3 targets (0 cached) in 00:00:00.

Attached is file tree.ml taken from lablgtk2
TagsNo tags attached.
Attached Files? file icon tree.ml [^] (3,352 bytes) 2011-11-22 23:55

- Relationships
related to 0005547assignedmeyer Enable the "-use-ocamlfind" option by default 

-  Notes
(0006208)
xclerc (developer)
2011-11-23 10:39

This is not really a bug; if you use any ocamlfind feature,
you should pass the "-use-ocamlfind" command-line
switch to ocamlbuild. It will make the warning disappear.
(0006210)
william (reporter)
2011-11-26 12:17

ok that works. But we are not supposed to know that using "pkgs" option also requires "use-ocamlfind" option. If "pkgs" is an ocamlfind feature, then why not activate "use-ocamlfind" at the same time? Or why not activate ocamlfind all the time?
(0006211)
ygrek (reporter)
2011-11-28 13:56

or make the warning say what it means. I.e. when tag with unexpected parameter is "package" hint the user that -use-ocamlfind is required.
(0008044)
meyer (developer)
2012-09-10 05:36

Since the problem will go away after we implement -use-ocamlfind by default, I think the good fix for that would be to document the command line options that are not available with -no-ocamlfind, but also implement proper messages for all of them, and just halt the compilation with error if they are used with -no-ocamlfind.

- Issue History
Date Modified Username Field Change
2011-11-22 23:55 william New Issue
2011-11-22 23:55 william File Added: tree.ml
2011-11-23 10:39 xclerc Note Added: 0006208
2011-11-23 10:39 xclerc Status new => closed
2011-11-23 10:39 xclerc Resolution open => no change required
2011-11-26 12:17 william Note Added: 0006210
2011-11-26 12:17 william Status closed => feedback
2011-11-26 12:17 william Resolution no change required => reopened
2011-11-28 13:56 ygrek Note Added: 0006211
2012-02-02 15:17 protz Category OCamlbuild => OCamlbuild (the tool)
2012-03-29 19:14 gasche Relationship added related to 0005547
2012-07-10 13:08 doligez Target Version => 4.01.0+dev
2012-07-31 13:36 doligez Target Version 4.01.0+dev => 4.00.1+dev
2012-09-10 05:30 meyer Assigned To => meyer
2012-09-10 05:30 meyer Status feedback => assigned
2012-09-10 05:36 meyer Note Added: 0008044
2012-09-20 16:50 doligez Target Version 4.00.1+dev => 4.01.0+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker