Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

compile error on Arch Linux (with -warn-error -D) #95

Closed
pouar opened this issue Sep 25, 2014 · 3 comments
Closed

compile error on Arch Linux (with -warn-error -D) #95

pouar opened this issue Sep 25, 2014 · 3 comments

Comments

@pouar
Copy link

pouar commented Sep 25, 2014

After telling the compiler to use depreciated features anyway I got another error

File "/home/pouar/Downloads/ABS/aur-pfff-git/src/pfff/lang_cmt/parsing/meta_ast_cmt.ml", line 342, characters 17-248:
Warning 9: the following labels are not bound in this record pattern:
exp_attributes
Either bind these labels explicitly or add '; _' to the pattern.
File "/home/pouar/Downloads/ABS/aur-pfff-git/src/pfff/lang_cmt/parsing/meta_ast_cmt.ml", line 375, characters 2-589:
Warning 8: this pattern-matching is not exhaustive.
Here is an example of a value that is not matched:
Texp_coerce (_, _)
File "/home/pouar/Downloads/ABS/aur-pfff-git/src/pfff/lang_cmt/parsing/meta_ast_cmt.ml", line 436, characters 4-29:
Error: The constructor Texp_match expects 4 argument(s),
       but is applied here to 3 argument(s)
../../Makefile.common:136: recipe for target 'meta_ast_cmt.cmo' failed
make[2]: *** [meta_ast_cmt.cmo] Error 2
make[2]: Leaving directory '/home/pouar/Downloads/ABS/aur-pfff-git/src/pfff/lang_cmt/parsing'
Makefile:294: recipe for target 'rec' failed
make[1]: *** [rec] Error 1
make[1]: Leaving directory '/home/pouar/Downloads/ABS/aur-pfff-git/src/pfff'
Makefile:285: recipe for target 'all' failed
make: *** [all] Error 2
@pouar pouar changed the title compile error compile error on Arch Linux (with -warn-error -D) Sep 25, 2014
@aryx
Copy link
Contributor

aryx commented Sep 25, 2014

it's probably because of recent changes in ocaml. Which version of ocaml you use? 4.02?

You can try './configure no-cmt' to compile pfff without the support for ocaml code indexers.

@pouar
Copy link
Author

pouar commented Sep 25, 2014

4.02. and yeah, it compiled with --no-cmt

@aryx
Copy link
Contributor

aryx commented Sep 26, 2014

I've modified configure to do that by default. Thx for the bug report!

@aryx aryx closed this as completed Sep 26, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants