[Debian-med-packaging] Bug#1002230: [Help] Ocalm build error (Was: Bug#1002230: pplacer: FTBFS: /bin/sh: 1: git: not found)

Stéphane Glondu glondu at debian.org
Wed Dec 22 08:39:59 GMT 2021


Hi,

Le 22/12/2021 à 09:32, Andreas Tille a écrit :
> there is a new build error that is possibly caused by some change in the
> ocaml build system (since the source of the pplacer package did not
> changed):
> 
>> + ocamlfind ocamlopt -c -annot -w Z -package batteries -package csv -package xmlm -package gsl -package sqlite3 -package zip -package mcl -thread -I pplacer_src -I tests -I json_src -I cdd_src -I pdprune_src -I pam_src -I common_src -I tests/json -I tests/guppy -I tests/pplacer -I tests/rppr -o pplacer_src/voronoi.cmx pplacer_src/voronoi.ml
>> File "pplacer_src/voronoi.ml", line 547, characters 34-42:
>> 547 | let map_min f l = List.map f l |> List.min
>>                                         ^^^^^^^^
>> Error: This expression has type
>>          ?cmp:('weak10 -> 'weak10 -> int) -> 'weak10 list -> 'weak10
>>        but an expression was expected of type 'weak7 list -> 'weak9
>> Command exited with code 2.

Replacing "List.min" by "(fun x -> List.min x)" should fix that.

I don't know why this happens now, though. OCaml hasn't changed recently
in a way that would explain that.


Cheers,

-- 
Stéphane



More information about the Debian-med-packaging mailing list