Errors when upgrading ppx_metaquot
Closed this issue · 2 comments
liweijian commented
I add janestreet as my local repository:
opam repo add janestreet git://github.com/janestreet/opam-repository.git
In the process of opam update
and opam upgrade
, there's errors
[ERROR] The compilation of ppx_let failed at "jbuilder build-package ppx_let -j 4".
[ERROR] The compilation of ppx_metaquot failed at "jbuilder build-package ppx_metaquot -j 4".
[ERROR] The compilation of ppx_here failed at "jbuilder build-package ppx_here -j 4".
With the details as follow
#=== ERROR while installing ppx_here.114.29+19 ================================#
# opam-version 1.2.2
# os darwin
# command jbuilder build-package ppx_here -j 4
# path /Users/liweijian/.opam/4.03.0/build/ppx_here.114.29+19
# compiler 4.03.0
# exit-code 1
# env-file /Users/liweijian/.opam/4.03.0/build/ppx_here.114.29+19/ppx_here-2227-4d22fb.env
# stdout-file /Users/liweijian/.opam/4.03.0/build/ppx_here.114.29+19/ppx_here-2227-4d22fb.out
# stderr-file /Users/liweijian/.opam/4.03.0/build/ppx_here.114.29+19/ppx_here-2227-4d22fb.err
### stderr ###
# [...]
# [since 2015-11] use Expert.declare instead
# File "expander/ppx_here_expander.ml", line 3, characters 18-31:
# Error: Unbound module Caml
# File "src/ppx_here.ml", line 11, characters 18-22:
# Error: This expression has type
# (Parsetree.expression,
# loc:Location.t -> path:'a -> Parsetree.expression)
# Ppx_core.Extension.Expert.t
# but an expression was expected of type
# Ppx_core.Std.Extension.V2.t = Ppx_core.Extension.V2.t
#=== ERROR while installing ppx_let.114.29+19 =================================#
# opam-version 1.2.2
# os darwin
# command jbuilder build-package ppx_let -j 4
# path /Users/liweijian/.opam/4.03.0/build/ppx_let.114.29+19
# compiler 4.03.0
# exit-code 1
# env-file /Users/liweijian/.opam/4.03.0/build/ppx_let.114.29+19/ppx_let-2227-89dc30.env
# stdout-file /Users/liweijian/.opam/4.03.0/build/ppx_let.114.29+19/ppx_let-2227-89dc30.out
# stderr-file /Users/liweijian/.opam/4.03.0/build/ppx_let.114.29+19/ppx_let-2227-89dc30.err
### stderr ###
# [...]
# Running: (cd _build/default && /Users/liweijian/.opam/4.03.0/bin/ocamlopt.opt -w -40 -g -I /Users/liweijian/.opam/4.03.0/lib/ocaml/compiler-libs -I /Users/liweijian/.opam/4.03.0/lib/ppx_core -I /Users/liweijian/.opam/4.03.0/lib/ppx_driver -I /Users/liweijian/.opam/4.03.0/lib/ppx_optcomp -no-alias-deps -I src -o src/ppx_let.cmx -c -impl src/ppx_let.ml)
# File "src/ppx_let.ml", line 10, characters 28-30:
# Error: This expression has type 'a list
# but an expression was expected of type
# (init:'b -> f:'c -> 'd) -> 'e -> init:'b -> f:'c -> 'd
# File "src/ppx_let.ml", line 10, characters 28-30:
# Error: This expression has type 'a list
# but an expression was expected of type
# (init:'b -> f:'c -> 'd) -> 'e -> init:'b -> f:'c -> 'd
# Command exited with code 2: (cd _build/default && /Users/liweijian/.opam/4.03.0/bin/ocamlc.opt -w -40 -g -bin-annot -I /Users/liweijian/.opam/4.03.0/lib/ocaml/compiler-libs -I /Users/liweijian/.opam/4.03.0/lib/ppx_core -I /Users/liweijian/.opam/4.03.0/lib/ppx_driver -I /Users/liweijian/.opam/4.03.0/lib/ppx_optcomp -no-alias-deps -I src -o src/ppx_let.cmo -c -impl src/ppx_let.ml)
#=== ERROR while installing ppx_metaquot.114.29+19 ============================#
# opam-version 1.2.2
# os darwin
# command jbuilder build-package ppx_metaquot -j 4
# path /Users/liweijian/.opam/4.03.0/build/ppx_metaquot.114.29+19
# compiler 4.03.0
# exit-code 1
# env-file /Users/liweijian/.opam/4.03.0/build/ppx_metaquot.114.29+19/ppx_metaquot-2227-2416d7.env
# stdout-file /Users/liweijian/.opam/4.03.0/build/ppx_metaquot.114.29+19/ppx_metaquot-2227-2416d7.out
# stderr-file /Users/liweijian/.opam/4.03.0/build/ppx_metaquot.114.29+19/ppx_metaquot-2227-2416d7.err
### stderr ###
# Running: /Users/liweijian/.opam/4.03.0/bin/ocamlc.opt -config > /var/folders/d6/1spj_t0n0hqg0t1q_qfp2qgsmr76t5/T/jbuild0839f7.output
# Running: /Users/liweijian/.opam/4.03.0/bin/ocamlfind printconf path > /var/folders/d6/1spj_t0n0hqg0t1q_qfp2qgsmr76t5/T/jbuildc51603.output
# Running: /usr/local/bin/opam config var lib > /var/folders/d6/1spj_t0n0hqg0t1q_qfp2qgsmr76t5/T/jbuild0b09e7.output
# Running: (cd _build/default && /Users/liweijian/.opam/4.03.0/bin/ocamldep.opt -modules lifters/ppx_metaquot_lifters.ml > /var/folders/d6/1spj_t0n0hqg0t1q_qfp2qgsmr76t5/T/jbuild1a6af9.output)
# Running: (cd _build/default && /Users/liweijian/.opam/4.03.0/bin/ocamldep.opt -modules src/ppx_metaquot.ml > /var/folders/d6/1spj_t0n0hqg0t1q_qfp2qgsmr76t5/T/jbuild41e016.output)
# Running: (cd _build/default && /Users/liweijian/.opam/4.03.0/bin/ocamlc.opt -w -40 -g -bin-annot -I /Users/liweijian/.opam/4.03.0/lib/ocaml/compiler-libs -I /Users/liweijian/.opam/4.03.0/lib/ppx_core -I /Users/liweijian/.opam/4.03.0/lib/ppx_traverse_builtins -no-alias-deps -I lifters -o lifters/ppx_metaquot_lifters.cmo -c -impl lifters/ppx_metaquot_lifters.ml)
# File "lifters/ppx_metaquot_lifters.ml", line 5, characters 11-21:
# Error: Unbound type constructor expression
# Command exited with code 2: (cd _build/default && /Users/liweijian/.opam/4.03.0/bin/ocamlc.opt -w -40 -g -bin-annot -I /Users/liweijian/.opam/4.03.0/lib/ocaml/compiler-libs -I /Users/liweijian/.opam/4.03.0/lib/ppx_core -I /Users/liweijian/.opam/4.03.0/lib/ppx_traverse_builtins -no-alias-deps -I lifters -o lifters/ppx_metaquot_lifters.cmo -c -impl lifters/ppx_metaquot_lifters.ml)
Deleted user commented
Can you try: opam upgrade ppx_core
?
liweijian commented
Well, after a long long vacation of Chinese Lunar New Year, opam update ; opam upgrade
just works right now.