mmottl / gsl-ocaml

OCaml bindings to the GSL (GNU Scientific Library).
Other
36 stars 10 forks source link

Compilation of gsl fails with OPAMBUILDDOC #20

Closed rixed closed 6 years ago

rixed commented 7 years ago

Opam output:

#=== ERROR while installing gsl.1.19.3 ========================================#
# opam-version 1.2.2
# os           linux
# command      ocaml setup.ml -doc
# path         /home/rixed/.opam/ramen/build/gsl.1.19.3
# compiler     4.04.2+flambda
# exit-code    1
# env-file     /home/rixed/.opam/ramen/build/gsl.1.19.3/gsl-4461-d2d111.env
# stdout-file  /home/rixed/.opam/ramen/build/gsl.1.19.3/gsl-4461-d2d111.out
# stderr-file  /home/rixed/.opam/ramen/build/gsl.1.19.3/gsl-4461-d2d111.err
### stdout ###
# Backtrace:
# [...]
#                           - Building src/Gsl.mly
#               - Building src/gsl.odoc:
#                   - Failed to build all of these:
#                       - Building src/gsl.ml:
#                           - Failed to build all of these:
#                               - Building src/gsl.mly
#                               - Building src/gsl.mll
#                       - Building src/gsl.mli:
#                           - Building src/gsl.mly
### stderr ###
# E: Failure("Command ''/home/rixed/.opam/ramen/bin/ocamlbuild' API.docdir/index.html -docflags '-colorize-code -keep-code -charset utf-8' -tag debug' terminated with error code 6")

Output of setup.ml -doc -verbose 9:

(...)
Solver failed:
  Ocamlbuild knows of no rules that apply to a target named src/Gsl.mly. This can happen if you ask Ocamlbuild to build a target with the wrong extension (e.g. .opt instead of .native) or if the source files live in directories that have not been specified as include directories.
Backtrace:
  - Failed to build the target API.docdir/index.html
      - Building API.docdir/index.html:
          - Failed to build all of these:
              - Building src/Gsl.odoc:
                  - Failed to build all of these:
                      - Building src/Gsl.ml:
                          - Failed to build all of these:
                              - Building src/Gsl.mly
                              - Building src/Gsl.mll
                      - Building src/Gsl.mli:
                          - Building src/Gsl.mly
              - Building src/gsl.odoc:
                  - Failed to build all of these:
                      - Building src/gsl.ml:
                          - Failed to build all of these:
                              - Building src/gsl.mly
                              - Building src/gsl.mll
                      - Building src/gsl.mli:
                          - Building src/gsl.mly
E: Failure("Command ''/home/rixed/.opam/ramen/bin/ocamlbuild' API.docdir/index.html -docflags '-colorize-code -keep-code -charset utf-8' -tag debug -verbose 9' terminated with error code 6")
mmottl commented 7 years ago

Back from vacation. I'm not sure what exactly the problem is, I've never seen this kind of error. Since the GSL bindings have been completely switched to jbuilder and topkg with version 1.20.0, you may want to try out the latest release anyway. It would probably not make much sense for me to invest time in maintaining older releases, but please feel free to submit a patch if you find a solution.

mmottl commented 6 years ago

I guess this one isn't relevant anymore.

rixed commented 6 years ago

Yes sorry. I'm using GSL through OWL and OWL moved to gsl >= 1.20.0, for which opam has no 'build-doc' directive.