| Anonymous | Login | Signup for a new account | 2013-05-23 07:07 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
| 0005378 | OCaml | Camlp4 | public | 2011-10-17 17:41 | 2012-09-20 16:31 | ||||||
| Reporter | jjb | ||||||||||
| Assigned To | xclerc | ||||||||||
| Priority | normal | Severity | feature | Reproducibility | always | ||||||
| Status | assigned | Resolution | open | ||||||||
| Platform | OS | OS Version | |||||||||
| Product Version | 3.12.1 | ||||||||||
| Target Version | Fixed in Version | ||||||||||
| Summary | 0005378: Camlp4MacroParser.cmxs not built when compiling from source on Windows (32-bit MSVC port) | ||||||||||
| Description | Following the build instructions in README.win32 results in a successful build, but Camlp4MacroParser.cmxs has not been compiled or installed. After compilation finishes, executing "cd _build/camlp4/CamlP4Parsers; ocamlbuild Camlp4MacroParser.cmxs; cp _build/Camlp4MacroParser.cmxs $PREFIX/lib/Camlp4Parsers" successfully compiles and installs. | ||||||||||
| Tags | No tags attached. | ||||||||||
| Attached Files | |||||||||||
Notes |
|
|
(0006170) jjb (reporter) 2011-10-17 22:14 |
Further testing suggests that this is not specific to windows, I also see it with macos x. |
|
(0007709) lefessan (developer) 2012-07-11 14:06 |
In my experience, .cmxs are never installed for camlp4, in any architecture/version. The .cmx is installed for all the backends I have tested (mingw, msvc, msvc64, cygwin) for both 3.12.1 and 4.00. Why would you need Camlp4MacroParser.cmxs when you can use Camlp4MacroParser.cmx instead ? |
|
(0007754) jjb (reporter) 2012-07-15 20:36 |
The use case for these .cmxs files is as plugins for the native version of camlp4. For instance I have an option passed to ocamlbuild: -tag-line "<**/Foo.ml>: pp(camlp4o.opt Camlp4MacroParser.cmxs -no_quot #" Perhaps this is not an intended usage, or there is a better way? |
|
(0007827) lefessan (developer) 2012-07-27 14:06 |
On my computer, Camlp4 files are about 98 MB, while the complete OCaml install is 250 MB, i.e. 40% of it. Generating all the cmxs for all the cmx files there would make the Camlp4 directory even bigger, too big for my taste. Such files can be generated easily on demand when needed: ocamlopt -shared -o Camlp4MacroParser.cmxs -I +camlp4/Camlp4Parsers Camlp4MacroParser.cmx If nobody complains about it, I will close this feature request with "Won't fix". Maybe Camlp4 documentation should be improved to explain how to generate such plugins on demand. |
|
(0007828) jjb (reporter) 2012-07-27 14:11 |
I think that your suggestion of changing just the documentation sounds like a good plan. |
|
(0007965) hongboz (developer) 2012-08-22 12:12 |
IMO, -parser macro should apply the module to get the side effect instead of dynamic loading. So for any platform which supports native code instead of dynamic native loading, it supports the native version |
|
(0008130) doligez (manager) 2012-09-20 16:31 |
To do: improve documentation as suggested by lefessan. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2011-10-17 17:41 | jjb | New Issue | |
| 2011-10-17 22:14 | jjb | Note Added: 0006170 | |
| 2011-11-16 14:46 | xclerc | Status | new => assigned |
| 2011-11-16 14:46 | xclerc | Assigned To | => xclerc |
| 2012-07-10 13:52 | doligez | Target Version | => 4.00.0+dev |
| 2012-07-11 14:06 | lefessan | Note Added: 0007709 | |
| 2012-07-11 14:06 | lefessan | Status | assigned => feedback |
| 2012-07-11 14:51 | lefessan | Target Version | 4.00.0+dev => 4.01.0+dev |
| 2012-07-15 20:36 | jjb | Note Added: 0007754 | |
| 2012-07-15 20:36 | jjb | Status | feedback => assigned |
| 2012-07-27 12:49 | frisch | Category | OCaml general => Camlp4 |
| 2012-07-27 14:06 | lefessan | Note Added: 0007827 | |
| 2012-07-27 14:06 | lefessan | Status | assigned => feedback |
| 2012-07-27 14:11 | jjb | Note Added: 0007828 | |
| 2012-07-27 14:11 | jjb | Status | feedback => assigned |
| 2012-07-31 13:36 | doligez | Target Version | 4.01.0+dev => 4.00.1+dev |
| 2012-08-22 12:12 | hongboz | Note Added: 0007965 | |
| 2012-09-20 16:31 | doligez | Note Added: 0008130 | |
| 2012-09-20 16:31 | doligez | Severity | minor => feature |
| 2012-09-20 16:31 | doligez | Target Version | 4.00.1+dev => |
| Copyright © 2000 - 2011 MantisBT Group |