Skip to content

Dune build fails when camlimages.5.0.5 is installed #424

@TonalidadeHidrica

Description

@TonalidadeHidrica

opam install satysfi fails by the following error.

❯ opam install satysfi
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[satysfi.0.0.10] synchronised (no changes)
The following actions will be performed:
  ∗ install satysfi 0.0.10*
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of satysfi.0.0.10 failed at "make -f Makefile
        PREFIX=/home/username/.opam/satysfi-switch".
#=== ERROR while compiling satysfi.0.0.10 =====================================#
# context     2.1.2 | linux/x86_64 | ocaml-base-compiler.4.14.1 | pinned(git+file:///home/username/dev/git/com/github/gfngfn/SATySFi#master#530ab470)
# path        ~/.opam/satysfi-switch/.opam-switch/build/satysfi.0.0.10
# command     ~/.opam/opam-init/hooks/sandbox.sh build make -f Makefile PREFIX=/home/username/.opam/satysfi-switch
# exit-code   2
# env-file    ~/.opam/log/satysfi-174420-08433b.env
# output-file ~/.opam/log/satysfi-174420-08433b.out
### output ###
# [...]
# 7 |             camlimages
#                 ^^^^^^^^^^
# Error: Library "camlimages" not found.
# -> required by library "satysfi" in _build/default/src
# -> required by _build/default/META.satysfi
# -> required by _build/install/default/lib/satysfi/META
# -> required by _build/default/satysfi.install
# -> required by alias install
# -> required by alias default
# Warning: one state has shift/reduce conflicts.
# Warning: one shift/reduce conflict was arbitrarily resolved.
# make: *** [Makefile:11: all] Error 1
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build satysfi 0.0.10
└─
╶─ No changes have been performed

But camlimages is indeed intaled:

❮ opam list
# Packages matching: installed
# Name                      # Installed   # Synopsis
(snip)
camlimages                  5.0.5         Image processing library
(snip)

@gfngfn reported that this does not occur when camlimages.5.0.4-1 is installed. So the workaround is to install that version manually before installing satysfi:

❯ opam install camlimages.5.0.4-1
The following actions will be performed:
  ↘ downgrade camlimages 5.0.5 to 5.0.4-1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved camlimages.5.0.4-1  (https://opam.ocaml.org/cache)
⊘ removed   camlimages.5.0.5
∗ installed camlimages.5.0.4-1
Done.


❯ opam install satysfi

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[satysfi.0.0.10] synchronised (no changes)

The following actions will be performed:
  ∗ install satysfi 0.0.10*

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
∗ installed satysfi.0.0.10
Done.

Further investigation is wanted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions