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

Doesn't compile under 4.06.0+trunk due to safe-string default #7

Closed
hcarty opened this issue Oct 26, 2017 · 9 comments
Closed

Doesn't compile under 4.06.0+trunk due to safe-string default #7

hcarty opened this issue Oct 26, 2017 · 9 comments

Comments

@hcarty
Copy link

hcarty commented Oct 26, 2017

Using opam 1.2.2 and 4.06.0+trunk (safe-string enabled by default):

#=== ERROR while installing zed.1.5 ===========================================#
# opam-version 1.2.2
# os           linux
# command      jbuilder build -p zed -j 4
# path         /home/hcarty/.opam/4.06.0+trunk/build/zed.1.5
# compiler     4.06.0+trunk
# exit-code    1
# env-file     /home/hcarty/.opam/4.06.0+trunk/build/zed.1.5/zed-16785-0edee0.env
# stdout-file  /home/hcarty/.opam/4.06.0+trunk/build/zed.1.5/zed-16785-0edee0.out
# stderr-file  /home/hcarty/.opam/4.06.0+trunk/build/zed.1.5/zed-16785-0edee0.err
### stderr ###
# Error: This expression has type bytes but an expression was expected of type
# [...]
# (cd _build/default && /home/hcarty/.opam/4.06.0+trunk/bin/ocamlopt.opt -w -40 -g -I /home/hcarty/.opam/4.06.0+trunk/lib/bytes -I /home/hcarty/.opam/4.06.0+trunk/lib/camomile -I /home/hcarty/.opam/4.06.0+trunk/lib/ocaml -I /home/hcarty/.opam/4.06.0+trunk/lib/react -no-alias-deps -I src -o src/zed_utf8.cmx -c -impl src/zed_utf8.ml)
# File "src/zed_utf8.ml", line 303, characters 26-29:
# Error: This expression has type bytes but an expression was expected of type
#          string
#       ocamlc src/zed_rope.{cmo,cmt} (exit 2)
# (cd _build/default && /home/hcarty/.opam/4.06.0+trunk/bin/ocamlc.opt -w -40 -g -bin-annot -I /home/hcarty/.opam/4.06.0+trunk/lib/bytes -I /home/hcarty/.opam/4.06.0+trunk/lib/camomile -I /home/hcarty/.opam/4.06.0+trunk/lib/ocaml -I /home/hcarty/.opam/4.06.0+trunk/lib/react -no-alias-deps -I src -o src/zed_rope.cmo -c -impl src/zed_rope.ml)
# File "src/zed_rope.ml", line 541, characters 13-91:
# Error: This expression has type bytes but an expression was expected of type
#          Zed_utf8.t = string
@hcarty
Copy link
Author

hcarty commented Oct 26, 2017

In particular, this blocks installation of utop.

@Fourchaux
Copy link

Same pb with:

opam  2.0.0~beta4 | linux/x86_64 | ocaml 4.06.0+flambda 

@cfcs
Copy link

cfcs commented Nov 4, 2017

#8

@pmetzger
Copy link
Member

pmetzger commented Nov 5, 2017

I just hit this. The fact that it blocks the install of utop is kind of bad, it means I can't really upgrade to 4.06.

Does anyone know what needs to be done to patch this?

@cfcs
Copy link

cfcs commented Nov 6, 2017

@pmetzger see my link to @rgrinberg's PR above.

@rgrinberg
Copy link
Contributor

@pmetzger everything that "needs to be done" is finished. We just need for the releases to hit opam-repository.

@pmetzger
Copy link
Member

pmetzger commented Nov 6, 2017

@cfcs I didn't notice that the "#8" was a link. :)

Apologies!

@pmetzger
Copy link
Member

Is this problem still active or can we close it? @diml?

@hcarty
Copy link
Author

hcarty commented Aug 22, 2018

This is OK now! Thank you for the nudge @pmetzger. Closing.

@hcarty hcarty closed this as completed Aug 22, 2018
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

5 participants