See
<
https://ci.centos.org/job/libvirt-ocaml-build/systems=libvirt-freebsd-12/...
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-freebsd-12 (libvirt) in workspace
<
https://ci.centos.org/job/libvirt-ocaml-build/systems=libvirt-freebsd-12/...
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/jenkins17127586064095911293.sh
+ autoreconf -vfi
autoreconf-2.69: Entering directory `.'
autoreconf-2.69: configure.ac: not using Gettext
autoreconf-2.69: running: aclocal --force
autoreconf-2.69: configure.ac: tracing
autoreconf-2.69: configure.ac: not using Libtool
autoreconf-2.69: running: /usr/local/bin/autoconf-2.69 --force
autoreconf-2.69: configure.ac: not using Autoheader
autoreconf-2.69: configure.ac: not using Automake
autoreconf-2.69: Leaving directory `.'
+ ./configure '--prefix=/home/jenkins/build/libvirt'
checking for gcc... no
checking for cc... cc
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... cc -E
checking for function prototypes... yes
checking whether cc understands -c and -o together... yes
checking build system type... x86_64-unknown-freebsd12.1
checking host system type... x86_64-unknown-freebsd12.1
checking for perl... perl
checking for pkg-config... /usr/local/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/local/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/local/bin/gmake
for d in libvirt examples; do \
/usr/local/bin/gmake -C $d all; \
if [ $? -ne 0 ]; then exit 1; fi; \
done
gmake[1]: Entering directory
'/usr<https://ci.centos.org/job/libvirt-ocaml-build/systems=libvirt-freebsd-12/ws/libvirt'>
rm -f .depend
ocamlfind ocamldep -package unix libvirt.mli libvirt_version.mli libvirt.ml
libvirt_version.ml > .depend
perl -w generator.pl
cc -g -O2 -DCAML_NAME_SPACE -I.. -I"/usr/local/lib/ocaml" -g -Wall -Werror -fPIC
-c -o libvirt_c_oneoffs.o libvirt_c_oneoffs.c
generator.pl: written libvirt_generated.c
cc -g -O2 -DCAML_NAME_SPACE -I.. -I"/usr/local/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/local/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.ml
ocamlfind ocamlc -g -warn-error CDEFLMPSUVYZX-3 -safe-string -package unix -c
libvirt_version.ml
libvirt_c_oneoffs.c:397:17: error: implicit declaration of function 'Bytes_val' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
memcpy (Bytes_val (v), cred->result, cred->resultlen);
^
libvirt_c_oneoffs.c:397:17: error: incompatible integer to pointer conversion passing
'int' to parameter of type 'void *' [-Werror,-Wint-conversion]
memcpy (Bytes_val (v), cred->result, cred->resultlen);
^~~~~~~~~~~~~
/usr/include/string.h:64:31: note: passing argument to parameter here
void *memcpy(void * __restrict, const void * __restrict, size_t);
^
libvirt_c_oneoffs.c:718:11: error: implicit declaration of function 'Bytes_val' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
memcpy (Bytes_val (strv), cpumaps, maxinfo * maplen);
^
libvirt_c_oneoffs.c:718:11: error: incompatible integer to pointer conversion passing
'int' to parameter of type 'void *' [-Werror,-Wint-conversion]
memcpy (Bytes_val (strv), cpumaps, maxinfo * maplen);
^~~~~~~~~~~~~~~~
/usr/include/string.h:64:31: note: passing argument to parameter here
void *memcpy(void * __restrict, const void * __restrict, size_t);
^
libvirt_c_oneoffs.c:903:13: error: implicit declaration of function 'Bytes_val' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
memcpy (Bytes_val (v), uuid, VIR_UUID_BUFLEN);
^
libvirt_c_oneoffs.c:903:13: error: incompatible integer to pointer conversion passing
'int' to parameter of type 'void *' [-Werror,-Wint-conversion]
memcpy (Bytes_val (v), uuid, VIR_UUID_BUFLEN);
^~~~~~~~~~~~~
/usr/include/string.h:64:31: note: passing argument to parameter here
void *memcpy(void * __restrict, const void * __restrict, size_t);
^
libvirt_c_oneoffs.c:1060:27: error: implicit declaration of function 'Bytes_val'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
unsigned char *buffer = Bytes_val (bufferv);
^
libvirt_c_oneoffs.c:1060:18: error: incompatible integer to pointer conversion
initializing 'unsigned char *' with an expression of type 'int'
[-Werror,-Wint-conversion]
unsigned char *buffer = Bytes_val (bufferv);
^ ~~~~~~~~~~~~~~~~~~~
libvirt_c_oneoffs.c:1092:27: error: implicit declaration of function 'Bytes_val'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
unsigned char *buffer = Bytes_val (bufferv);
^
libvirt_c_oneoffs.c:1092:18: error: incompatible integer to pointer conversion
initializing 'unsigned char *' with an expression of type 'int'
[-Werror,-Wint-conversion]
unsigned char *buffer = Bytes_val (bufferv);
^ ~~~~~~~~~~~~~~~~~~~
libvirt_c_oneoffs.c:1649:11: error: implicit declaration of function 'Bytes_val'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
memcpy (Bytes_val (rv), secval, size);
^
libvirt_c_oneoffs.c:1649:11: error: incompatible integer to pointer conversion passing
'int' to parameter of type 'void *' [-Werror,-Wint-conversion]
memcpy (Bytes_val (rv), secval, size);
^~~~~~~~~~~~~~
/usr/include/string.h:64:31: note: passing argument to parameter here
void *memcpy(void * __restrict, const void * __restrict, size_t);
^
12 errors generated.
gmake[1]: *** [<builtin>: libvirt_c_oneoffs.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
libvirt_generated.c:836:11: error: implicit declaration of function 'Bytes_val' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
memcpy (Bytes_val (rv), uuid, VIR_UUID_BUFLEN);
^
libvirt_generated.c:836:11: error: incompatible integer to pointer conversion passing
'int' to parameter of type 'void *' [-Werror,-Wint-conversion]
memcpy (Bytes_val (rv), uuid, VIR_UUID_BUFLEN);
^~~~~~~~~~~~~~
/usr/include/string.h:64:31: note: passing argument to parameter here
void *memcpy(void * __restrict, const void * __restrict, size_t);
^
libvirt_generated.c:1332:11: error: implicit declaration of function 'Bytes_val'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
memcpy (Bytes_val (rv), uuid, VIR_UUID_BUFLEN);
^
libvirt_generated.c:1332:11: error: incompatible integer to pointer conversion passing
'int' to parameter of type 'void *' [-Werror,-Wint-conversion]
memcpy (Bytes_val (rv), uuid, VIR_UUID_BUFLEN);
^~~~~~~~~~~~~~
/usr/include/string.h:64:31: note: passing argument to parameter here
void *memcpy(void * __restrict, const void * __restrict, size_t);
^
libvirt_generated.c:1643:11: error: implicit declaration of function 'Bytes_val'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
memcpy (Bytes_val (rv), uuid, VIR_UUID_BUFLEN);
^
libvirt_generated.c:1643:11: error: incompatible integer to pointer conversion passing
'int' to parameter of type 'void *' [-Werror,-Wint-conversion]
memcpy (Bytes_val (rv), uuid, VIR_UUID_BUFLEN);
^~~~~~~~~~~~~~
/usr/include/string.h:64:31: note: passing argument to parameter here
void *memcpy(void * __restrict, const void * __restrict, size_t);
^
libvirt_generated.c:2261:11: error: implicit declaration of function 'Bytes_val'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
memcpy (Bytes_val (rv), uuid, VIR_UUID_BUFLEN);
^
libvirt_generated.c:2261:11: error: incompatible integer to pointer conversion passing
'int' to parameter of type 'void *' [-Werror,-Wint-conversion]
memcpy (Bytes_val (rv), uuid, VIR_UUID_BUFLEN);
^~~~~~~~~~~~~~
/usr/include/string.h:64:31: note: passing argument to parameter here
void *memcpy(void * __restrict, const void * __restrict, size_t);
^
8 errors generated.
gmake[1]: *** [<builtin>: libvirt_generated.o] Error 1
gmake[1]: Leaving directory
'/usr<https://ci.centos.org/job/libvirt-ocaml-build/systems=libvirt-freebsd-12/ws/libvirt'>
gmake: *** [Makefile:29: all] Error 1
Build step 'Execute shell' marked build as failure