Build:
- 0
2026-07-14 17:03.19: New job: build sha.1.10 (e8230d09a921) 2026-07-14 17:03.19: Waiting for resource in pool day11-builds 2026-07-14 17:13.21: Got resource from pool day11-builds 2026-07-14 17:13.21: [profile full] build sha.1.10 2026-07-14 17:13.21: build sha.1.10 (e8230d09a921) === DEPENDENCIES (4 transitive) === ocaml.4.14.4 ff640eef2ca4 ocaml-base-compiler.4.14.4 0ab775b44d12 ocaml-config.2 3a0479a5d208 ocamlfind.1.9.8 7160dd70cf9c === STDOUT === Processing: [default: loading data] [sha.1.10: dl] [sha.1.10: extract] [sha.1.10/freebsd.patch: dl] -> retrieved sha.1.10 (https://opam.ocaml.org/cache) [sha: make] + /usr/bin/make (CWD=/home/opam/.opam/default/.opam-switch/build/sha.1.10) - ocamlc -c -o sha1.cmi sha1.mli - ocamlc -ccopt "-Wall -O3 -funroll-loops -I/usr/include" -c -o sha1.o sha1.c - mv sha1.o sha1.lib.o - ocamlc -ccopt "-Wall -O3 -funroll-loops -I/usr/include" -c -o sha1_stubs.o sha1_stubs.c - sha1_stubs.c: In function 'stub_sha1_update_bigarray': - sha1_stubs.c:76:20: warning: "Data_bigarray_val" is deprecated: use "Caml_ba_data_val" instead - 76 | unsigned char *data = Data_bigarray_val(buf); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - sha1_stubs.c:77:20: warning: "Bigarray_val" is deprecated: use "Caml_ba_array_val" instead - 77 | size_t len = Bigarray_val(buf)->dim[0]; - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ - sha1_stubs.c: In function 'stub_sha1_file': - sha1_stubs.c:110:20: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] - 110 | #define strdupa(s) strcpy(alloca(strlen(s)+1),s) - | ^~~~~~ - sha1_stubs.c:118:26: note: in expansion of macro 'strdupa' - 118 | char *name_dup = strdupa(String_val(name)); - | ^~~~~~~ - sha1_stubs.c:49:1: note: include '<string.h>' or provide a declaration of 'strcpy' - 48 | #include <caml/threads.h> - +++ |+#include <string.h> - 49 | - sha1_stubs.c:110:20: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] - 110 | #define strdupa(s) strcpy(alloca(strlen(s)+1),s) - | ^~~~~~ - sha1_stubs.c:118:26: note: in expansion of macro 'strdupa' - 118 | char *name_dup = strdupa(String_val(name)); - | ^~~~~~~ - sha1_stubs.c:110:20: note: include '<string.h>' or provide a declaration of 'strcpy' - 110 | #define strdupa(s) strcpy(alloca(strlen(s)+1),s) - | ^~~~~~ - sha1_stubs.c:118:26: note: in expansion of macro 'strdupa' - 118 | char *name_dup = strdupa(String_val(name)); - | ^~~~~~~ - In file included from /usr/include/stdlib.h:706, - from /home/opam/.opam/default/lib/ocaml/caml/misc.h:29, - from /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:23, - from sha1_stubs.c:42: - sha1_stubs.c:110:34: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] - 110 | #define strdupa(s) strcpy(alloca(strlen(s)+1),s) - | ^~~~~~ - sha1_stubs.c:118:26: note: in expansion of macro 'strdupa' - 118 | char *name_dup = strdupa(String_val(name)); - | ^~~~~~~ - sha1_stubs.c:110:34: note: include '<string.h>' or provide a declaration of 'strlen' - 110 | #define strdupa(s) strcpy(alloca(strlen(s)+1),s) - | ^~~~~~ - sha1_stubs.c:118:26: note: in expansion of macro 'strdupa' - 118 | char *name_dup = strdupa(String_val(name)); - | ^~~~~~~ - sha1_stubs.c:110:34: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] - 110 | #define strdupa(s) strcpy(alloca(strlen(s)+1),s) - | ^~~~~~ - sha1_stubs.c:118:26: note: in expansion of macro 'strdupa' - 118 | char *name_dup = strdupa(String_val(name)); - | ^~~~~~~ - sha1_stubs.c:110:34: note: include '<string.h>' or provide a declaration of 'strlen' - 110 | #define strdupa(s) strcpy(alloca(strlen(s)+1),s) - | ^~~~~~ - sha1_stubs.c:118:26: note: in expansion of macro 'strdupa' - 118 | char *name_dup = strdupa(String_val(name)); - | ^~~~~~~ - sha1_stubs.c:128:9: error: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] - 128 | memcpy((sha1_digest *)result, &digest, sizeof(sha1_digest)); - | ^~~~~~ - sha1_stubs.c:128:9: note: include '<string.h>' or provide a declaration of 'memcpy' - sha1_stubs.c:128:9: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] - sha1_stubs.c:128:9: note: include '<string.h>' or provide a declaration of 'memcpy' - sha1_stubs.c: In function 'stub_sha1_to_bin': - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:290:24: warning: passing argument 2 of 'sha1_to_bin' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 290 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - sha1_stubs.c:139:45: note: in expansion of macro 'String_val' - 139 | sha1_to_bin((sha1_digest *) digest, String_val(result)); - | ^~~~~~~~~~ - In file included from sha1_stubs.c:19: - sha1.h:31:45: note: expected 'char *' but argument is of type 'const char *' - 31 | void sha1_to_bin(sha1_digest *digest, char *out); - | ~~~~~~^~~ - sha1_stubs.c: In function 'stub_sha1_to_hex': - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:290:24: warning: passing argument 2 of 'sha1_to_hex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 290 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - sha1_stubs.c:150:45: note: in expansion of macro 'String_val' - 150 | sha1_to_hex((sha1_digest *) digest, String_val(result)); - | ^~~~~~~~~~ - sha1.h:32:45: note: expected 'char *' but argument is of type 'const char *' - 32 | void sha1_to_hex(sha1_digest *digest, char *out); - | ~~~~~~^~~ - make: *** [Makefile:94: sha1_stubs.o] Error 2 [ERROR] The compilation of sha.1.10 failed at "make". build failed... === STDERR === 2026-07-14 17:13.27: FAILED: build sha.1.10 2026-07-14 17:13.27: Job failed: build failed: sha.1.10