D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/ocaml-expat-1.1.0-10.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.fhwZ5t sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.11lIwA + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ocaml-expat-1.1.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/ocaml-expat-1.1.0-build + rm -rf ocaml-expat-1.1.0 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/ocaml-expat-1.1.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ocaml-expat-1.1.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/ocaml-expat-1.1.0-optflags.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.nxWW09 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ocaml-expat-1.1.0-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -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 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -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 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -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 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -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,-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/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd ocaml-expat-1.1.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -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 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -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 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -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 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -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,-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/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/make -O -j48 V=1 VERBOSE=1 depend gcc -I /usr/lib64/ocaml -MM *.c > depend ocamlfind ocamldep -package bytes *.mli *.ml >> depend make: 'depend' is up to date. + /usr/bin/make -O -j48 V=1 VERBOSE=1 all allopt ocamlfind ocamlc -package bytes -g -c expat.mli ocamlfind ocamlc -package bytes -g -c expat.ml ocamlfind ocamlopt -package bytes -g -c expat.ml ocamlfind ocamlc -package bytes -g -c -ccopt "-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pthread" expat_stubs.c expat_stubs.c: In function 'Val_option_string': expat_stubs.c:64:16: error: implicit declaration of function 'alloc'; did you mean 'valloc'? [-Wimplicit-function-declaration] 64 | some = alloc(1, 0); | ^~~~~ | valloc expat_stubs.c:65:20: error: implicit declaration of function 'copy_string'; did you mean 'caml_copy_string'? [-Wimplicit-function-declaration] 65 | some_str = copy_string(str); | ^~~~~~~~~~~ | caml_copy_string In file included from expat_stubs.c:23: expat_stubs.c: In function 'String_option_val': /usr/lib64/ocaml/caml/mlvalues.h:365:24: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #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: In function 'xml_parser_finalize': expat_stubs.c:90:5: error: implicit declaration of function 'remove_global_root'; did you mean 'caml_remove_global_root'? [-Wimplicit-function-declaration] 90 | remove_global_root(handlers); | ^~~~~~~~~~~~~~~~~~ | caml_remove_global_root expat_stubs.c: In function 'create_ocaml_expat_parser': expat_stubs.c:135:14: error: implicit declaration of function 'alloc_custom'; did you mean 'caml_alloc_custom'? [-Wimplicit-function-declaration] 135 | parser = alloc_custom(&xml_parser_ops, sizeof(XML_Parser), 1, 5000); | ^~~~~~~~~~~~ | caml_alloc_custom expat_stubs.c:144:5: error: implicit declaration of function 'register_global_root'; did you mean 'caml_register_global_root'? [-Wimplicit-function-declaration] 144 | register_global_root(handlers); | ^~~~~~~~~~~~~~~~~~~~ | caml_register_global_root expat_stubs.c:149:17: error: implicit declaration of function 'alloc_tuple'; did you mean 'caml_alloc_tuple'? [-Wimplicit-function-declaration] 149 | *handlers = alloc_tuple(NUM_HANDLERS); | ^~~~~~~~~~~ | caml_alloc_tuple In file included from expat_stubs.c:26: expat_stubs.c: In function 'expat_XML_ErrorString': expat_stubs.c:337:21: error: implicit declaration of function 'alloc_string'; did you mean 'caml_alloc_string'? [-Wimplicit-function-declaration] 337 | CAMLreturn (alloc_string(0)); | ^~~~~~~~~~~~ /usr/lib64/ocaml/caml/memory.h:433:29: note: in definition of macro 'CAMLreturnT' 433 | type caml__temp_result = (result); \ | ^~~~~~ expat_stubs.c:337:9: note: in expansion of macro 'CAMLreturn' 337 | CAMLreturn (alloc_string(0)); | ^~~~~~~~~~ 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:352:13: error: implicit declaration of function 'invalid_argument'; did you mean 'caml_invalid_argument'? [-Wimplicit-function-declaration] 352 | invalid_argument("Exception Expat_error not initialized"); | ^~~~~~~~~~~~~~~~ | caml_invalid_argument expat_stubs.c:356:5: error: implicit declaration of function 'raise_with_arg'; did you mean 'caml_raise_with_arg'? [-Wimplicit-function-declaration] 356 | raise_with_arg(*expat_error_exn, Val_long(error_code)); | ^~~~~~~~~~~~~~ | caml_raise_with_arg expat_stubs.c: In function 'expat_XML_Parse': expat_stubs.c:368:51: error: implicit declaration of function 'string_length'; did you mean 'caml_string_length'? [-Wimplicit-function-declaration] 368 | if(!XML_Parse(xml_parser, String_val(string), string_length(string), 0)) { | ^~~~~~~~~~~~~ | caml_string_length expat_stubs.c: In function 'expat_XML_ParseSub': /usr/lib64/ocaml/caml/mlvalues.h:365:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #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 'start_element_handler': expat_stubs.c:451:5: error: implicit declaration of function 'callback2' [-Wimplicit-function-declaration] 451 | callback2(Field(*handlers, EXPAT_START_ELEMENT_HANDLER), tag, list); | ^~~~~~~~~ expat_stubs.c: In function 'end_element_handler': expat_stubs.c:500:5: error: implicit declaration of function 'callback'; did you mean 'calloc'? [-Wimplicit-function-declaration] 500 | callback(Field(*handlers, EXPAT_END_ELEMENT_HANDLER), tag); | ^~~~~~~~ | calloc expat_stubs.c: In function 'character_data_handler': /usr/lib64/ocaml/caml/mlvalues.h:365:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #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:524, 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/lib64/ocaml/caml/mlvalues.h:365:24: warning: passing argument 1 of 'memmove' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #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)) | ^~~~~ expat_stubs.c: In function 'external_entity_ref_handler': expat_stubs.c:891:5: error: implicit declaration of function 'callbackN' [-Wimplicit-function-declaration] 891 | callbackN(Field(*handlers, EXPAT_EXTERNAL_ENTITY_REF_HANDLER), 4, arg); | ^~~~~~~~~ make: *** [Makefile:111: expat_stubs.o] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.nxWW09 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.nxWW09 (%build) I: [iurt_root_command] ERROR: chroot