Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/ocaml-libvirt.spec'], chrootPath='/var/lib/mock/dist-an23-build-235987-62798/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/ocaml-libvirt.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1679443200 Wrote: /builddir/build/SRPMS/ocaml-libvirt-0.6.1.5-1.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/ocaml-libvirt.spec'], chrootPath='/var/lib/mock/dist-an23-build-235987-62798/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/ocaml-libvirt.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1679443200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.iq9eCb + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ocaml-libvirt-0.6.1.5 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ocaml-libvirt-0.6.1.5.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ocaml-libvirt-0.6.1.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.j26Z0F + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd ocaml-libvirt-0.6.1.5 + unset MAKEFLAGS + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/anolis/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.guess ./config.guess '/usr/lib/rpm/anolis/config.guess' -> './config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/anolis/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.sub ./config.sub '/usr/lib/rpm/anolis/config.sub' -> './config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld' ']' ++ find . -name ltmain.sh ++ dirname ./configure + /usr/lib/rpm/anolis/force-as-needed-for-shared-lib-in-libtool . Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/anolis/fix-libtool-ltmain-from-overlinking ++ dirname ./configure + /usr/lib/rpm/anolis/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/anolis/fix-dlsearch-path-in-libtool . lib64 + ./configure --build=x86_64-Anolis-linux --host=x86_64-Anolis-linux --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info configure: WARNING: unrecognized options: --disable-dependency-tracking checking for x86_64-Anolis-linux-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-Anolis-linux-gnu checking host system type... x86_64-Anolis-linux-gnu checking for perl... perl checking for x86_64-Anolis-linux-pkg-config... no 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 x86_64-Anolis-linux-ocamlc... no checking for ocamlc... ocamlc OCaml version is 4.14.0 OCaml library path is /usr/lib64/ocaml checking for x86_64-Anolis-linux-ocamlopt... no checking for ocamlopt... ocamlopt checking for x86_64-Anolis-linux-ocamlc.opt... no checking for ocamlc.opt... ocamlc.opt checking for x86_64-Anolis-linux-ocamlopt.opt... no checking for ocamlopt.opt... ocamlopt.opt checking for x86_64-Anolis-linux-ocamldep... no checking for ocamldep... ocamldep checking for x86_64-Anolis-linux-ocamlmktop... no checking for ocamlmktop... ocamlmktop checking for x86_64-Anolis-linux-ocamlmklib... no checking for ocamlmklib... ocamlmklib checking for x86_64-Anolis-linux-ocamldoc... no checking for ocamldoc... ocamldoc checking for x86_64-Anolis-linux-ocamlbuild... no checking for ocamlbuild... no checking for x86_64-Anolis-linux-ocamlfind... 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 config.status: creating config.h configure: WARNING: unrecognized options: --disable-dependency-tracking + make for d in libvirt examples; do \ make -C $d all; \ if [ $? -ne 0 ]; then exit 1; fi; \ done make[1]: Entering directory '/builddir/build/BUILD/ocaml-libvirt-0.6.1.5/libvirt' rm -f .depend ocamlfind ocamldep -package unix libvirt.mli libvirt_version.mli libvirt.ml libvirt_version.ml > .depend perl -w generator.pl generator.pl: written libvirt_c.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DCAML_NAME_SPACE -I.. -I"/usr/lib64/ocaml" -g -Wall -Werror -fPIC -c -o libvirt_c.o libvirt_c.c In file included from /usr/lib64/ocaml/caml/alloc.h:24, from libvirt_c.c:38: libvirt_c_oneoffs.c: In function 'ocaml_libvirt_connect_call_auth_default_callback': /usr/lib64/ocaml/caml/mlvalues.h:290:24: error: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ libvirt_c_oneoffs.c:395:17: note: in expansion of macro 'String_val' 395 | memcpy (String_val (v), cred->result, cred->resultlen); | ^~~~~~~~~~ In file included from /usr/include/features.h:490, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from libvirt_c.c:30: /usr/include/bits/string_fortified.h:26:1: note: expected 'void * restrict' but argument is of type 'const char *' 26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, | ^~~~~ In file included from libvirt_c.c:49: libvirt_c_oneoffs.c: In function 'ocaml_libvirt_domain_set_scheduler_parameters': libvirt_c_oneoffs.c:610:10: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 610 | name = String_val (Field (v, 0)); | ^ libvirt_c_oneoffs.c: In function 'ocaml_libvirt_domain_get_vcpus': /usr/lib64/ocaml/caml/mlvalues.h:290:24: error: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ libvirt_c_oneoffs.c:716:11: note: in expansion of macro 'String_val' 716 | memcpy (String_val (strv), cpumaps, maxinfo * maplen); | ^~~~~~~~~~ /usr/include/bits/string_fortified.h:26:1: note: expected 'void * restrict' but argument is of type 'const char *' 26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, | ^~~~~ libvirt_c_oneoffs.c: In function 'ocaml_libvirt_domain_get_all_domain_stats': /usr/lib64/ocaml/caml/mlvalues.h:290:24: error: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ libvirt_c_oneoffs.c:901:13: note: in expansion of macro 'String_val' 901 | memcpy (String_val (v), uuid, VIR_UUID_BUFLEN); | ^~~~~~~~~~ /usr/include/bits/string_fortified.h:26:1: note: expected 'void * restrict' but argument is of type 'const char *' 26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, | ^~~~~ libvirt_c_oneoffs.c: In function 'ocaml_libvirt_domain_block_stats': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c_oneoffs.c:1006:16: note: in expansion of macro 'String_val' 1006 | char *path = String_val (pathv); | ^~~~~~~~~~ libvirt_c_oneoffs.c: In function 'ocaml_libvirt_domain_interface_stats': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c_oneoffs.c:1029:16: note: in expansion of macro 'String_val' 1029 | char *path = String_val (pathv); | ^~~~~~~~~~ libvirt_c_oneoffs.c: In function 'ocaml_libvirt_domain_block_peek_native': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c_oneoffs.c:1058:18: note: in expansion of macro 'String_val' 1058 | char *buffer = String_val (bufferv); | ^~~~~~~~~~ libvirt_c_oneoffs.c: In function 'ocaml_libvirt_domain_memory_peek_native': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c_oneoffs.c:1090:18: note: in expansion of macro 'String_val' 1090 | char *buffer = String_val (bufferv); | ^~~~~~~~~~ libvirt_c_oneoffs.c: In function 'i_i_callback': libvirt_c_oneoffs.c:1211:14: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 1211 | callback = caml_named_value(NAME); \ | ^ libvirt_c_oneoffs.c:1236:3: note: in expansion of macro 'DOMAIN_CALLBACK_BEGIN' 1236 | DOMAIN_CALLBACK_BEGIN("Libvirt.i_i_callback") | ^~~~~~~~~~~~~~~~~~~~~ libvirt_c_oneoffs.c: In function 'u_callback': libvirt_c_oneoffs.c:1211:14: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 1211 | callback = caml_named_value(NAME); \ | ^ libvirt_c_oneoffs.c:1248:3: note: in expansion of macro 'DOMAIN_CALLBACK_BEGIN' 1248 | DOMAIN_CALLBACK_BEGIN("Libvirt.u_callback") | ^~~~~~~~~~~~~~~~~~~~~ libvirt_c_oneoffs.c: In function 'i64_callback': libvirt_c_oneoffs.c:1211:14: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 1211 | callback = caml_named_value(NAME); \ | ^ libvirt_c_oneoffs.c:1259:3: note: in expansion of macro 'DOMAIN_CALLBACK_BEGIN' 1259 | DOMAIN_CALLBACK_BEGIN("Libvirt.i64_callback") | ^~~~~~~~~~~~~~~~~~~~~ libvirt_c_oneoffs.c: In function 'i_callback': libvirt_c_oneoffs.c:1211:14: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 1211 | callback = caml_named_value(NAME); \ | ^ libvirt_c_oneoffs.c:1270:3: note: in expansion of macro 'DOMAIN_CALLBACK_BEGIN' 1270 | DOMAIN_CALLBACK_BEGIN("Libvirt.i_callback") | ^~~~~~~~~~~~~~~~~~~~~ libvirt_c_oneoffs.c: In function 's_i_callback': libvirt_c_oneoffs.c:1211:14: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 1211 | callback = caml_named_value(NAME); \ | ^ libvirt_c_oneoffs.c:1282:3: note: in expansion of macro 'DOMAIN_CALLBACK_BEGIN' 1282 | DOMAIN_CALLBACK_BEGIN("Libvirt.s_i_callback") | ^~~~~~~~~~~~~~~~~~~~~ libvirt_c_oneoffs.c: In function 's_i_i_callback': libvirt_c_oneoffs.c:1211:14: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 1211 | callback = caml_named_value(NAME); \ | ^ libvirt_c_oneoffs.c:1298:3: note: in expansion of macro 'DOMAIN_CALLBACK_BEGIN' 1298 | DOMAIN_CALLBACK_BEGIN("Libvirt.s_i_i_callback") | ^~~~~~~~~~~~~~~~~~~~~ libvirt_c_oneoffs.c: In function 's_s_i_callback': libvirt_c_oneoffs.c:1211:14: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 1211 | callback = caml_named_value(NAME); \ | ^ libvirt_c_oneoffs.c:1315:3: note: in expansion of macro 'DOMAIN_CALLBACK_BEGIN' 1315 | DOMAIN_CALLBACK_BEGIN("Libvirt.s_s_i_callback") | ^~~~~~~~~~~~~~~~~~~~~ libvirt_c_oneoffs.c: In function 's_s_i_s_callback': libvirt_c_oneoffs.c:1211:14: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 1211 | callback = caml_named_value(NAME); \ | ^ libvirt_c_oneoffs.c:1334:3: note: in expansion of macro 'DOMAIN_CALLBACK_BEGIN' 1334 | DOMAIN_CALLBACK_BEGIN("Libvirt.s_s_i_s_callback") | ^~~~~~~~~~~~~~~~~~~~~ libvirt_c_oneoffs.c: In function 's_s_s_i_callback': libvirt_c_oneoffs.c:1211:14: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 1211 | callback = caml_named_value(NAME); \ | ^ libvirt_c_oneoffs.c:1355:3: note: in expansion of macro 'DOMAIN_CALLBACK_BEGIN' 1355 | DOMAIN_CALLBACK_BEGIN("Libvirt.s_s_s_i_callback") | ^~~~~~~~~~~~~~~~~~~~~ libvirt_c_oneoffs.c: In function 'i_ga_ga_s_gs_callback': libvirt_c_oneoffs.c:1211:14: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 1211 | callback = caml_named_value(NAME); \ | ^ libvirt_c_oneoffs.c:1418:3: note: in expansion of macro 'DOMAIN_CALLBACK_BEGIN' 1418 | DOMAIN_CALLBACK_BEGIN("Libvirt.i_ga_ga_s_gs_callback") | ^~~~~~~~~~~~~~~~~~~~~ libvirt_c_oneoffs.c: In function 'timeout_callback': libvirt_c_oneoffs.c:1437:14: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 1437 | callback = caml_named_value("Libvirt.timeout_callback"); | ^ libvirt_c_oneoffs.c: In function 'ocaml_libvirt_secret_get_value': /usr/lib64/ocaml/caml/mlvalues.h:290:24: error: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ libvirt_c_oneoffs.c:1647:11: note: in expansion of macro 'String_val' 1647 | memcpy (String_val (rv), secval, size); | ^~~~~~~~~~ /usr/include/bits/string_fortified.h:26:1: note: expected 'void * restrict' but argument is of type 'const char *' 26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, | ^~~~~ libvirt_c.c: In function 'ocaml_libvirt_domain_create_linux': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:608:15: note: in expansion of macro 'String_val' 608 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_domain_create_xml': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:630:15: note: in expansion of macro 'String_val' 630 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_domain_lookup_by_name': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:695:15: note: in expansion of macro 'String_val' 695 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_domain_lookup_by_uuid_string': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:761:15: note: in expansion of macro 'String_val' 761 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_domain_get_uuid': /usr/lib64/ocaml/caml/mlvalues.h:290:24: error: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ libvirt_c.c:853:11: note: in expansion of macro 'String_val' 853 | memcpy (String_val (rv), uuid, VIR_UUID_BUFLEN); | ^~~~~~~~~~ /usr/include/bits/string_fortified.h:26:1: note: expected 'void * restrict' but argument is of type 'const char *' 26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, | ^~~~~ libvirt_c.c: In function 'ocaml_libvirt_domain_save': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:906:15: note: in expansion of macro 'String_val' 906 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_domain_restore': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:925:15: note: in expansion of macro 'String_val' 925 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_domain_core_dump': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:945:15: note: in expansion of macro 'String_val' 945 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_domain_define_xml': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:1037:15: note: in expansion of macro 'String_val' 1037 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_domain_attach_device': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:1094:15: note: in expansion of macro 'String_val' 1094 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_domain_detach_device': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:1113:15: note: in expansion of macro 'String_val' 1113 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_network_lookup_by_name': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:1213:15: note: in expansion of macro 'String_val' 1213 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_network_lookup_by_uuid_string': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:1257:15: note: in expansion of macro 'String_val' 1257 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_network_get_uuid': /usr/lib64/ocaml/caml/mlvalues.h:290:24: error: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ libvirt_c.c:1349:11: note: in expansion of macro 'String_val' 1349 | memcpy (String_val (rv), uuid, VIR_UUID_BUFLEN); | ^~~~~~~~~~ /usr/include/bits/string_fortified.h:26:1: note: expected 'void * restrict' but argument is of type 'const char *' 26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, | ^~~~~ libvirt_c.c: In function 'ocaml_libvirt_network_create_xml': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:1403:15: note: in expansion of macro 'String_val' 1403 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_network_define_xml': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:1425:15: note: in expansion of macro 'String_val' 1425 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_storage_pool_lookup_by_name': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:1545:15: note: in expansion of macro 'String_val' 1545 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_storage_pool_lookup_by_uuid_string': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:1589:15: note: in expansion of macro 'String_val' 1589 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_storage_pool_get_uuid': /usr/lib64/ocaml/caml/mlvalues.h:290:24: error: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ libvirt_c.c:1660:11: note: in expansion of macro 'String_val' 1660 | memcpy (String_val (rv), uuid, VIR_UUID_BUFLEN); | ^~~~~~~~~~ /usr/include/bits/string_fortified.h:26:1: note: expected 'void * restrict' but argument is of type 'const char *' 26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, | ^~~~~ libvirt_c.c: In function 'ocaml_libvirt_storage_pool_create_xml': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:1696:15: note: in expansion of macro 'String_val' 1696 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_storage_pool_define_xml': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:1718:15: note: in expansion of macro 'String_val' 1718 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_storage_vol_lookup_by_name': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:1971:15: note: in expansion of macro 'String_val' 1971 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_storage_vol_lookup_by_key': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:1994:15: note: in expansion of macro 'String_val' 1994 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_storage_vol_lookup_by_path': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:2016:15: note: in expansion of macro 'String_val' 2016 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_storage_vol_create_xml': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:2038:15: note: in expansion of macro 'String_val' 2038 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_secret_lookup_by_uuid_string': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:2226:15: note: in expansion of macro 'String_val' 2226 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_secret_define_xml': /usr/lib64/ocaml/caml/mlvalues.h:290:23: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ libvirt_c.c:2248:15: note: in expansion of macro 'String_val' 2248 | char *str = String_val (strv); | ^~~~~~~~~~ libvirt_c.c: In function 'ocaml_libvirt_secret_get_uuid': /usr/lib64/ocaml/caml/mlvalues.h:290:24: error: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ libvirt_c.c:2278:11: note: in expansion of macro 'String_val' 2278 | memcpy (String_val (rv), uuid, VIR_UUID_BUFLEN); | ^~~~~~~~~~ /usr/include/bits/string_fortified.h:26:1: note: expected 'void * restrict' but argument is of type 'const char *' 26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, | ^~~~~ cc1: all warnings being treated as errors make[1]: *** [: libvirt_c.o] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/ocaml-libvirt-0.6.1.5/libvirt' make: *** [Makefile:31: all] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.j26Z0F (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.j26Z0F (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/ocaml-libvirt.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/ocaml-libvirt.spec