gregtatcam / imaplet-lwt

imaplet revamp with Lwt
19 stars 6 forks source link

Build failure while installing imaplet #5

Open amirmc opened 9 years ago

amirmc commented 9 years ago
$ opam config report
# OPAM status report
# opam-version    1.2.0
# self-upgrade    no
# os              darwin
# external-solver no
# criteria        -removed,-notuptodate,-changed*
# jobs            4
# repositories    1* (http)
# pinned          0
# current-switch  imap*
# last-update     2015-03-14 20:56`
#=== ERROR while installing imaplet-lwt.0.1.4 =================================#
# opam-version 1.2.0
# os           darwin
# command      ./configure --prefix=/Users/amir/.opam/imap --override=ocamlbuildflags -I storage
# path         /Users/amir/.opam/imap/build/imaplet-lwt.0.1.4
# compiler     system (4.02.1)
# exit-code    1
# env-file     /Users/amir/.opam/imap/build/imaplet-lwt.0.1.4/imaplet-lwt-47773-5dd0bd.env
# stdout-file  /Users/amir/.opam/imap/build/imaplet-lwt.0.1.4/imaplet-lwt-47773-5dd0bd.out
# stderr-file  /Users/amir/.opam/imap/build/imaplet-lwt.0.1.4/imaplet-lwt-47773-5dd0bd.err
### stderr ###
# ocamlfind: Package `irmin.unix' not found
# W: Field 'pkg_irmin_unix' is not set: Command ''/Users/amir/.opam/imap/bin/ocamlfind' query -format %d irmin.unix > '/var/folders/gd/bdnlf1ld21g4ynlctmqgml5h0000gn/T/oasis-d749e2.txt'' terminated with error code 2
# ocamlfind: Package `irmin.unix' not found
# W: Failure("Command ''/Users/amir/.opam/imap/bin/ocamlfind' query -format %d irmin.unix > '/var/folders/gd/bdnlf1ld21g4ynlctmqgml5h0000gn/T/oasis-9090f9.txt'' terminated with error code 2")
# ocamlfind: Package `irmin.unix' not found
# W: Failure("Command ''/Users/amir/.opam/imap/bin/ocamlfind' query -format %d irmin.unix > '/var/folders/gd/bdnlf1ld21g4ynlctmqgml5h0000gn/T/oasis-0f0873.txt'' terminated with error code 2")
# E: Cannot find findlib package irmin.unix
# E: Failure("1 configuration error")
amirmc commented 9 years ago

I wonder if this is a failure of the constraint solver somehow (I'm using the internal solver). I see that the most recent version of the lib is 0.1.9 but my system is only trying to install 0.1.4.

amirmc commented 9 years ago

Interesting…

$ opam install imaplet-lwt.0.1.8
Your request can't be satisfied:
  - No package matches imaplet-lwt.

No solution found, exiting
$ opam install imaplet-lwt.0.1.9
Your request can't be satisfied:
  - No package matches imaplet-lwt.

No solution found, exiting
amirmc commented 9 years ago

I notice from the OPAM repo webpage that the dependency on re2 was changed to re in 0.1.9. It would be helpful to have a changelog with each release so that it's easier to find out what the fixes/differences are.

gregtatcam commented 9 years ago

Makes sense. Will add it to the next release.

Perhaps you need to do opam update/upgrade to get it to work?

On Mar 14, 2015, at 9:25 PM, Amir Chaudhry notifications@github.com wrote:

I notice from the OPAM repo webpage that the dependency on re2 was changed to re in 0.1.9. It would be helpful to have a changelog with each release so that it's easier to find out what the fixes/differences are.

— Reply to this email directly or view it on GitHub https://github.com/gregtatcam/imaplet-lwt/issues/5#issuecomment-80725313.

amirmc commented 9 years ago

Already did that and I usually do it before any new installs. I also tried this out a few times on different switches (4.01.0 and 4.02.1), and both were trying to install 0.1.4 and failed. Not quite sure if it's just an issue with this package or a combination of issues with my opam install (I find it strange that I can't get 0.1.8 nor 0.1.9).

On 14 Mar 2015, at 21:39, gregtatcam notifications@github.com wrote:

Makes sense. Will add it to the next release.

Perhaps you need to do opam update/upgrade to get it to work?

On Mar 14, 2015, at 9:25 PM, Amir Chaudhry notifications@github.com wrote:

I notice from the OPAM repo webpage that the dependency on re2 was changed to re in 0.1.9. It would be helpful to have a changelog with each release so that it's easier to find out what the fixes/differences are.

� Reply to this email directly or view it on GitHub https://github.com/gregtatcam/imaplet-lwt/issues/5#issuecomment-80725313.

� Reply to this email directly or view it on GitHub.

gregtatcam commented 9 years ago

Yes, sounds strange.

There is something broken with the latest opam packages. I checked in CHANGES.md in imaplet-lwt which triggered Travis script and tls failed to build. Maybe this is causing the issue as imaplet-lwt depends on tls.

/home/travis/.opam/system/bin/ocamlfind ocamldep -syntax camlp4o -package cstruct.syntax -package io-page -package ipaddr -package lwt -syntax camlp4o -package lwt.syntax -package mirage-types -package nocrypto -syntax camlp4o -package sexplib.syntax -package x509 -modules mirage/tls_mirage.ml > mirage/tls_mirage.ml.depends

<># /home/travis/.opam/system/bin/ocamlfind ocamlc -c -g -annot -bin-annot -I lib -syntax camlp4o -package cstruct.syntax -package io-page -package ipaddr -package lwt -syntax camlp4o -package lwt.syntax -package mirage-types -package nocrypto -syntax camlp4o -package sexplib.syntax -package x509 -I mirage -I lib -o mirage/tls_mirage.cmo mirage/tls_mirage.ml <># + /home/travis/.opam/system/bin/ocamlfind ocamlc -c -g -annot -bin-annot -I lib -syntax camlp4o -package cstruct.syntax -package io-page -package ipaddr -package lwt -syntax camlp4o -package lwt.syntax -package mirage-types -package nocrypto -syntax camlp4o -package sexplib.syntax -package x509 -I mirage -I lib -o mirage/tls_mirage.cmo mirage/tls_mirage.ml <># File "mirage/tls_mirage.ml", line 1: <># Error: The implementation mirage/tls_mirage.ml <># does not match the interface mirage/tls_mirage.cmi: <># ... <># At position module Make(F)(E) : <># The value `error_message' is required but not provided <># Command exited with code 2. <>### stderr ###

On Mar 14, 2015, at 9:54 PM, Amir Chaudhry notifications@github.com wrote:

Already did that and I usually do it before any new installs. I also tried this out a few times on different switches (4.01.0 and 4.02.1), and both were trying to install 0.1.4 and failed. Not quite sure if it's just an issue with this package or a combination of issues with my opam install (I find it strange that I can get 0.1.8 nor 0.1.9).

On 14 Mar 2015, at 21:39, gregtatcam notifications@github.com wrote:

Makes sense. Will add it to the next release.

Perhaps you need to do opam update/upgrade to get it to work?

On Mar 14, 2015, at 9:25 PM, Amir Chaudhry notifications@github.com wrote:

I notice from the OPAM repo webpage that the dependency on re2 was changed to re in 0.1.9. It would be helpful to have a changelog with each release so that it's easier to find out what the fixes/differences are.

� Reply to this email directly or view it on GitHub https://github.com/gregtatcam/imaplet-lwt/issues/5#issuecomment-80725313.

� Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/gregtatcam/imaplet-lwt/issues/5#issuecomment-80737659.