D: [iurt_root_command] chroot Building target platforms: i686 Building for target i686 Installing /home/iurt/rpmbuild/SRPMS/@2394154:ocaml-expat-1.3.0-2.mga11.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.Jih1l9 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.LHLewC + umask 022 + cd /home/iurt/rpmbuild/BUILD/ocaml-expat-1.3.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD/ocaml-expat-1.3.0-build + rm -rf ocaml-expat-1.3.0 + /usr/lib/rpm/rpmuncompress -x /home/iurt/rpmbuild/SOURCES/ocaml-expat-1.3.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ocaml-expat-1.3.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -e s/oUnit/ounit2/g -e 's|-O2 -I\$(EXPAT_INCDIR)|-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -fomit-frame-pointer -m32 -march=i686 -msse2 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full|' -e 's/\$(OCAMLMKLIB)/& -g/' -i Makefile + rm doc/README + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.699E4y + umask 022 + cd /home/iurt/rpmbuild/BUILD/ocaml-expat-1.3.0-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -fomit-frame-pointer -m32 -march=i686 -msse2 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -fomit-frame-pointer -m32 -march=i686 -msse2 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -fomit-frame-pointer -m32 -march=i686 -msse2 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -fomit-frame-pointer -m32 -march=i686 -msse2 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd ocaml-expat-1.3.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + make depend gcc -I /usr/lib/ocaml -MM *.c > depend ocamlfind ocamldep -package bytes *.mli *.ml >> depend make: 'depend' is up to date. + make -j1 all ocamlfind ocamlc -package bytes -c -ccopt "-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -fomit-frame-pointer -m32 -march=i686 -msse2 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pthread" expat_stubs.c In file included from expat_stubs.c:23: expat_stubs.c: In function 'String_option_val': /usr/lib/ocaml/caml/mlvalues.h:366:24: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 366 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ expat_stubs.c:78:16: note: in expansion of macro 'String_val' 78 | return String_val(Field(string_option, 0)); | ^~~~~~~~~~ expat_stubs.c: At top level: expat_stubs.c:117:5: error: initialization of 'intnat (*)(value)' {aka 'int (*)(int)'} from incompatible pointer type 'long int (*)(value)' {aka 'long int (*)(int)'} [-Wincompatible-pointer-types] 117 | xml_parser_hash, | ^~~~~~~~~~~~~~~ expat_stubs.c:117:5: note: (near initialization for 'xml_parser_ops.hash') expat_stubs.c:108:1: note: 'xml_parser_hash' declared here 108 | xml_parser_hash(value v) | ^~~~~~~~~~~~~~~ expat_stubs.c: In function 'expat_XML_GetCurrentByteIndex': expat_stubs.c:269:5: warning: 'XML_GetCurrentByteIndex' is deprecated: please use XML_GetCurrentByteIndex64 instead [-Wdeprecated-declarations] 269 | return Val_long(XML_GetCurrentByteIndex(XML_Parser_val(parser))); | ^~~~~~ In file included from expat_stubs.c:15: /usr/include/expat.h:972:24: note: declared here 972 | XMLPARSEAPI(XML_Index) XML_GetCurrentByteIndex(XML_Parser parser); | ^~~~~~~~~~~~~~~~~~~~~~~ expat_stubs.c: In function 'expat_XML_GetCurrentByteCount': expat_stubs.c:279:5: warning: 'XML_GetCurrentByteCount' is deprecated: please use XML_GetCurrentByteCount64 instead [-Wdeprecated-declarations] 279 | return Val_long(XML_GetCurrentByteCount(XML_Parser_val(parser))); | ^~~~~~ /usr/include/expat.h:980:1: note: declared here 980 | XML_GetCurrentByteCount(XML_Parser parser); | ^~~~~~~~~~~~~~~~~~~~~~~ expat_stubs.c: In function 'expat_XML_GetCurrentColumnNumber': expat_stubs.c:289:5: warning: 'XML_GetCurrentColumnNumber' is deprecated: please use XML_GetCurrentColumnNumber64 instead [-Wdeprecated-declarations] 289 | return Val_long(XML_GetCurrentColumnNumber(XML_Parser_val(parser))); | ^~~~~~ /usr/include/expat.h:969:23: note: declared here 969 | XMLPARSEAPI(XML_Size) XML_GetCurrentColumnNumber(XML_Parser parser); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ expat_stubs.c: In function 'expat_XML_GetCurrentLineNumber': expat_stubs.c:299:5: warning: 'XML_GetCurrentLineNumber' is deprecated: please use XML_GetCurrentLineNumber64 instead [-Wdeprecated-declarations] 299 | return Val_long(XML_GetCurrentLineNumber(XML_Parser_val(parser))); | ^~~~~~ /usr/include/expat.h:966:23: note: declared here 966 | XMLPARSEAPI(XML_Size) XML_GetCurrentLineNumber(XML_Parser parser); | ^~~~~~~~~~~~~~~~~~~~~~~~ expat_stubs.c: In function 'expat_error': expat_stubs.c:350:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 350 | expat_error_exn = caml_named_value("expat_error"); | ^ expat_stubs.c: In function 'expat_XML_ParseSub': /usr/lib/ocaml/caml/mlvalues.h:366:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 366 | #define String_val(x) ((const char *) Bp_val(x)) | ^ expat_stubs.c:387:20: note: in expansion of macro 'String_val' 387 | char *string = String_val(vstring); | ^~~~~~~~~~ expat_stubs.c: In function 'character_data_handler': /usr/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 366 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ expat_stubs.c:550:12: note: in expansion of macro 'String_val' 550 | memcpy(String_val(str), data, len); | ^~~~~~~~~~ In file included from /usr/include/features.h:540, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from expat_stubs.c:12: /usr/include/bits/string_fortified.h:26:1: note: expected 'void *' but argument is of type 'const char *' 26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, | ^~~~~ expat_stubs.c: In function 'default_handler': /usr/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'memmove' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 366 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ expat_stubs.c:819:13: note: in expansion of macro 'String_val' 819 | memmove(String_val(d), data, len); | ^~~~~~~~~~ /usr/include/bits/string_fortified.h:34:1: note: expected 'void *' but argument is of type 'const char *' 34 | __NTH (memmove (void *__dest, const void *__src, size_t __len)) | ^~~~~ make: *** [Makefile:111: expat_stubs.o] Error 2 error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.699E4y (%build) RPM build errors: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.699E4y (%build) I: [iurt_root_command] ERROR: chroot