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-ancient-0.9.0-18.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.M4JewW sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.FjcIdR + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ocaml-ancient-0.9.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/ocaml-ancient-0.9.0-build + rm -rf ocaml-ancient-0.9.0 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/ocaml-ancient-0.9.0.tgz + STATUS=0 + '[' 0 -ne 0 ']' + cd ocaml-ancient-0.9.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/ocaml-ancient-0.9.0-fixgendoc.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/ancient-0.9.0-use-ocamlopt-g.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/ancient-0.9.0-use-header_t.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.r1NeKp + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ocaml-ancient-0.9.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-ancient-0.9.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + pushd mmalloc ~/rpmbuild/BUILD/ocaml-ancient-0.9.0-build/ocaml-ancient-0.9.0/mmalloc ~/rpmbuild/BUILD/ocaml-ancient-0.9.0-build/ocaml-ancient-0.9.0 + 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 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 ANSI C... none needed checking for x86_64-mageia-linux-gnu-ar... no checking for ar... ar checking for x86_64-mageia-linux-gnu-ranlib... no checking for ranlib... ranlib checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for getpagesize... yes checking for working mmap... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for unistd.h... (cached) yes configure: creating ./config.status config.status: creating Makefile + /usr/bin/make -O -j48 V=1 VERBOSE=1 gcc -c -g -fPIC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_LIMITS_H=1 -DHAVE_STDDEF_H=1 -DHAVE_UNISTD_H=1 -I. -I./../include ./mm.c In file included from ./mm.c:27: ./mcalloc.c: In function 'mcalloc': ./mcalloc.c:28:1: warning: old-style function definition [-Wold-style-definition] 28 | mcalloc (md, nmemb, size) | ^~~~~~~ In file included from ./mm.c:28: ./mfree.c: In function '__mmalloc_free': ./mfree.c:31:1: warning: old-style function definition [-Wold-style-definition] 31 | __mmalloc_free (mdp, ptr) | ^~~~~~~~~~~~~~ ./mfree.c: In function 'mfree': ./mfree.c:206:1: warning: old-style function definition [-Wold-style-definition] 206 | mfree (md, ptr) | ^~~~~ In file included from ./mm.c:29: ./mmalloc.c: In function 'align': ./mmalloc.c:38:1: warning: old-style function definition [-Wold-style-definition] 38 | align (mdp, size) | ^~~~~ ./mmalloc.c: In function 'initialize': ./mmalloc.c:59:1: warning: old-style function definition [-Wold-style-definition] 59 | initialize (mdp) | ^~~~~~~~~~ ./mmalloc.c: In function 'morecore': ./mmalloc.c:82:1: warning: old-style function definition [-Wold-style-definition] 82 | morecore (mdp, size) | ^~~~~~~~ ./mmalloc.c: In function 'mmalloc': ./mmalloc.c:129:1: warning: old-style function definition [-Wold-style-definition] 129 | mmalloc (md, size) | ^~~~~~~ In file included from ./mm.c:30: ./mmcheck.c: In function 'checkhdr': ./mmcheck.c:63:1: warning: old-style function definition [-Wold-style-definition] 63 | checkhdr (mdp, hdr) | ^~~~~~~~ ./mmcheck.c: In function 'mfree_check': ./mmcheck.c:75:1: warning: old-style function definition [-Wold-style-definition] 75 | mfree_check (md, ptr) | ^~~~~~~~~~~ ./mmcheck.c: In function 'mmalloc_check': ./mmcheck.c:91:1: warning: old-style function definition [-Wold-style-definition] 91 | mmalloc_check (md, size) | ^~~~~~~~~~~~~ ./mmcheck.c: In function 'mrealloc_check': ./mmcheck.c:115:1: warning: old-style function definition [-Wold-style-definition] 115 | mrealloc_check (md, ptr, size) | ^~~~~~~~~~~~~~ ./mmcheck.c: In function 'mmcheckf': ./mmcheck.c:174:1: warning: old-style function definition [-Wold-style-definition] 174 | mmcheckf (md, func, force) | ^~~~~~~~ ./mmcheck.c: In function 'mmcheck': ./mmcheck.c:215:1: warning: old-style function definition [-Wold-style-definition] 215 | mmcheck (md, func) | ^~~~~~~ In file included from ./mm.c:31: ./mmemalign.c: In function 'mmemalign': ./mmemalign.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | mmemalign (md, alignment, size) | ^~~~~~~~~ In file included from ./mm.c:32: ./mmstats.c: In function 'mmstats': ./mmstats.c:32:1: warning: old-style function definition [-Wold-style-definition] 32 | mmstats (md) | ^~~~~~~ In file included from ./mm.c:33: ./mmtrace.c: In function 'tr_freehook': ./mmtrace.c:64:1: warning: old-style function definition [-Wold-style-definition] 64 | tr_freehook (md, ptr) | ^~~~~~~~~~~ ./mmtrace.c: In function 'tr_mallochook': ./mmtrace.c:81:1: warning: old-style function definition [-Wold-style-definition] 81 | tr_mallochook (md, size) | ^~~~~~~~~~~~~ ./mmtrace.c: In function 'tr_reallochook': ./mmtrace.c:103:1: warning: old-style function definition [-Wold-style-definition] 103 | tr_reallochook (md, ptr, size) | ^~~~~~~~~~~~~~ In file included from ./mm.c:34: ./mrealloc.c: In function 'mrealloc': ./mrealloc.c:35:1: warning: old-style function definition [-Wold-style-definition] 35 | mrealloc (md, ptr, size) | ^~~~~~~~ In file included from ./mm.c:35: ./mvalloc.c: In function 'mvalloc': ./mvalloc.c:32:1: warning: old-style function definition [-Wold-style-definition] 32 | mvalloc (md, size) | ^~~~~~~ In file included from ./mm.c:36: ./mmap-sup.c: In function '__mmalloc_mmap_morecore': ./mmap-sup.c:65:1: warning: old-style function definition [-Wold-style-definition] 65 | __mmalloc_mmap_morecore (mdp, size) | ^~~~~~~~~~~~~~~~~~~~~~~ ./mmap-sup.c: In function '__mmalloc_remap_core': ./mmap-sup.c:157:1: warning: old-style function definition [-Wold-style-definition] 157 | __mmalloc_remap_core (mdp) | ^~~~~~~~~~~~~~~~~~~~ ./mmap-sup.c: In function 'mmalloc_findbase': ./mmap-sup.c:171:1: warning: old-style function definition [-Wold-style-definition] 171 | mmalloc_findbase (size) | ^~~~~~~~~~~~~~~~ In file included from ./mm.c:37: ./attach.c: In function 'mmalloc_attach': ./attach.c:75:1: warning: old-style function definition [-Wold-style-definition] 75 | mmalloc_attach (fd, baseaddr) | ^~~~~~~~~~~~~~ ./attach.c: In function 'reuse': ./attach.c:178:1: warning: old-style function definition [-Wold-style-definition] 178 | reuse (fd) | ^~~~~ In file included from ./mm.c:38: ./detach.c: In function 'mmalloc_detach': ./detach.c:41:1: warning: old-style function definition [-Wold-style-definition] 41 | mmalloc_detach (md) | ^~~~~~~~~~~~~~ In file included from ./mm.c:39: ./keys.c: In function 'mmalloc_setkey': ./keys.c:37:1: warning: old-style function definition [-Wold-style-definition] 37 | mmalloc_setkey (md, keynum, key) | ^~~~~~~~~~~~~~ ./keys.c: In function 'mmalloc_getkey': ./keys.c:54:1: warning: old-style function definition [-Wold-style-definition] 54 | mmalloc_getkey (md, keynum) | ^~~~~~~~~~~~~~ In file included from ./mm.c:40: ./sbrk-sup.c: In function 'sbrk_morecore': ./sbrk-sup.c:45:1: warning: old-style function definition [-Wold-style-definition] 45 | sbrk_morecore (mdp, size) | ^~~~~~~~~~~~~ rm -rf libmmalloc.a ar qv libmmalloc.a mm.o ar: creating libmmalloc.a a - mm.o ranlib libmmalloc.a + popd ~/rpmbuild/BUILD/ocaml-ancient-0.9.0-build/ocaml-ancient-0.9.0 ++ ocaml ocaml_version.ml major + OCAML_VERSION_MAJOR=5 ++ ocaml ocaml_version.ml minor + OCAML_VERSION_MINOR=3 + make ancient.cma ancient.cmxa META 'CFLAGS=-g -fPIC -Wall -Werror -I/usr/lib64/ocaml -DOCAML_VERSION_MAJOR=5 -DOCAML_VERSION_MINOR=3' rm -f .depend ocamldep ancient.mli ancient.ml ocaml_version.ml test_ancient_dict_read.ml test_ancient_dict_verify.ml test_ancient_dict_write.ml > .depend ocamlfind ocamlc -g -package unix -c ancient.mli ocamlfind ocamlc -g -package unix -c ancient.ml gcc -g -fPIC -Wall -Werror -I/usr/lib64/ocaml -DOCAML_VERSION_MAJOR=5 -DOCAML_VERSION_MINOR=3 -c -o ancient_c.o ancient_c.c In file included from /usr/lib64/ocaml/caml/memory.h:29, from ancient_c.c:8: ancient_c.c: In function '_mark': /usr/lib64/ocaml/caml/mlvalues.h:195:21: error: initialization discards 'volatile' qualifier from pointer target type [-Werror=discarded-qualifiers] 195 | #define Hp_val(val) (((volatile header_t *) (val)) - 1) | ^ ancient_c.c:208:22: note: in expansion of macro 'Hp_val' 208 | header_t *header = Hp_val (obj); | ^~~~~~ cc1: all warnings being treated as errors make: *** [: ancient_c.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.r1NeKp (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.r1NeKp (%build) I: [iurt_root_command] ERROR: chroot