Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Unable to compile camlp4 39af3807183e on 4.02.0+dev4-2014-04-03 #6371
Original bug ID: 6371
If I try to compile camlp4 trunk on ocaml trunk, it exhibits unbounded recursion while executing:
$HOME/.opam/4.02.0dev+trunk/bin/ocamlc.opt -c -g -warn-error A -w a -I camlp4/import -I camlp4/config -I camlp4/boot -o camlp4/boot/Camlp4.cmo camlp4/boot/Camlp4.ml
Attaching gdb to the process reveals that the loop consists of calls to:
(The cycle is larger than just these two calls.)
This issue is very problematic, because I have to use trunk to get -ppx, and such commonly used packages as lwt or oasis have a hard dependency on camlp4.
Later, I will try to bisect the OCaml tree between the separation of camlp4 and trunk.
Steps to reproduce
$ git clone git://github.com/ocaml/camlp4