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-magic-0.7.3-21.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.zwDKVO sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.z7zTRF + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ocaml-magic-0.7.3-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/ocaml-magic-0.7.3-build + rm -rf ocaml-magic-0.7.3 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/ocaml-magic-0.7.3.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ocaml-magic-0.7.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + 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.1ZFXRU + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ocaml-magic-0.7.3-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-magic-0.7.3 + '[' 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 + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + /usr/lib/rpm/mageia/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/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --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 configuring ocaml-magic 0.7.3 checking for ocamlc... /usr/bin/ocamlc ocaml version is 5.3.0 ocaml library path is /usr/lib64/ocaml checking for ocamlopt... /usr/bin/ocamlopt checking ocamlopt version... ok checking for ocamlc.opt... /usr/bin/ocamlc.opt checking ocamlc.opt version... ok checking for ocamlopt.opt... /usr/bin/ocamlopt.opt checking ocamlc.opt version... ok checking for ocamldep... /usr/bin/ocamldep checking for ocamldoc... /usr/bin/ocamldoc checking for ocamlfind... /usr/bin/ocamlfind checking for x86_64-mageia-linux-gnu-gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... 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 libmagic... found checking for strerror_r... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/META config.status: creating src/Makefile config.status: creating examples/Makefile + make make -C src all make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/ocaml-magic-0.7.3-build/ocaml-magic-0.7.3/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/ocaml-magic-0.7.3-build/ocaml-magic-0.7.3/src' ocamldep magic.ml > ._d/magic.d ocamldep magic.mli > ._bcdi/magic.di ../OCamlMakefile:1094: warning: pattern recipe did not update peer target '._ncdi/magic.di'. /usr/bin/ocamlc.opt -c -cc "gcc" -ccopt "-fPIC -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 -DHAVE_STRERROR_R \ -DPIC \ -o magic_stubs.o " magic_stubs.c magic_stubs.c: In function 'raise_magic_failure': magic_stubs.c:55:24: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 55 | if (exn == NULL) exn = caml_named_value("Magic.Failure"); | ^ magic_stubs.c:56:3: error: implicit declaration of function 'raise_with_string'; did you mean 'caml_raise_with_string'? [-Wimplicit-function-declaration] 56 | raise_with_string(*exn, (char *) msg); | ^~~~~~~~~~~~~~~~~ | caml_raise_with_string magic_stubs.c: In function 'raise_on_error': magic_stubs.c:76:7: error: implicit declaration of function 'raise_out_of_memory'; did you mean 'caml_raise_out_of_memory'? [-Wimplicit-function-declaration] 76 | raise_out_of_memory(); | ^~~~~~~~~~~~~~~~~~~ | caml_raise_out_of_memory magic_stubs.c:77:26: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 77 | if (exn == NULL) exn = caml_named_value("Magic.Failure"); | ^ magic_stubs.c:80:15: error: implicit declaration of function 'copy_string'; did you mean 'caml_copy_string'? [-Wimplicit-function-declaration] 80 | verrmsg = copy_string(errmsg); | ^~~~~~~~~~~ | caml_copy_string magic_stubs.c:82:5: error: implicit declaration of function 'raise_with_arg'; did you mean 'caml_raise_with_arg'? [-Wimplicit-function-declaration] 82 | raise_with_arg(*exn, verrmsg); | ^~~~~~~~~~~~~~ | caml_raise_with_arg magic_stubs.c:106:5: error: implicit declaration of function 'raise_sys_error'; did you mean 'raise_on_error'? [-Wimplicit-function-declaration] 106 | raise_sys_error(verrmsg); | ^~~~~~~~~~~~~~~ | raise_on_error magic_stubs.c: In function 'ocaml_magic_open': magic_stubs.c:150:22: error: implicit declaration of function 'alloc_custom'; did you mean 'caml_alloc_custom'? [-Wimplicit-function-declaration] 150 | #define ALLOC_COOKIE alloc_custom(&cookie_ops, sizeof(magic_t), \ | ^~~~~~~~~~~~ magic_stubs.c:164:7: note: in expansion of macro 'ALLOC_COOKIE' 164 | c = ALLOC_COOKIE; | ^~~~~~~~~~~~ magic_stubs.c: In function 'ocaml_magic_file': magic_stubs.c:210:23: error: implicit declaration of function 'invalid_argument'; did you mean 'caml_invalid_argument'? [-Wimplicit-function-declaration] 210 | if (cookie == NULL) invalid_argument("Magic.file"); | ^~~~~~~~~~~~~~~~ | caml_invalid_argument make[2]: *** [../OCamlMakefile:1064: magic_stubs.o] Error 2 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ocaml-magic-0.7.3-build/ocaml-magic-0.7.3/src' make[1]: *** [../OCamlMakefile:743: byte-code-library] Error 2 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ocaml-magic-0.7.3-build/ocaml-magic-0.7.3/src' make: *** [Makefile:17: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.1ZFXRU (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.1ZFXRU (%build) I: [iurt_root_command] ERROR: chroot