See
<
https://ci.centos.org/job/libvirt-ocaml-build/systems=libvirt-debian-10/8...
Changes:
[rjones] block_peek, memory_peek: Use bytes for return buffer.
[rjones] String_val returns const char * in OCaml 4.10.
[rjones] Don't try to memcpy into a String_val.
------------------------------------------
Started by upstream project "libvirt-ocaml-build" build number 850
originally caused by:
Started by an SCM change
Started by upstream project "libvirt-build" build number 1126
originally caused by:
Started by an SCM change
Started by an SCM change
Started by an SCM change
Started by an SCM change
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on libvirt-debian-10 (libvirt) in workspace
<
https://ci.centos.org/job/libvirt-ocaml-build/systems=libvirt-debian-10/w...
No credentials specified
git rev-parse --is-inside-work-tree # timeout=10
Fetching
changes from the remote Git repository
Fetching upstream changes
from
https://github.com/libvirt/libvirt-ocaml.git
git --version # timeout=10
git fetch --tags --force --progress
https://github.com/libvirt/libvirt-ocaml.git
+refs/heads/*:refs/remotes/origin/*
Checking out Revision
2e48637933eaa9e6e2644282031371199595a842 (refs/remotes/origin/master)
git config core.sparsecheckout # timeout=10
git checkout -f 2e48637933eaa9e6e2644282031371199595a842
Commit message:
"Don't try to memcpy into a String_val."
git rev-list --no-walk c4776d501309eb209211cdd46536bfe224267740 #
timeout=10
Cleaning workspace
git rev-parse --verify HEAD # timeout=10
Resetting working
tree
git reset --hard # timeout=10
git clean -fdx # timeout=10
[libvirt-ocaml] $ /bin/sh -xe
/tmp/jenkins7927508885057315094.sh
+ autoreconf -vfi
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: configure.ac: not using Autoheader
autoreconf: configure.ac: not using Automake
autoreconf: Leaving directory `.'
+ ./configure --prefix=/home/jenkins/build/libvirt
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for function prototypes... yes
checking whether gcc and cc understand -c and -o together... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for perl... perl
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBVIRT... yes
checking for ocamlc... ocamlc
OCaml version is 4.05.0
OCaml library path is /usr/lib/ocaml
checking for ocamlopt... ocamlopt
checking for ocamlc.opt... ocamlc.opt
checking for ocamlopt.opt... ocamlopt.opt
checking for ocamldep... ocamldep
checking for ocamlmktop... ocamlmktop
checking for ocamlmklib... ocamlmklib
checking for ocamldoc... ocamldoc
checking for ocamlbuild... no
checking for ocamlfind... ocamlfind
checking for OCaml findlib package unix... found
------------------------------------------------------------
Thanks for downloading ocaml-libvirt 0.6.1.5
------------------------------------------------------------
configure: creating ./config.status
config.status: creating META
config.status: creating libvirt/libvirt_version.ml
config.status: creating Makefile
config.status: creating Make.rules
config.status: creating libvirt/Makefile
config.status: creating examples/Makefile
+ /usr/bin/make
for d in libvirt examples; do \
/usr/bin/make -C $d all; \
if [ $? -ne 0 ]; then exit 1; fi; \
done
make[1]: Entering directory
'<https://ci.centos.org/job/libvirt-ocaml-build/systems=libvirt-debian-10/ws/libvirt'>
rm -f .depend
ocamlfind ocamldep -package unix libvirt_version.mli libvirt.mli libvirt_version.ml
libvirt.ml > .depend
perl -w generator.pl
generator.pl: written libvirt_generated.c
cc -g -O2 -DCAML_NAME_SPACE -I.. -I"/usr/lib/ocaml" -g -Wall -Werror -fPIC -c
-o libvirt_c_oneoffs.o libvirt_c_oneoffs.c
cc -g -O2 -DCAML_NAME_SPACE -I.. -I"/usr/lib/ocaml" -g -Wall -Werror -fPIC -c
-o libvirt_c_common.o libvirt_c_common.c
ocamlfind ocamlc -g -warn-error CDEFLMPSUVYZX-3 -safe-string -package unix -c libvirt.mli
ocamlfind ocamlc -g -warn-error CDEFLMPSUVYZX-3 -safe-string -package unix -c
libvirt_version.mli
cc -g -O2 -DCAML_NAME_SPACE -I.. -I"/usr/lib/ocaml" -g -Wall -Werror -fPIC -c
-o libvirt_generated.o libvirt_generated.c
ocamlfind ocamlc -g -warn-error CDEFLMPSUVYZX-3 -safe-string -package unix -c
libvirt_version.ml
ocamlfind ocamlc -g -warn-error CDEFLMPSUVYZX-3 -safe-string -package unix -c libvirt.ml
libvirt_generated.c: In function ‘ocaml_libvirt_domain_get_uuid’:
libvirt_generated.c:836:11: error: implicit declaration of function ‘Bytes_val’; did you
mean ‘Bp_val’? [-Werror=implicit-function-declaration]
memcpy (Bytes_val (rv), uuid, VIR_UUID_BUFLEN);
^~~~~~~~~
Bp_val
libvirt_generated.c:836:11: error: passing argument 1 of ‘memcpy’ makes pointer from
integer without a cast [-Werror=int-conversion]
memcpy (Bytes_val (rv), uuid, VIR_UUID_BUFLEN);
^~~~~~~~~~~~~~
In file included from libvirt_c.h:26,
from libvirt_generated.c:28:
/usr/include/string.h:42:14: note: expected ‘void * restrict’ but argument is of type
‘int’
extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
^~~~~~
libvirt_generated.c: In function ‘ocaml_libvirt_network_get_uuid’:
libvirt_generated.c:1332:11: error: passing argument 1 of ‘memcpy’ makes pointer from
integer without a cast [-Werror=int-conversion]
memcpy (Bytes_val (rv), uuid, VIR_UUID_BUFLEN);
^~~~~~~~~~~~~~
In file included from libvirt_c.h:26,
from libvirt_generated.c:28:
/usr/include/string.h:42:14: note: expected ‘void * restrict’ but argument is of type
‘int’
extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
^~~~~~
libvirt_generated.c: In function ‘ocaml_libvirt_storage_pool_get_uuid’:
libvirt_generated.c:1643:11: error: passing argument 1 of ‘memcpy’ makes pointer from
integer without a cast [-Werror=int-conversion]
memcpy (Bytes_val (rv), uuid, VIR_UUID_BUFLEN);
^~~~~~~~~~~~~~
In file included from libvirt_c.h:26,
from libvirt_generated.c:28:
/usr/include/string.h:42:14: note: expected ‘void * restrict’ but argument is of type
‘int’
extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
^~~~~~
libvirt_generated.c: In function ‘ocaml_libvirt_secret_get_uuid’:
libvirt_generated.c:2261:11: error: passing argument 1 of ‘memcpy’ makes pointer from
integer without a cast [-Werror=int-conversion]
memcpy (Bytes_val (rv), uuid, VIR_UUID_BUFLEN);
^~~~~~~~~~~~~~
In file included from libvirt_c.h:26,
from libvirt_generated.c:28:
/usr/include/string.h:42:14: note: expected ‘void * restrict’ but argument is of type
‘int’
extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
^~~~~~
cc1: all warnings being treated as errors
make[1]: *** [<builtin>: libvirt_generated.o] Error 1
make[1]: *** Waiting for unfinished jobs....
libvirt_c_oneoffs.c: In function ‘ocaml_libvirt_connect_call_auth_default_callback’:
libvirt_c_oneoffs.c:397:17: error: implicit declaration of function ‘Bytes_val’; did you
mean ‘Bp_val’? [-Werror=implicit-function-declaration]
memcpy (Bytes_val (v), cred->result, cred->resultlen);
^~~~~~~~~
Bp_val
libvirt_c_oneoffs.c:397:17: error: passing argument 1 of ‘memcpy’ makes pointer from
integer without a cast [-Werror=int-conversion]
memcpy (Bytes_val (v), cred->result, cred->resultlen);
^~~~~~~~~~~~~
In file included from libvirt_c.h:26,
from libvirt_c_oneoffs.c:22:
/usr/include/string.h:42:14: note: expected ‘void * restrict’ but argument is of type
‘int’
extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
^~~~~~
libvirt_c_oneoffs.c: In function ‘ocaml_libvirt_domain_get_vcpus’:
libvirt_c_oneoffs.c:718:11: error: passing argument 1 of ‘memcpy’ makes pointer from
integer without a cast [-Werror=int-conversion]
memcpy (Bytes_val (strv), cpumaps, maxinfo * maplen);
^~~~~~~~~~~~~~~~
In file included from libvirt_c.h:26,
from libvirt_c_oneoffs.c:22:
/usr/include/string.h:42:14: note: expected ‘void * restrict’ but argument is of type
‘int’
extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
^~~~~~
libvirt_c_oneoffs.c: In function ‘ocaml_libvirt_domain_get_all_domain_stats’:
libvirt_c_oneoffs.c:903:13: error: passing argument 1 of ‘memcpy’ makes pointer from
integer without a cast [-Werror=int-conversion]
memcpy (Bytes_val (v), uuid, VIR_UUID_BUFLEN);
^~~~~~~~~~~~~
In file included from libvirt_c.h:26,
from libvirt_c_oneoffs.c:22:
/usr/include/string.h:42:14: note: expected ‘void * restrict’ but argument is of type
‘int’
extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
^~~~~~
libvirt_c_oneoffs.c: In function ‘ocaml_libvirt_domain_block_peek_native’:
libvirt_c_oneoffs.c:1060:27: error: initialization of ‘unsigned char *’ from ‘int’ makes
pointer from integer without a cast [-Werror=int-conversion]
unsigned char *buffer = Bytes_val (bufferv);
^~~~~~~~~
libvirt_c_oneoffs.c: In function ‘ocaml_libvirt_domain_memory_peek_native’:
libvirt_c_oneoffs.c:1092:27: error: initialization of ‘unsigned char *’ from ‘int’ makes
pointer from integer without a cast [-Werror=int-conversion]
unsigned char *buffer = Bytes_val (bufferv);
^~~~~~~~~
libvirt_c_oneoffs.c: In function ‘ocaml_libvirt_secret_get_value’:
libvirt_c_oneoffs.c:1649:11: error: passing argument 1 of ‘memcpy’ makes pointer from
integer without a cast [-Werror=int-conversion]
memcpy (Bytes_val (rv), secval, size);
^~~~~~~~~~~~~~
In file included from libvirt_c.h:26,
from libvirt_c_oneoffs.c:22:
/usr/include/string.h:42:14: note: expected ‘void * restrict’ but argument is of type
‘int’
extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
^~~~~~
cc1: all warnings being treated as errors
make[1]: *** [<builtin>: libvirt_c_oneoffs.o] Error 1
make[1]: Leaving directory
'<https://ci.centos.org/job/libvirt-ocaml-build/systems=libvirt-debian-10/ws/libvirt'>
make: *** [Makefile:29: all] Error 1
Build step 'Execute shell' marked build as failure