Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005548OCamlOCamlbuild (the tool)public2012-03-20 11:072012-09-21 13:50
Reportergasche 
Assigned Tomeyer 
PrioritynormalSeverityminorReproducibilityN/A
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version 
Target Version4.01.0+devFixed in Version 
Summary0005548: ocamlbuild's ocamlfind integration doesn't support syntax extensions
DescriptionOCamlbuild's ocamlfind integration includes -I-options and stuff from ocamlfind in the "compile" and "link" ocamlbuild steps but, to my knowledge, does not include them during preprocessing ("pp"). This means that while ocamlfind libraries can be used, I don't know how to use their attached syntax extensions (ocamlfind's predicate "syntax"). It would be nice if that was fixed.
Steps To ReproduceWith some ocamlfind package "foo.syntax" that enables syntax extensions, and some file "test.ml" using the extension,

  ocamlfind ocamlc -syntax camlp4o -package foo.syntax test.ml

does not raise a syntax error, while for instance

  ocamlbuild -use-ocamlfind -tag "package(foo.syntax)" test.pp.ml

does (because neither ocamlfind's -I-option nor the camlp4 extension archive name are included in the camlp4o invocation).
Additional InformationI have discussed this with Anil Madhavapeddy which mentioned a related need on the mailing list:

  https://groups.google.com/forum/#!topic/fa.caml/y6VsobyJV0s/discussion [^]
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0007112)
gasche (developer)
2012-03-20 11:09

I discussed this with xclerc and therefore mark this as "acknowledged".

If someone in the respected audience has a patch, please submit it! (Sane) contributions to fix ocamlbuild deficiencies are always welcome.
(0008042)
meyer (developer)
2012-09-10 05:16

So ocamlbuild just does not use ocamlfind in this case. This definetely needs fixing.

- Issue History
Date Modified Username Field Change
2012-03-20 11:07 gasche New Issue
2012-03-20 11:09 gasche Note Added: 0007112
2012-03-20 11:09 gasche Status new => acknowledged
2012-07-10 11:27 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:16 meyer Note Added: 0008042
2012-09-10 05:16 meyer Assigned To => meyer
2012-09-10 05:16 meyer Status acknowledged => assigned
2012-09-21 13:50 doligez Target Version 4.00.1+dev => 4.01.0+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker