You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 6605 Reporter: florent.becker Assigned to:@gasche Status: closed (set by @xavierleroy on 2017-09-24T15:31:43Z) Resolution: fixed Priority: normal Severity: minor OS: linux OS Version: nixos Target version: later Fixed in version: 4.03.0+dev / +beta1 Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Bug description
The path to camlp4 is hard-coded as "+camlp4/…" in ocamlbuild, which makes it impossible to build some packages using it (at least optcomp) when camlp4 is installed into another directory than the compilers' stdlib. At least optcomp is affected.
Steps to reproduce
Install camlp4 (version 4.02) with a LIBDIR and PKGDIR other than the path to the compilers' stdlib, then try to compile optcomp.
We were aware of this before the 4.02 release, but the problem is that many part of the ecosystem assume that the path +camlp4 is usable -- not only ocamlbuild, and by far. Some solutions were proposed, but the safer and less invasive was to just make sure that distribution packagers would keep installed camlp4 in LIB_DIR as expected by the tools.
This is not to say that this is not an issue. It is, but you must leave it some time for the ecosystem to evolve and, for now, assume that camlp4 must be installed at the same place it had in the previous releases.
Original bug ID: 6605
Reporter: florent.becker
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2017-09-24T15:31:43Z)
Resolution: fixed
Priority: normal
Severity: minor
OS: linux
OS Version: nixos
Target version: later
Fixed in version: 4.03.0+dev / +beta1
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Bug description
The path to camlp4 is hard-coded as "+camlp4/…" in ocamlbuild, which makes it impossible to build some packages using it (at least optcomp) when camlp4 is installed into another directory than the compilers' stdlib. At least optcomp is affected.
Steps to reproduce
Install camlp4 (version 4.02) with a LIBDIR and PKGDIR other than the path to the compilers' stdlib, then try to compile optcomp.
Compilation fails with:
ocamlfind ocamlc -c -I +camlp4 -I +camlp4/Camlp4Parsers -I +camlp4/Camlp4Printers -I +camlp4/Camlp4Filters -g -I src -package camlp4 -package camlp4.lib -syntax camlp4o -package camlp4.quotations.o -I src -o src/optcomp_o.cmo src/optcomp_o.ml
File "src/optcomp_o.ml", line 12, characters 38-67:
Error: Unbound module Camlp4OCamlRevisedParser
The text was updated successfully, but these errors were encountered: