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

Release page returns 403 error, and compiling nunchaku fails with numerous errors #37

Open
nano-o opened this issue Nov 12, 2022 · 3 comments

Comments

@nano-o
Copy link

nano-o commented Nov 12, 2022

Hello, couldn't install nunchaku on my system because the release page https://gforge.inria.fr/projects/nunchaku returns a 403 error and installing with opam (or compiling manually) fails with:

#=== ERROR while compiling nunchaku.0.6 =======================================#
# context     2.1.2 | linux/x86_64 | ocaml.4.13.1 | pinned(git+https://github.com/nunchaku-inria/nunchaku.git#master#91e62687)
# path        ~/.opam/default/.opam-switch/build/nunchaku.0.6
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p nunchaku -j 19
# exit-code   1
# env-file    ~/.opam/log/nunchaku-147734-090624.env
# output-file ~/.opam/log/nunchaku-147734-090624.out
### output ###
# [...]
# Alert deprecated: module CCOpt
# use CCOption instead
# File "src/transformations/TypeInference.ml", line 965, characters 8-17:
# 965 |         CCOpt.map
#               ^^^^^^^^^
# Alert deprecated: module CCOpt
# use CCOption instead
# File "src/transformations/TypeInference.ml", line 1129, characters 22-32:
# 1129 |                       CCOpt.iter (check_prenex_types_ ~loc) g;
#                              ^^^^^^^^^^
# Alert deprecated: module CCOpt
# use CCOption instead

Fixing that with a simple search and replace uncovers more deprecation errors.

@c-cube
Copy link
Member

c-cube commented Nov 14, 2022

Hi! Thank you for the issue. Have you tried building the master branch?

@nano-o
Copy link
Author

nano-o commented Nov 14, 2022

Hi, thanks for your response.
That's on the master branch. Looking at output again, there are also errors like this:

File "src/parsers/dune", line 11, characters 0-102:
11 | (menhir
12 |   ;(flags (--infer))
13 |   (modules Tip_parser TPTP_parser TPTP_model_parser Parser Parse_kodkod))
Error: the code back-end requires the type of every nonterminal symbol to be
known. Please specify the type of every symbol via %type declarations, or
enable type inference (look up --infer in the manual).
Type inference is automatically enabled when Menhir is used via Dune,
provided the dune-project file says (using menhir 2.0) or later.
The types of the following nonterminal symbols are unknown:
and_form
atomic_form
form
list(statement)
name
or_form
separated_nonempty_list(COMMA,term)
separated_nonempty_list(COMMA,var)
statement
term
unary_form
var

After digging a little more I realized I did not have tip-parser installed. After installing tip-parser with opam (which downgraded menhir-related packages), and also installing qcheck (which is not mentioned in the dependencies in the README), it finally compiled.

Sorry for the confusion.

@c-cube
Copy link
Member

c-cube commented Nov 14, 2022

No worries. It's a bit complicated to keep up with menhir sometimes.

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

2 participants