Issue #2 new

planck 2.1.1 fails to build in opam

Anil Madhavapeddy
created an issue

Log:

===== ERROR while installing planck.2.1.1 =====
# opam-version         1.1.1
# os                   linux
# command              ocaml setup.ml -build
# path                 /home/opam/.opam/system/build/planck.2.1.1
# compiler             system (4.01.0)
# exit-code            1
# env-file             /home/opam/.opam/system/build/planck.2.1.1/planck-4834-e4db2f.env
# stdout-file          /home/opam/.opam/system/build/planck.2.1.1/planck-4834-e4db2f.out
# stderr-file          /home/opam/.opam/system/build/planck.2.1.1/planck-4834-e4db2f.err
### stdout ###
# ...[truncated]
# *** omake: finished reading OMakefiles (0.16 sec)
# --- Checking if ocamldep understands -modules... (yes)
# - build pa_bind_inline pa_bind_inline.o
# + ocamlfind ocamlc -annot -bin-annot -package camlp4 -g -w A-4-9 -warn-error a -g -pp camlp4of -I . -c pa_bind_inline.ml
# - build pa_bind_inline pa_bind_inline.o
# + ocamlfind ocamlopt -annot -bin-annot -package camlp4 -g -w A-4-9 -warn-error a -pp camlp4of -I . -c pa_bind_inline.ml
# - build lib elem.cmo
# + ocamlfind ocamlc -annot -bin-annot -for-pack Planck -package sexplib,spotlib -g -w A-4-9 -warn-error a -g -syntax camlp4o -package sexplib.syntax -ppopt ../pa_bind_inline/pa_bind_inline.cmo -I . -c elem.ml
# *** omake: 130/288 targets are up to date
# *** omake: failed (9.47 sec, 42/42 scans, 15/22 rules, 76/253 digests)
### stderr ###
# ...[truncated]
# File "pa_bind_inline.ml", line 11, characters 0-12:
# Warning 44: this open statement shadows the module identifier Id (which is later used)
# *** omake: warning: stdout is not a tty, disabling the progress bar
#    (use --progress to override).
# File "elem.ml", line 15, characters 10-32:
# Error: Unbound module Mtypes.Make_comparable
# *** omake: targets were not rebuilt because of errors:
#    lib/elem.cmo
#       depends on: lib/elem.ml
# E: Failure("Command 'cp OMakeroot.in OMakeroot; PREFIX=/home/opam/.opam/system omake' terminated with error code 2")

Comments (3)

  1. Damien Doligez

    I have the same problem here (with a newer OPAM and OCaml).

    What is strange is that I have a log of the install working correctly once, but I couldn't reproduce it, even with the exact same set of OPAM packages. I have checked for race conditions in the build, AFAICT there are none.

    Anyway, I have a quick fix (patch below) but I don't understand enough of OMake to make a proper fix.

    --- camlspotter-planck-fbb6d4646a91.orig/ocaml/OMakefile    2013-07-09 02:53:08.000000000 -0400
    +++ camlspotter-planck-fbb6d4646a91/ocaml/OMakefile 2015-03-24 13:17:13.176560897 -0400
    @@ -33,6 +33,7 @@
    
     NO_INSTALL=true
     MyOCamlProgram(plpautoconv, $(FILES_plpautoconv))
    +plpautoconv.cmi plpautoconv.cmx plpautoconv.o plpautoconv.cmo: ../pa_bind_inline/pa_bind_inline.cmo
    
     ################################################################# lexer test
    
  2. Log in to comment