Build failed in Jenkins: libvirt-ocaml-build » libvirt-fedora-rawhide #849

See <https://ci.centos.org/job/libvirt-ocaml-build/systems=libvirt-fedora-rawhide/849/display/redirect> ------------------------------------------ [...truncated 11.09 KB...] | ^~~~~~~~~~ libvirt_c_oneoffs.c: In function ‘ocaml_libvirt_secret_get_value’: /usr/lib64/ocaml/caml/mlvalues.h:265:24: error: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ libvirt_c_oneoffs.c:1649:11: note: in expansion of macro ‘String_val’ 1649 | memcpy (String_val (rv), secval, size); | ^~~~~~~~~~ In file included from libvirt_c.h:26, from libvirt_c_oneoffs.c:22: /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, | ~~~~~~~~~~~~~~~~~^~~~~~ cc1: all warnings being treated as errors gmake[1]: *** [<builtin>: libvirt_c_oneoffs.o] Error 1 gmake[1]: *** Waiting for unfinished jobs.... In file included from /usr/lib64/ocaml/caml/alloc.h:24, from libvirt_c.h:32, from libvirt_generated.c:28: libvirt_generated.c: In function ‘ocaml_libvirt_domain_create_linux’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:591:15: note: in expansion of macro ‘String_val’ 591 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_domain_create_xml’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:613:15: note: in expansion of macro ‘String_val’ 613 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_domain_lookup_by_name’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:678:15: note: in expansion of macro ‘String_val’ 678 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_domain_lookup_by_uuid_string’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:744:15: note: in expansion of macro ‘String_val’ 744 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_domain_get_uuid’: /usr/lib64/ocaml/caml/mlvalues.h:265:24: error: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ libvirt_generated.c:836:11: note: in expansion of macro ‘String_val’ 836 | memcpy (String_val (rv), uuid, VIR_UUID_BUFLEN); | ^~~~~~~~~~ In file included from libvirt_c.h:26, from libvirt_generated.c:28: /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, | ~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/lib64/ocaml/caml/alloc.h:24, from libvirt_c.h:32, from libvirt_generated.c:28: libvirt_generated.c: In function ‘ocaml_libvirt_domain_save’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:889:15: note: in expansion of macro ‘String_val’ 889 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_domain_restore’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:908:15: note: in expansion of macro ‘String_val’ 908 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_domain_core_dump’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:928:15: note: in expansion of macro ‘String_val’ 928 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_domain_define_xml’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:1020:15: note: in expansion of macro ‘String_val’ 1020 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_domain_attach_device’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:1077:15: note: in expansion of macro ‘String_val’ 1077 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_domain_detach_device’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:1096:15: note: in expansion of macro ‘String_val’ 1096 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_network_lookup_by_name’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:1196:15: note: in expansion of macro ‘String_val’ 1196 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_network_lookup_by_uuid_string’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:1240:15: note: in expansion of macro ‘String_val’ 1240 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_network_get_uuid’: /usr/lib64/ocaml/caml/mlvalues.h:265:24: error: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ libvirt_generated.c:1332:11: note: in expansion of macro ‘String_val’ 1332 | memcpy (String_val (rv), uuid, VIR_UUID_BUFLEN); | ^~~~~~~~~~ In file included from libvirt_c.h:26, from libvirt_generated.c:28: /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, | ~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/lib64/ocaml/caml/alloc.h:24, from libvirt_c.h:32, from libvirt_generated.c:28: libvirt_generated.c: In function ‘ocaml_libvirt_network_create_xml’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:1386:15: note: in expansion of macro ‘String_val’ 1386 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_network_define_xml’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:1408:15: note: in expansion of macro ‘String_val’ 1408 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_storage_pool_lookup_by_name’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:1528:15: note: in expansion of macro ‘String_val’ 1528 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_storage_pool_lookup_by_uuid_string’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:1572:15: note: in expansion of macro ‘String_val’ 1572 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_storage_pool_get_uuid’: /usr/lib64/ocaml/caml/mlvalues.h:265:24: error: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ libvirt_generated.c:1643:11: note: in expansion of macro ‘String_val’ 1643 | memcpy (String_val (rv), uuid, VIR_UUID_BUFLEN); | ^~~~~~~~~~ In file included from libvirt_c.h:26, from libvirt_generated.c:28: /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, | ~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/lib64/ocaml/caml/alloc.h:24, from libvirt_c.h:32, from libvirt_generated.c:28: libvirt_generated.c: In function ‘ocaml_libvirt_storage_pool_create_xml’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:1679:15: note: in expansion of macro ‘String_val’ 1679 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_storage_pool_define_xml’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:1701:15: note: in expansion of macro ‘String_val’ 1701 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_storage_vol_lookup_by_name’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:1954:15: note: in expansion of macro ‘String_val’ 1954 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_storage_vol_lookup_by_key’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:1977:15: note: in expansion of macro ‘String_val’ 1977 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_storage_vol_lookup_by_path’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:1999:15: note: in expansion of macro ‘String_val’ 1999 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_storage_vol_create_xml’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:2021:15: note: in expansion of macro ‘String_val’ 2021 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_secret_lookup_by_uuid_string’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:2209:15: note: in expansion of macro ‘String_val’ 2209 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_secret_define_xml’: /usr/lib64/ocaml/caml/mlvalues.h:265:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_generated.c:2231:15: note: in expansion of macro ‘String_val’ 2231 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_generated.c: In function ‘ocaml_libvirt_secret_get_uuid’: /usr/lib64/ocaml/caml/mlvalues.h:265:24: error: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ libvirt_generated.c:2261:11: note: in expansion of macro ‘String_val’ 2261 | memcpy (String_val (rv), uuid, VIR_UUID_BUFLEN); | ^~~~~~~~~~ In file included from libvirt_c.h:26, from libvirt_generated.c:28: /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, | ~~~~~~~~~~~~~~~~~^~~~~~ cc1: all warnings being treated as errors gmake[1]: *** [<builtin>: libvirt_generated.o] Error 1 gmake[1]: Leaving directory '<https://ci.centos.org/job/libvirt-ocaml-build/systems=libvirt-fedora-rawhide/ws/libvirt'> gmake: *** [Makefile:29: all] Error 1 Build step 'Execute shell' marked build as failure

participants (1)
-
ci@centos.org