montyly / gueb

https://tel.archives-ouvertes.fr/tel-01681707v2/document
MIT License
236 stars 50 forks source link

Problems installing dependency piqilib 0.6.6 #2

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi,

I was following the installation instructions using debian testing with ocaml 4.02.3 and wasn't able to build piqilib. I did a opam switch 4.02.1 and retried, but still no luck.

I'm currently stuck with the following error:

### stdout ###
# for dir in piqilib src; do \
# [...]
# done
# make[1]: Entering directory '/home/daniel/.opam/4.02.1/build/piqilib.0.6.6/piqilib'
# echo "let version = \"`head -1 ../VERSION`\"" >piqi_version.ml
# echo "version = \"`head -1 ../VERSION`\"" >META
# cat META.in >>META
# ocamlfind ocamlc -package ulex,easy-format,xmlm -c -pp "camlp4orf " -I +camlp4 pa_labelscope.ml
# /home/daniel/.opam/4.02.1/build/piqilib.0.6.6/make/OCamlMakefile:1065: recipe for target 'pa_labelscope.cmo' failed
# make[1]: Leaving directory '/home/daniel/.opam/4.02.1/build/piqilib.0.6.6/piqilib'
# /home/daniel/.opam/4.02.1/build/piqilib.0.6.6/make/Makefile.dirs:7: recipe for target 'dirs' failed
### stderr ###
# [...]
# File "pa_labelscope.ml", line 29, characters 17-22:
# While expanding quotation "expr" in a position of "expr":
#   Parse error: illegal begin of quotation of expression
#
# File "pa_labelscope.ml", line 1:
# Error: Error while running external preprocessor
# Command line: camlp4orf  'pa_labelscope.ml' > /tmp/ocamlppdafaae
#
# make[1]: *** [pa_labelscope.cmo] Error 2
# make: *** [dirs] Error 2

opam list has the following packages installed:

base-bigarray    base  Bigarray library distributed with the OCaml compiler
base-bytes       base  Bytes library distributed with the OCaml compiler
base-threads     base  Threads library distributed with the OCaml compiler
base-unix        base  Unix library distributed with the OCaml compiler
camlp4         4.02+6  Camlp4 is a system for writing extensible parsers for programming languages
cmdliner        0.9.8  Declarative definition of command line interfaces for OCaml
depext          0.9.0  Query and install external dependencies of OPAM packages
easy-format     1.2.0  High-level and functional interface to the Format module of the OCaml standard library
ocamlbuild          0  Build system distributed with the OCaml compiler since OCaml 3.10.0
ocamlfind       1.5.6  A library manager for OCaml
optcomp           1.6  Optional compilation with cpp-like directives
ulex              1.1  lexer generator for Unicode and OCaml
xmlm            1.2.0  Streaming XML codec for OCaml

there is already an outstanding bug at https://github.com/alavrik/piqi/issues/52, also someone else had the problem with BAP & piqi (https://github.com/BinaryAnalysisPlatform/bap/issues/323), the piqi project does not seem active anymore?

Any other version of ocaml I can switch to to get this working?

Thanks!

montyly commented 8 years ago

Hi,

I'm using Ocaml 4.02.3. But I have piqilib version 0.6.12 (and piqi in 0.7.4, opam 1.2.2). You seem to have piqilib in version 0.6.6. Could you try to update your version of piqilib ?

Regards

ghost commented 8 years ago

Ok, switching back wasn't possible since caml.inria.fr is unreachable, so I just removed ~/.opam and started fresh with the dist-ocaml 4.02.3. opam install piqi requires piqilib 0.6.6, I aborted that and went with opam install piqilib first, which gave me 0.6.12, and then installed piqi itself. Now I can proceed with gueb ;-)