Menu

#6 Build fails on Ubuntu with OCaml-3.10+beta

open
nobody
None
5
2007-04-25
2007-04-25
No

Library build fails on Ubuntu 7.04 with OCaml-3.10+beta

The command sequence is as follows:

$ tar xjf cf-0.8.tar.bz2

$ cd cf-0.8

$ make default
ocamlfind ocamlc -package "unix" -predicates "" -ccopt -fPIC -ccopt -O2 -ccopt -Wall -ccopt -Wno-unused-variable -o cf_common_p.o -c cf_common_p.c

....

ocamlfind ocamlc -package "unix" -predicates "" -passopt -w -passopt Ae -principal -g -o cf_lex.cmo -c cf_lex.ml

ocamlfind ocamlc -package "unix" -predicates "" -passopt -w -passopt Ae -principal -g -o cf_scan_parser.cmo -c cf_scan_parser.ml

The implementation cf_scan_parser.ml
does not match the interface cf_scan_parser.cmi:
Values do not match:
val cscanf :
('a -> (< fini : 'c; init : Scanf.Scanning.scanbuf; .. > as 'b)) ->
('b -> exn -> 'd) ->
('e, Scanf.Scanning.scanbuf, 'f, 'g -> 'h, 'e -> 'd, 'd) format6 ->
'g -> 'a -> ('h * 'c) option
is not included in
val cscanf :
('a Cf_seq.t -> ('a #scanner as 'b)) ->
('b -> exn -> 'c) ->
('d, Scanf.Scanning.scanbuf, 'c) format -> 'd -> ('a, 'c) Cf_parser.t
make: *** [cf_scan_parser.cmo] Error 2

$ ocaml -version

The Objective Caml toplevel, version 3.10.0+beta

$ uname -a
Linux vanyakin 2.6.20-8-generic #2 SMP Tue Feb 13 05:18:42 UTC 2007 i686 GNU/Linux

Discussion


Log in to post a comment.