← Back to PR #29281

Build Log: ocaml-yescrypt.0.1.0

Status: FAILURE

Log Output

Processing: [default: loading data] [ocaml-yescrypt.0.1.0: http] [ocaml-yescrypt.0.1.0: extract] -> retrieved ocaml-yescrypt.0.1.0 (https://github.com/khalidbelk/ocaml-yescrypt/archive/refs/tags/0.1.0.tar.gz) [ocaml-yescrypt: dune build] + /home/opam/.opam/default/bin/dune "build" "-p" "ocaml-yescrypt" "-j" "255" "@install" (CWD=/home/opam/.opam/default/.opam-switch/build/ocaml-yescrypt.0.1.0) - (cd _build/default/lib && /usr/bin/gcc -fPIC -I c_lib/ -g -I /home/opam/.opam/default/lib/ocaml -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/stdlib-shims -I bindings -o yescrypt-ref.o -c c_lib/yescrypt-ref.c) - c_lib/yescrypt-ref.c:38:2: warning: #warning "This reference implementation is deliberately mostly not optimized, nor does it make any attempt not to leave sensitive data in memory. Use yescrypt-opt.c instead unless you're testing (against) the reference implementation on purpose." [-Wcpp] - 38 | #warning "This reference implementation is deliberately mostly not optimized, nor does it make any attempt not to leave sensitive data in memory. Use yescrypt-opt.c instead unless you're testing (against) the reference implementation on purpose." - | ^~~~~~~ - File "lib/dune", line 17, characters 4-18: - 17 | yescrypt_stubs ; Generated stubs (needed for linking) - ^^^^^^^^^^^^^^ - (cd _build/default/lib && /usr/bin/gcc -fPIC -I c_lib/ -g -I /home/opam/.opam/default/lib/ocaml -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/stdlib-shims -I bindings -o yescrypt_stubs.o -c yescrypt_stubs.c) - yescrypt_stubs.c: In function 'caml_yescrypt_2_yescrypt_init_shared': - yescrypt_stubs.c:41:35: error: passing argument 1 of 'yescrypt_init_shared' from incompatible pointer type [-Wincompatible-pointer-types] - 41 | int x51 = yescrypt_init_shared(x45, x46, x47, x50); - | ^~~ - | | - | struct yescrypt_region_t * - In file included from yescrypt_stubs.c:1: - c_lib/yescrypt.h:172:52: note: expected 'yescrypt_shared_t *' {aka 'yescrypt_region_t *'} but argument is of type 'struct yescrypt_region_t *' - 172 | extern int yescrypt_init_shared(yescrypt_shared_t *shared, - | ~~~~~~~~~~~~~~~~~~~^~~~~~ - yescrypt_stubs.c:41:50: error: passing argument 4 of 'yescrypt_init_shared' from incompatible pointer type [-Wincompatible-pointer-types] - 41 | int x51 = yescrypt_init_shared(x45, x46, x47, x50); - | ^~~ - | | - | struct yescrypt_params_t * - c_lib/yescrypt.h:173:67: note: expected 'const yescrypt_params_t *' but argument is of type 'struct yescrypt_params_t *' - 173 | const uint8_t *seed, size_t seedlen, const yescrypt_params_t *params); - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ - yescrypt_stubs.c: In function 'caml_yescrypt_3_yescrypt_digest_shared': - yescrypt_stubs.c:47:58: error: passing argument 1 of 'yescrypt_digest_shared' from incompatible pointer type [-Wincompatible-pointer-types] - 47 | union yescrypt_binary_t* x54 = yescrypt_digest_shared(x53); - | ^~~ - | | - | struct yescrypt_region_t * - c_lib/yescrypt.h:183:69: note: expected 'yescrypt_shared_t *' {aka 'yescrypt_region_t *'} but argument is of type 'struct yescrypt_region_t *' - 183 | extern yescrypt_binary_t *yescrypt_digest_shared(yescrypt_shared_t *shared); - | ~~~~~~~~~~~~~~~~~~~^~~~~~ - yescrypt_stubs.c:47:35: error: initialization of 'union yescrypt_binary_t *' from incompatible pointer type 'yescrypt_binary_t *' [-Wincompatible-pointer-types] - 47 | union yescrypt_binary_t* x54 = yescrypt_digest_shared(x53); - | ^~~~~~~~~~~~~~~~~~~~~~ - yescrypt_stubs.c: In function 'caml_yescrypt_4_yescrypt_free_shared': - yescrypt_stubs.c:53:35: error: passing argument 1 of 'yescrypt_free_shared' from incompatible pointer type [-Wincompatible-pointer-types] - 53 | int x57 = yescrypt_free_shared(x56); - | ^~~ - | | - | struct yescrypt_region_t * - c_lib/yescrypt.h:193:52: note: expected 'yescrypt_shared_t *' {aka 'yescrypt_region_t *'} but argument is of type 'struct yescrypt_region_t *' - 193 | extern int yescrypt_free_shared(yescrypt_shared_t *shared); - | ~~~~~~~~~~~~~~~~~~~^~~~~~ - yescrypt_stubs.c: In function 'caml_yescrypt_5_yescrypt_init_local': - yescrypt_stubs.c:59:34: error: passing argument 1 of 'yescrypt_init_local' from incompatible pointer type [-Wincompatible-pointer-types] - 59 | int x60 = yescrypt_init_local(x59); - | ^~~ - | | - | struct yescrypt_region_t * - c_lib/yescrypt.h:204:50: note: expected 'yescrypt_local_t *' {aka 'yescrypt_region_t *'} but argument is of type 'struct yescrypt_region_t *' - 204 | extern int yescrypt_init_local(yescrypt_local_t *local); - | ~~~~~~~~~~~~~~~~~~^~~~~ - yescrypt_stubs.c: In function 'caml_yescrypt_6_yescrypt_free_local': - yescrypt_stubs.c:65:34: error: passing argument 1 of 'yescrypt_free_local' from incompatible pointer type [-Wincompatible-pointer-types] - 65 | int x63 = yescrypt_free_local(x62); - | ^~~ - | | - | struct yescrypt_region_t * - c_lib/yescrypt.h:215:50: note: expected 'yescrypt_local_t *' {aka 'yescrypt_region_t *'} but argument is of type 'struct yescrypt_region_t *' - 215 | extern int yescrypt_free_local(yescrypt_local_t *local); - | ~~~~~~~~~~~~~~~~~~^~~~~ - yescrypt_stubs.c: In function 'caml_yescrypt_7_yescrypt_kdf': - yescrypt_stubs.c:81:27: error: passing argument 1 of 'yescrypt_kdf' from incompatible pointer type [-Wincompatible-pointer-types] - 81 | int x88 = yescrypt_kdf(x73, x74, x75, x76, x79, x80, x83, x84, x85); - | ^~~ - | | - | struct yescrypt_region_t * - c_lib/yescrypt.h:254:50: note: expected 'const yescrypt_shared_t *' {aka 'const yescrypt_region_t *'} but argument is of type 'struct yescrypt_region_t *' - 254 | extern int yescrypt_kdf(const yescrypt_shared_t *shared, - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ - yescrypt_stubs.c:81:32: error: passing argument 2 of 'yescrypt_kdf' from incompatible pointer type [-Wincompatible-pointer-types] - 81 | int x88 = yescrypt_kdf(x73, x74, x75, x76, x79, x80, x83, x84, x85); - | ^~~ - | | - | struct yescrypt_region_t * - c_lib/yescrypt.h:255:23: note: expected 'yescrypt_local_t *' {aka 'yescrypt_region_t *'} but argument is of type 'struct yescrypt_region_t *' - 255 | yescrypt_local_t *local, - | ~~~~~~~~~~~~~~~~~~^~~~~ - yescrypt_stubs.c:81:57: error: passing argument 7 of 'yescrypt_kdf' from incompatible pointer type [-Wincompatible-pointer-types] - 81 | int x88 = yescrypt_kdf(x73, x74, x75, x76, x79, x80, x83, x84, x85); - | ^~~ - | | - | struct yescrypt_params_t * - c_lib/yescrypt.h:258:30: note: expected 'const yescrypt_params_t *' but argument is of type 'struct yescrypt_params_t *' - 258 | const yescrypt_params_t *params, - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ - yescrypt_stubs.c: In function 'caml_yescrypt_8_yescrypt_r': - yescrypt_stubs.c:112:15: error: passing argument 1 of 'yescrypt_r' from incompatible pointer type [-Wincompatible-pointer-types] - 112 | yescrypt_r(x106, x107, x108, x109, x112, x113, x114, x115); - | ^~~~ - | | - | struct yescrypt_region_t * - c_lib/yescrypt.h:276:53: note: expected 'const yescrypt_shared_t *' {aka 'const yescrypt_region_t *'} but argument is of type 'struct yescrypt_region_t *' - 276 | extern uint8_t *yescrypt_r(const yescrypt_shared_t *shared, - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ - yescrypt_stubs.c:112:21: error: passing argument 2 of 'yescrypt_r' from incompatible pointer type [-Wincompatible-pointer-types] - 112 | yescrypt_r(x106, x107, x108, x109, x112, x113, x114, x115); - | ^~~~ - | | - | struct yescrypt_region_t * - c_lib/yescrypt.h:277:23: note: expected 'yescrypt_local_t *' {aka 'yescrypt_region_t *'} but argument is of type 'struct yescrypt_region_t *' - 277 | yescrypt_local_t *local, - | ~~~~~~~~~~~~~~~~~~^~~~~ - yescrypt_stubs.c:112:45: error: passing argument 6 of 'yescrypt_r' from incompatible pointer type [-Wincompatible-pointer-types] - 112 | yescrypt_r(x106, x107, x108, x109, x112, x113, x114, x115); - | ^~~~ - | | - | union yescrypt_binary_t * - c_lib/yescrypt.h:280:30: note: expected 'const yescrypt_binary_t *' but argument is of type 'union yescrypt_binary_t *' - 280 | const yescrypt_binary_t *key, - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~ - yescrypt_stubs.c: In function 'caml_yescrypt_10_yescrypt_reencrypt': - yescrypt_stubs.c:141:45: error: passing argument 2 of 'yescrypt_reencrypt' from incompatible pointer type [-Wincompatible-pointer-types] - 141 | uint8_t* x138 = yescrypt_reencrypt(x135, x136, x137); - | ^~~~ - | | - | union yescrypt_binary_t * - c_lib/yescrypt.h:313:30: note: expected 'const yescrypt_binary_t *' but argument is of type 'union yescrypt_binary_t *' - 313 | const yescrypt_binary_t *from_key, - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ - yescrypt_stubs.c:141:51: error: passing argument 3 of 'yescrypt_reencrypt' from incompatible pointer type [-Wincompatible-pointer-types] - 141 | uint8_t* x138 = yescrypt_reencrypt(x135, x136, x137); - | ^~~~ - | | - | union yescrypt_binary_t * - c_lib/yescrypt.h:314:30: note: expected 'const yescrypt_binary_t *' but argument is of type 'union yescrypt_binary_t *' - 314 | const yescrypt_binary_t *to_key); - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ - yescrypt_stubs.c: In function 'caml_yescrypt_11_yescrypt_encode_params_r': - yescrypt_stubs.c:153:45: error: passing argument 1 of 'yescrypt_encode_params_r' from incompatible pointer type [-Wincompatible-pointer-types] - 153 | uint8_t* x153 = yescrypt_encode_params_r(x144, x145, x146, x149, x150); - | ^~~~ - | | - | struct yescrypt_params_t * - c_lib/yescrypt.h:327:67: note: expected 'const yescrypt_params_t *' but argument is of type 'struct yescrypt_params_t *' - 327 | extern uint8_t *yescrypt_encode_params_r(const yescrypt_params_t *params, - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ - yescrypt_stubs.c: In function 'caml_yescrypt_12_yescrypt_encode_params': - yescrypt_stubs.c:162:43: error: passing argument 1 of 'yescrypt_encode_params' from incompatible pointer type [-Wincompatible-pointer-types] - 162 | uint8_t* x162 = yescrypt_encode_params(x157, x158, x159); - | ^~~~ - | | - | struct yescrypt_params_t * - c_lib/yescrypt.h:341:65: note: expected 'const yescrypt_params_t *' but argument is of type 'struct yescrypt_params_t *' - 341 | extern uint8_t *yescrypt_encode_params(const yescrypt_params_t *params, - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ [ERROR] The compilation of ocaml-yescrypt.0.1.0 failed at "dune build -p ocaml-yescrypt -j 255 @install". build failed...

Dependency Graph

Loading graph...
View raw DOT format
digraph opam { "conf-libffi.2.0.0" -> "conf-pkg-config.4"; "csexp.1.5.2" -> {"dune.3.21.0" "ocaml.5.3.0"} "ctypes.0.24.0" -> {"dune.3.21.0" "dune-configurator.3.21.0" "integers.0.7.0" "ocaml.5.3.0"} "ctypes-foreign.0.24.0" -> {"conf-libffi.2.0.0" "conf-pkg-config.4" "ctypes.0.24.0" "dune.3.21.0" "dune-configurator.3.21.0" "ocaml.5.3.0"} "dune.3.21.0" -> {"base-threads.base" "base-unix.base" "ocaml.5.3.0"} "dune-configurator.3.21.0" -> {"base-unix.base" "csexp.1.5.2" "dune.3.21.0" "ocaml.5.3.0"} "integers.0.7.0" -> {"dune.3.21.0" "ocaml.5.3.0" "stdlib-shims.0.3.0"} "ocaml.5.3.0" -> {"ocaml-base-compiler.5.3.0" "ocaml-config.3"} "ocaml-base-compiler.5.3.0" -> "ocaml-compiler.5.3.0"; "ocaml-config.3" -> "ocaml-base-compiler.5.3.0"; "ocaml-yescrypt.0.1.0" -> {"ctypes.0.24.0" "ctypes-foreign.0.24.0" "dune.3.21.0" "ocaml.5.3.0"} "stdlib-shims.0.3.0" -> {"dune.3.21.0" "ocaml.5.3.0"} }