
























Please add ocaml-num to the dependencies.
Getting the following error:
ocamlfind: Package `qcheck' not found
Build mode: shared
ocamlbuild -no-links -no-links -use-ocamlfind src/batteries.cma src/batteriesHelp.cmo src/batteriesThread.cma META src/batteries.cmxs src/batteriesThread.cmxs
Finished, 1 target (0 cached) in 00:00:00.
ocamlfind: Package `bisect' not found
+ ocamlfind ocamldep -package bigarray,num,str -package str -package bytes -modules build/prefilter.ml > build/prefilter.ml.depends
ocamlfind: Package `num' not found
Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:00.
make: *** [Makefile:93: all] Error 10
Probably needs ocaml-num as dependency
Getting the following error with OCaml 4.05.0 (the current default on Arch) + ocamlfind ocamlc -c -g -w -3 -package bigarray,num,str -package bytes -I src -I testsuite -I benchsuite -I build -I qtest -o src/batUnix.cmi src/batUnix.mli File "src/batUnix.mliv", line 253, characters 0-1167: Error: This variant or record definition does not match that of type Unix.open_flag The field O_KEEPEXEC is only present in the original definition. From the documentation of the batteries 2.7.0, that seems to be the first version that supports OCaml 4.05.0: https://github.com/ocaml-batteries-team/batteries-included/releases/tag/v2.7.0
Thanks thorsten, I updated it to 2.5.3 which has fixes to work with OCaml 4.04.
The package is not compiling for me. $ makepkg -cf ==> Making package: ocaml-batteries 2.5.0-1 (Fri Nov 18 14:20:01 CET 2016) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found v2.5.0.tar.gz ==> Validating source files with sha512sums... v2.5.0.tar.gz ... Passed ==> Extracting sources... -> Extracting v2.5.0.tar.gz with bsdtar ==> Removing existing $pkgdir/ directory... ==> Starting build()... ocamlfind: Package `qcheck' not found Build mode: shared ocamlbuild -no-links -no-links -use-ocamlfind src/batteries.cma src/batteriesHelp.cmo src/batteriesThread.cma META src/batteries.cmxs src/batteriesThread.cmxs Finished, 0 targets (0 cached) in 00:00:00. ocamlfind: Package `bisect' not found + ocamlfind ocamlc -c -g -annot -w -3 -w -29 -package bigarray,num,str -package bytes -I src -I benchsuite -I qtest -I build -I testsuite -o src/batBytes.cmo src/batBytes.ml File "src/batBytes.ml", line 1: Error: The implementation src/batBytes.ml does not match the interface src/batBytes.cmi: Values do not match: external length : bytes -> int = "%bytes_length" is not included in external length : t -> int = "%string_length" Command exited with code 2. Compilation unsuccessful after building 309 targets (308 cached) in 00:00:00. make: *** [Makefile:78: all] Error 10 ==> ERROR: A failure occurred in build(). Aborting... $ pacman -Qs ocaml|grep ^local local/camlp5-transitional 6.12-1 local/cppo 1.3.2-1 local/ocaml 4.04.0-1 local/ocaml-compiler-libs 4.04.0-1 local/ocaml-findlib 1.6.3-1 local/ocamlbuild 0.9.3-1
Thanks Darksonn, I've updated the whole package to 2.5.0 which has some fixes for OCaml 4.03.
With the release of OCaml 4.03, the ocamlbuild executable has been split from the ocaml package, and the package "ocamlbuild" must be added to the dependencies for this to build. The split has been mentioned in the release notes here: https://ocaml.org/releases/4.03.html
What is the error message on ARM? I currently don't have an ARM box to test.
Any chance we can get this working for ARM? I'm willing to help.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
Added ocaml-num dependency.