Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation failure under 4.04.0+flambda #102

Closed
hcarty opened this issue Jan 18, 2017 · 4 comments
Closed

Compilation failure under 4.04.0+flambda #102

hcarty opened this issue Jan 18, 2017 · 4 comments

Comments

@hcarty
Copy link
Contributor

hcarty commented Jan 18, 2017

Version 1.1.5 from opam, I haven't tested on vanilla 4.04.0:

$ opam install ocp-index
The following actions will be performed:
  βˆ—  install ocp-index 1.1.5

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫
[ERROR] The compilation of ocp-index failed at "make".

#=== ERROR while installing ocp-index.1.1.5 ===================================#
# opam-version 1.2.2
# os           darwin
# command      make
# path         /Users/hcarty/.opam/4.04.0+flambda/build/ocp-index.1.1.5
# compiler     4.04.0+flambda
# exit-code    2
# env-file     /Users/hcarty/.opam/4.04.0+flambda/build/ocp-index.1.1.5/ocp-index-63766-d2c37b.env
# stdout-file  /Users/hcarty/.opam/4.04.0+flambda/build/ocp-index.1.1.5/ocp-index-63766-d2c37b.out
# stderr-file  /Users/hcarty/.opam/4.04.0+flambda/build/ocp-index.1.1.5/ocp-index-63766-d2c37b.err
### stdout ###
# ocp-build -init
# ocp-build ocp-index-lib
### stderr ###
# [...]
# Error log:
# Error:
# [74.1] '/Users/hcarty/.opam/4.04.0+flambda/bin/ocamlc.opt' '-g' '-w' '+1..39-4-9-37-40' '-safe-string' '-bin-annot' '-c' '-o' '_obuild/3e53ee567b3938151d81cb153540cab7/indexScope.cmo' '-I' './_obuild/ocp-index-lib' '-I' './src' '-I' '/Users/hcarty/.opam/4.04.0+flambda/lib/ocp-indent/utils' '-I' '/Users/hcarty/.opam/4.04.0+flambda/lib/ocaml/compiler-libs' '-I' '/Users/hcarty/.opam/4.04.0+flambda/lib/ocp-indent/lexer' 'src/indexScope.ml'
#
# File "src/indexScope.ml", line 24, characters 14-26:
# Error: Unbound module Pos
#
# Error:
# Target _obuild/ocp-index-lib/indexScope.cmo not built
# make: *** [ocp-index-lib] Error 2



=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫
The following actions failed
  βˆ—  install ocp-index 1.1.5
No changes have been performed
@AltGr
Copy link
Member

AltGr commented Jan 19, 2017

ocp-index 1.1.5 works with 4.04.0 ; the error, here, doesn't seem to be related with the OCaml version.
Package Pos is supposed to come from ocp-indent's parser modules, that ocp-index uses. Can you check what version is installed and if the installation seems consistent ?

Thanks!

@AltGr
Copy link
Member

AltGr commented Jan 19, 2017

I found your branch at git+https://github.com/hcarty/ocp-indent#sequence-ignore-extensions is based upon ocp-indent's master, and the package was still probably pinned on your side.
Current version on opam-repository is actually based upon the branch rewind, because we found some regression with @OCamlPro-Henry's new parser ; ocp-indent hasn't been ported to the master version yet. Unfortunately, @OCamlPro-Henry has been very busy recently and couldn't fix the regressions yet so that we complete the update.

@AltGr AltGr closed this as completed Jan 19, 2017
@hcarty
Copy link
Contributor Author

hcarty commented Jan 19, 2017

Ah! Thank you very much - you're correct, I still had a version pinned based off of master.

@romildo
Copy link

romildo commented Jun 1, 2017

I am getting this error too when compiling ocp-index-1.1.5 with ocp-indent-1.6.0 on NixOS:

0.01s _obuild/ocp-index-lib/indexScope.cmo                             [failed]
[74.1] Command failed: '/nix/store/qvrkhhxmg9sl284f2b0asxhb37fw75yl-ocaml-4.04.1/bin/ocamlc.opt' '-g' '-w' '+1..39-4-9-37-40' '-safe-string' '-bin-annot' '-c' '-o' '_obuild/5b757095a3f03a9407098f7ce1bbd117/indexScope.cmo' '-I' './_obuild/ocp-index-lib' '-I' './src' '-I' '/nix/store/qvrkhhxmg9sl284f2b0asxhb37fw75yl-ocaml-4.04.1/lib/ocaml/compiler-libs' '-I' '/nix/store/3rv464qci8cxwvdlqxdna2x1h8amlk0w-ocp-indent-1.6.0/lib/ocaml/4.04.1/site-lib/ocp-indent/utils' '-I' '/nix/store/3rv464qci8cxwvdlqxdna2x1h8amlk0w-ocp-indent-1.6.0/lib/ocaml/4.04.1/site-lib/ocp-indent/lexer' './src/indexScope.ml'
-- stderr for ./_obuild/ocp-index-lib/indexScope.cmo --
File "./src/indexScope.ml", line 24, characters 14-26:
Error: Unbound module Pos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants