janestreet / sexplib

Automated S-expression conversion
MIT License
147 stars 27 forks source link

Error: This expression has type bytes but an expression was expected of type string #31

Closed ghost closed 6 years ago

ghost commented 7 years ago

I'm trying to build sexplib on 4.06.0+trunk on ARM for some tests.

Getting this error:

#       ocamlc src0/sexplib0__Sexp.{cmo,cmt} (exit 2)
# (cd _build/default && /home/fox/.opam/4.06.0+trunk/bin/ocamlc.opt -w -40 -g -bin-annot -no-alias-deps -I src0 -open Sexplib0 -o src0/sexplib0__Sexp.cmo -c -impl src0/sexp.ml)
# File "src0/sexp.ml", line 77, characters 6-8:
# Error: This expression has type bytes but an expression was expected of type
#          string
#     ocamlopt src0/sexplib0__Sexp.{cmx,o} (exit 2)
# (cd _build/default && /home/fox/.opam/4.06.0+trunk/bin/ocamlopt.opt -w -40 -g -no-alias-deps -I src0 -open Sexplib0 -o src0/sexplib0__Sexp.cmx -c -impl src0/sexp.ml)
# File "src0/sexp.ml", line 77, characters 6-8:
# Error: This expression has type bytes but an expression was expected of type
#          string

Has sexplib not been adapted since the change for string?

mmottl commented 7 years ago

This problem apparently affects everyone using base, in particular many jbuilder configuration discovery files. A large number of packages hence won't be able to build. It would be great if this can be fixed before the release of OCaml 4.06.

xclerc commented 6 years ago

It should be fixed in the v0.9 branch; an opam PR has also been opened: https://github.com/ocaml/opam-repository/pull/10534

hhugo commented 6 years ago

sexplib.v0.9.3 is available in opam and compatible with OCaml 4.06