dbuenzli / uutf

Non-blocking streaming Unicode codec for OCaml
http://erratique.ch/software/uutf
ISC License
30 stars 15 forks source link

Tests do not build uutf-0.9.4 #3

Closed aballier closed 9 years ago

aballier commented 9 years ago

Hi,

I've tried to run tests on uutf 0.9.4 as described in the README.md but I can't get to build them:

$ pkg/build.ml native=true native-dynlink=true cmdliner=true
[...]
$ ocamlbuild tests.otarget
File "_tags", line 4, characters 29-46:
Warning: tag "package" does not expect a parameter, but is used with parameter "cmdliner"
File "_tags", line 4, characters 29-46:
Warning: the tag "package(cmdliner)" is not used in any flag declaration, so it will have no effect; it may be a typo. Otherwise use `mark_tag_used` in your myocamlbuild.ml to disable this warning.
+ /usr/bin/ocamlopt.opt -c -bin-annot -I src -I test -o src/uutf.cmx src/uutf.ml
File "src/uutf.ml", line 22, characters 31-48:
Warning 3: deprecated: String.unsafe_set
File "src/uutf.ml", line 68, characters 12-25:
Warning 3: deprecated: String.create
Use Bytes.create instead.
File "src/uutf.ml", line 492, characters 18-31:
Warning 3: deprecated: String.create
Use Bytes.create instead.
File "src/uutf.ml", line 496, characters 25-38:
Warning 3: deprecated: String.create
Use Bytes.create instead.
File "src/uutf.ml", line 676, characters 18-31:
Warning 3: deprecated: String.create
Use Bytes.create instead.
File "src/uutf.ml", line 679, characters 8-21:
Warning 3: deprecated: String.create
Use Bytes.create instead.
+ /usr/bin/ocamlc.opt -c -bin-annot -I test -I src -o test/utftrip.cmo test/utftrip.ml
File "test/utftrip.ml", line 42, characters 50-63:
Warning 3: deprecated: String.create
Use Bytes.create instead.
File "test/utftrip.ml", line 43, characters 19-32:
Warning 3: deprecated: String.create
Use Bytes.create instead.
File "test/utftrip.ml", line 102, characters 11-24:
Warning 3: deprecated: String.create
Use Bytes.create instead.
File "test/utftrip.ml", line 136, characters 11-24:
Warning 3: deprecated: String.create
Use Bytes.create instead.
File "test/utftrip.ml", line 161, characters 44-57:
Warning 3: deprecated: String.create
Use Bytes.create instead.
File "test/utftrip.ml", line 219, characters 54-67:
Warning 3: deprecated: String.create
Use Bytes.create instead.
File "test/utftrip.ml", line 221, characters 42-55:
Warning 3: deprecated: String.create
Use Bytes.create instead.
File "test/utftrip.ml", line 233, characters 32-45:
Warning 3: deprecated: String.create
Use Bytes.create instead.
File "test/utftrip.ml", line 260, characters 5-13:
Error: Unbound module Cmdliner
Command exited with code 2.
Compilation unsuccessful after building 12 targets (6 cached) in 00:00:00.
dbuenzli commented 9 years ago

ocamlbuild tests.otarget

This should read ocamlbuild -use-ocamlfind tests.otarget

aballier commented 9 years ago

Indeed, thanks. It works now.

dbuenzli commented 9 years ago

Thanks for the report.