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-camldbm-1.0-25.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.2J67Af sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.t6xLqN + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ocaml-camldbm-1.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/ocaml-camldbm-1.0-build + rm -rf camldbm-1.0 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/camldbm-1.0.tgz + STATUS=0 + '[' 0 -ne 0 ']' + cd camldbm-1.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/include_fix.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/hasgotfix.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/camldbm-1.0-api-doc.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/camldbm-1.0-enable-debugging-information.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.EAchlX + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ocaml-camldbm-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 camldbm-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 + 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 for OCaml version 5.3.0 Configuration for the "camldbm" library: headers found in ......... /usr/include options for compiling .... options for linking ...... -lgdbm_compat -lgdbm Configuration successful + make ocamlc -c -ccopt "" -ccopt "" cldbm.c cldbm.c: In function 'raise_dbm': cldbm.c:41:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | dbm_exn = caml_named_value("dbmerror"); | ^ cldbm.c:42:3: error: implicit declaration of function 'raise_with_string'; did you mean 'caml_raise_with_string'? [-Wimplicit-function-declaration] 42 | raise_with_string(*dbm_exn, errmsg); | ^~~~~~~~~~~~~~~~~ | caml_raise_with_string cldbm.c: In function 'alloc_dbm': cldbm.c:49:15: error: implicit declaration of function 'alloc_small' [-Wimplicit-function-declaration] 49 | value res = alloc_small(1, Abstract_tag); | ^~~~~~~~~~~ In file included from cldbm.c:18: cldbm.c: In function 'caml_dbm_open': /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)) | ^ cldbm.c:63:16: note: in expansion of macro 'String_val' 63 | char *file = String_val(vfile); | ^~~~~~~~~~ cldbm.c:64:15: error: implicit declaration of function 'convert_flag_list'; did you mean 'caml_convert_flag_list'? [-Wimplicit-function-declaration] 64 | int flags = convert_flag_list(vflags, dbm_open_flags); | ^~~~~~~~~~~~~~~~~ | caml_convert_flag_list cldbm.c: In function 'caml_dbm_fetch': cldbm.c:86:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 86 | key.dptr = String_val(vkey); | ^ cldbm.c:87:15: error: implicit declaration of function 'string_length'; did you mean 'caml_string_length'? [-Wimplicit-function-declaration] 87 | key.dsize = string_length(vkey); | ^~~~~~~~~~~~~ | caml_string_length cldbm.c:90:17: error: implicit declaration of function 'alloc_string'; did you mean 'caml_alloc_string'? [-Wimplicit-function-declaration] 90 | value res = alloc_string(answer.dsize); | ^~~~~~~~~~~~ | caml_alloc_string /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)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ cldbm.c:91:14: note: in expansion of macro 'String_val' 91 | memmove (String_val (res), answer.dptr, answer.dsize); | ^~~~~~~~~~ In file included from /usr/include/features.h:524, from /usr/include/bits/libc-header-start.h:33, from /usr/include/string.h:26, from cldbm.c:16: /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)) | ^~~~~ cldbm.c:94:8: error: implicit declaration of function 'raise_not_found'; did you mean 'caml_raise_not_found'? [-Wimplicit-function-declaration] 94 | else raise_not_found(); | ^~~~~~~~~~~~~~~ | caml_raise_not_found cldbm.c: In function 'caml_dbm_insert': cldbm.c:101:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 101 | key.dptr = String_val(vkey); | ^ cldbm.c:103:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 103 | content.dptr = String_val(vcontent); | ^ cldbm.c: In function 'caml_dbm_replace': cldbm.c:120:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 120 | key.dptr = String_val(vkey); | ^ cldbm.c:122:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 122 | content.dptr = String_val(vcontent); | ^ cldbm.c: In function 'caml_dbm_delete': cldbm.c:136:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 136 | key.dptr = String_val(vkey); | ^ cldbm.c: In function 'caml_dbm_firstkey': /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)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ cldbm.c:150:14: note: in expansion of macro 'String_val' 150 | memmove (String_val (res), key.dptr, key.dsize); | ^~~~~~~~~~ /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)) | ^~~~~ cldbm.c: In function 'caml_dbm_nextkey': /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)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ cldbm.c:162:14: note: in expansion of macro 'String_val' 162 | memmove (String_val (res), key.dptr, key.dsize); | ^~~~~~~~~~ /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)) | ^~~~~ cldbm.c: In function 'raise_dbm': cldbm.c:43:1: warning: 'noreturn' function does return 43 | } | ^ make: *** [Makefile:58: cldbm.o] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.EAchlX (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.EAchlX (%build) I: [iurt_root_command] ERROR: chroot