opam-repository
opam-repository copied to clipboard
mysql8.1.0 fails to build on opam-ci debian-12-ocaml-5.1/amd64
CI log (links-mysql.0.9.8 (failed: mysql8.1.0 failed to build) for PR #24832):
#=== ERROR while compiling mysql8.1.0 =========================================#
# context 2.2.0~alpha3 | linux/x86_64 | ocaml-base-compiler.5.1.0 | file:///home/opam/opam-repository
# path ~/.opam/5.1/.opam-switch/build/mysql8.1.0
# command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p mysql8 -j 71
# exit-code 1
# env-file ~/.opam/log/mysql8-7-53ded2.env
# output-file ~/.opam/log/mysql8-7-53ded2.out
### output ###
# File "lib/dune", line 4, characters 10-22:
# 4 | (c_names mysql8_stubs)
# ^^^^^^^^^^^^
# (cd _build/default/lib && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -D_FILE_OFFSET_BITS=64 -I/usr/include/mariadb/ -g -I /home/opam/.opam/5.1/lib/ocaml -I /home/opam/.opam/5.1/lib/base -I /home/opam/.opam/5.1/lib/base/base_internalhash_types -I /home/opam/.opam/5.1/lib/base/caml -I /home/opam/.opam/5.1/lib/base/shadow_stdlib -I /home/opam/.opam/5.1/lib/jane-street-headers -I /home/opam/.opam/5.1/lib/ppx_compare/runtime-lib -I /home/opam/.opam/5.1/lib/ppx_enumerate/runtime-lib -I /home/opam/.opam/5.1/lib/ppx_hash/runtime-lib -I /home/opam/.opam/5.1/lib/ppx_inline_test/config -I /home/opam/.opam/5.1/lib/ppx_inline_test/runtime-lib -I /home/opam/.opam/5.1/lib/ppx_sexp_conv/runtime-lib -I /home/opam/.opam/5.1/lib/sexplib0 -I /home/opam/.opam/5.1/lib/time_now -o mysql8_stubs.o -c mysql8_stubs.c)
# In file included from mysql8_stubs.c:11:
# mysql8_stubs.c: In function 'val_str_option':
# /home/opam/.opam/5.1/lib/ocaml/caml/mlvalues.h:329:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
# 329 | #define String_val(x) ((const char *) Bp_val(x))
# | ~^~~~~~~~~~~~~~~~~~~~~~~~~
# mysql8_stubs.c:153:12: note: in expansion of macro 'String_val'
# 153 | memcpy(String_val(v), s, length);
# | ^~~~~~~~~~
# In file included from mysql8_stubs.c:6:
# /usr/include/string.h:43:39: note: expected 'void * restrict' but argument is of type 'const char *'
# 43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
# | ~~~~~~~~~~~~~~~~~^~~~~~
# mysql8_stubs.c: In function 'db_connect':
# mysql8_stubs.c:221:3: error: unknown type name 'bool'
# 221 | bool option_bool;
# | ^~~~
# mysql8_stubs.c:39:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
# 38 | #include <mysql.h>
# +++ |+#include <stdbool.h>
# 39 | #endif
# mysql8_stubs.c:192:32: error: 'MYSQL_OPT_SSL_MODE' undeclared (first use in this function); did you mean 'MYSQL_OPT_SSL_CRL'?
# 192 | if (0 != mysql_options(init, MYSQL_##option, p)) \
# | ^~~~~~
# mysql8_stubs.c:200:3: note: in expansion of macro 'SET_OPTION'
# 200 | SET_OPTION(option, &option_int)
# | ^~~~~~~~~~
# mysql8_stubs.c:243:11: note: in expansion of macro 'SET_OPTION_INT'
# 243 | SET_OPTION_INT(OPT_SSL_MODE);
# | ^~~~~~~~~~~~~~
# mysql8_stubs.c:192:32: note: each undeclared identifier is reported only once for each function it appears in
# 192 | if (0 != mysql_options(init, MYSQL_##option, p)) \
# | ^~~~~~
# mysql8_stubs.c:200:3: note: in expansion of macro 'SET_OPTION'
# 200 | SET_OPTION(option, &option_int)
# | ^~~~~~~~~~
# mysql8_stubs.c:243:11: note: in expansion of macro 'SET_OPTION_INT'
# 243 | SET_OPTION_INT(OPT_SSL_MODE);
# | ^~~~~~~~~~~~~~
# mysql8_stubs.c: In function 'db_change_user':
# mysql8_stubs.c:331:3: error: unknown type name 'bool'
# 331 | bool ret;
# | ^~~~
# mysql8_stubs.c:331:3: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
# mysql8_stubs.c: In function 'db_select_db':
# mysql8_stubs.c:398:3: error: unknown type name 'bool'
# 398 | bool ret;
# | ^~~~
# mysql8_stubs.c:398:3: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
# mysql8_stubs.c: In function 'db_escape':
# mysql8_stubs.c:611:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
# 611 | s = String_val(str);
# | ^
# /home/opam/.opam/5.1/lib/ocaml/caml/mlvalues.h:329:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
# 329 | #define String_val(x) ((const char *) Bp_val(x))
# | ~^~~~~~~~~~~~~~~~~~~~~~~~~
# mysql8_stubs.c:617:10: note: in expansion of macro 'String_val'
# 617 | memcpy(String_val(res), buf, esclen);
# | ^~~~~~~~~~
# /usr/include/string.h:43:39: note: expected 'void * restrict' but argument is of type 'const char *'
# 43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
# | ~~~~~~~~~~~~~~~~~^~~~~~
# mysql8_stubs.c: In function 'db_real_escape':
# mysql8_stubs.c:635:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
# 635 | s = String_val(str);
# | ^
# /home/opam/.opam/5.1/lib/ocaml/caml/mlvalues.h:329:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
# 329 | #define String_val(x) ((const char *) Bp_val(x))
# | ~^~~~~~~~~~~~~~~~~~~~~~~~~
# mysql8_stubs.c:645:10: note: in expansion of macro 'String_val'
# 645 | memcpy(String_val(res), buf, esclen);
# | ^~~~~~~~~~
# /usr/include/string.h:43:39: note: expected 'void * restrict' but argument is of type 'const char *'
# 43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
# | ~~~~~~~~~~~~~~~~~^~~~~~
# mysql8_stubs.c: At top level:
# mysql8_stubs.c:1011:3: error: unknown type name 'bool'
# 1011 | bool *error;
# | ^~~~
# mysql8_stubs.c:1012:3: error: unknown type name 'bool'
# 1012 | bool *is_null;
# | ^~~~
# mysql8_stubs.c: In function 'create_row':
# mysql8_stubs.c:1023:39: error: 'bool' undeclared (first use in this function)
# 1023 | row->error = calloc(count, sizeof(bool));
# | ^~~~
# mysql8_stubs.c:1023:39: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
# mysql8_stubs.c: In function 'bind_result':
# mysql8_stubs.c:1058:17: warning: assignment to 'my_bool *' {aka 'char *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types]
# 1058 | bind->is_null = &r->is_null[index];
# | ^
# mysql8_stubs.c:1060:15: warning: assignment to 'my_bool *' {aka 'char *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types]
# 1060 | bind->error = &r->error[index];
# | ^
# mysql8_stubs.c: In function 'get_column':
# mysql8_stubs.c:1079:18: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
# 1079 | bind->buffer = String_val(str);
# | ^
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build mysql8 1.0