+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/ocaml-bz2-0.7.0/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/ocaml-bz2-0.7.0/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for ocaml-bz2-0.7.0 ocamlc.opt -ccopt "-D BZ_PREFIX -I/opt/pkg/include -I/opt/pkg/include/ncurses -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/ncurses" -c c_bz.c c_bz.c: In function 'mlbz_error': c_bz.c:49:13: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead 49 | invalid_argument(msg) ; break ; | ^~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:51:13: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead 51 | raise_out_of_memory() ; break ; | ^~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:54:13: warning: "raise_constant" is deprecated: use "caml_raise_constant" instead 54 | raise_constant(*caml_named_value("mlbz_data_exn")) ; break ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:56:13: warning: "raise_with_string" is deprecated: use "caml_raise_with_string" instead 56 | raise_with_string(*caml_named_value("mlbz_io_exn"), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:59:13: warning: "raise_constant" is deprecated: use "caml_raise_constant" instead 59 | raise_constant(*caml_named_value("mlbz_eof_exn")) ; break ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:61:13: warning: "failwith" is deprecated: use "caml_failwith" instead 61 | failwith(msg) ; | ^~~~~~~~~ c_bz.c: In function 'Val_twoptr': c_bz.c:74:13: warning: "alloc_small" is deprecated: use "caml_alloc_small" instead 74 | result= alloc_small(3, Abstract_tag); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c: In function 'mlbz_version': c_bz.c:105:13: warning: "copy_string" is deprecated: use "caml_copy_string" instead 105 | return copy_string(BZ_P(bzlibVersion())) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c: In function 'mlbz_readopen': c_bz.c:121:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 121 | c_unused = String_val(Field(unused, 0)) ; | ^ c_bz.c:122:13: warning: "string_length" is deprecated: use "caml_string_length" instead 122 | c_nunused = string_length(Field(unused, 0)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c: In function 'mlbz_read': c_bz.c:139:13: warning: "raise_end_of_file" is deprecated: use "caml_raise_end_of_file" instead 139 | raise_end_of_file() ; | ^~~~~~~~~~~~~ c_bz.c:140:13: warning: "string_length" is deprecated: use "caml_string_length" instead 140 | if((c_len + c_pos > string_length(buf)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:142:13: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead 142 | invalid_argument("Bz.read") ; | ^~~~~~~~~~~~~~~~~~~~~ c_bz.c:143:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 143 | c_buf = String_val(buf) + c_pos ; | ^ c_bz.c: In function 'mlbz_readgetunused': c_bz.c:173:13: warning: "alloc_string" is deprecated: use "caml_alloc_string" instead 173 | result = alloc_string(nunused) ; | ^~~~~~~~~~~~~~~~~~~~~~ In file included from c_bz.c:19: /opt/pkg/lib/ocaml/caml/mlvalues.h:290:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:174:10: note: in expansion of macro 'String_val' 174 | memcpy(String_val(result), unused, nunused) ; | ^~~~~~~~~~ In file included from /usr/include/string.h:34, from c_bz.c:14: /usr/include/iso/string_iso.h:70:21: note: expected 'void * restrict' but argument is of type 'const char *' 70 | extern void *memcpy(void *_RESTRICT_KYWD, const void *_RESTRICT_KYWD, size_t); | ^ c_bz.c: In function 'mlbz_write': c_bz.c:201:13: warning: "string_length" is deprecated: use "caml_string_length" instead 201 | if((c_len + c_pos > string_length(buf)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:203:13: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead 203 | invalid_argument("Bz.write") ; | ^~~~~~~~~~~~~~~~~~~~~~ c_bz.c:204:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 204 | c_buf = String_val(buf) + c_pos ; | ^ c_bz.c: In function 'mlbz_compress': c_bz.c:240:13: warning: "string_length" is deprecated: use "caml_string_length" instead 240 | || c_pos + c_len > string_length(src)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:241:13: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead 241 | invalid_argument("Bz.compress") ; | ^~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:242:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 242 | src_buf = String_val(src) + c_pos; | ^ c_bz.c:246:13: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead 246 | raise_out_of_memory(); | ^~~~~~~~~~~~~~ c_bz.c:258:13: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead 258 | raise_out_of_memory(); | ^~~~~~~~~~~ c_bz.c:263:13: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead 263 | raise_out_of_memory(); | ^~~~~~~~~~~~~~~~ c_bz.c:266:13: warning: "alloc_string" is deprecated: use "caml_alloc_string" instead 266 | result = alloc_string(dst_len); | ^~~~~~~~~~~~~~~~~~~~~ In file included from c_bz.c:19: /opt/pkg/lib/ocaml/caml/mlvalues.h:290:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:267:10: note: in expansion of macro 'String_val' 267 | memcpy(String_val(result), dst_buf, dst_len); | ^~~~~~~~~~ In file included from /usr/include/string.h:34, from c_bz.c:14: /usr/include/iso/string_iso.h:70:21: note: expected 'void * restrict' but argument is of type 'const char *' 70 | extern void *memcpy(void *_RESTRICT_KYWD, const void *_RESTRICT_KYWD, size_t); | ^ c_bz.c: In function 'mlbz_uncompress': c_bz.c:285:13: warning: "string_length" is deprecated: use "caml_string_length" instead 285 | || c_pos + c_len > string_length(src)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:286:13: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead 286 | invalid_argument("Bz.uncompress") ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:287:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 287 | src_buf = String_val(src) + c_pos; | ^ c_bz.c:291:13: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead 291 | raise_out_of_memory(); | ^~~~~~~~~~~~~~ c_bz.c:305:13: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead 305 | raise_out_of_memory(); | ^~~~~~~~~~~~~ c_bz.c:311:13: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead 311 | raise_out_of_memory() ; | ^~~~~~~~~~~~ c_bz.c:314:13: warning: "raise_constant" is deprecated: use "caml_raise_constant" instead 314 | raise_constant(*caml_named_value("mlbz_data_exn")) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:316:13: warning: "raise_constant" is deprecated: use "caml_raise_constant" instead 316 | raise_constant(*caml_named_value("mlbz_eof_exn")) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:319:13: warning: "alloc_string" is deprecated: use "caml_alloc_string" instead 319 | result = alloc_string(dst_len); | ^~~~~~~~~~~~~~~~~~~~~ In file included from c_bz.c:19: /opt/pkg/lib/ocaml/caml/mlvalues.h:290:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:320:10: note: in expansion of macro 'String_val' 320 | memcpy(String_val(result), dst_buf, dst_len); | ^~~~~~~~~~ In file included from /usr/include/string.h:34, from c_bz.c:14: /usr/include/iso/string_iso.h:70:21: note: expected 'void * restrict' but argument is of type 'const char *' 70 | extern void *memcpy(void *_RESTRICT_KYWD, const void *_RESTRICT_KYWD, size_t); | ^ ocamlmklib -oc camlbz2 c_bz.o -lbz2 ocamlc.opt -c bz2.mli File "bz2.mli", line 54, characters 46-67: 54 | val open_in : ?small:bool -> ?unused:bytes -> Pervasives.in_channel -> ^^^^^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Pervasives Use Stdlib instead. If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims File "bz2.mli", line 84, characters 29-51: 84 | val open_out : ?block:int -> Pervasives.out_channel -> out_channel ^^^^^^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Pervasives Use Stdlib instead. If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims ocamlc.opt -c bz2.ml File "bz2.ml", line 31, characters 51-72: 31 | external open_in : ?small:bool -> ?unused:bytes -> Pervasives.in_channel -> ^^^^^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Pervasives Use Stdlib instead. If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims File "bz2.ml", line 44, characters 34-56: 44 | external open_out : ?block:int -> Pervasives.out_channel -> out_channel ^^^^^^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Pervasives Use Stdlib instead. If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims ocamlmklib -oc camlbz2 -o bz2 bz2.cmo -lbz2 ocamlopt.opt -c bz2.ml File "bz2.ml", line 31, characters 51-72: 31 | external open_in : ?small:bool -> ?unused:bytes -> Pervasives.in_channel -> ^^^^^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Pervasives Use Stdlib instead. If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims File "bz2.ml", line 44, characters 34-56: 44 | external open_out : ?block:int -> Pervasives.out_channel -> out_channel ^^^^^^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Pervasives Use Stdlib instead. If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims ocamlmklib -oc camlbz2 -o bz2 bz2.cmx -lbz2