D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/ocaml-camlidl-1.09-4.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.oRFg3A Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.KBTGtm + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ocaml-camlidl-1.09-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/ocaml-camlidl-1.09-build + rm -rf camlidl-camlidl109 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/camlidl109.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd camlidl-camlidl109 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0001-Allow-destdir-installs.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0002-Pass-g-option-to-ocamlmklib.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + sed -e 's|^OCAMLLIB=.*|OCAMLLIB=/usr/lib64/ocaml|' -e 's|^BINDIR=.*|BINDIR=/usr/bin|' -e 's|^CFLAGS=.*|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|' -e 's|^OCAMLC=.*|OCAMLC=ocamlc.opt -g|' -e 's|^OCAMLOPT=.*|OCAMLOPT=ocamlopt.opt -g|' + cp /home/pterjan/rpmbuild/SOURCES/camlidl-1.05.doc.pdf . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.fFnoZZ + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ocaml-camlidl-1.09-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 camlidl-camlidl109 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + make cd compiler; make all make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/ocaml-camlidl-1.09-build/camlidl-camlidl109/compiler' rm -f config.ml sed -e 's|%%CPP%%|cpp|' \ config.mlp > config.ml chmod -w config.ml ocamlc.opt -g -c config.mli ocamlc.opt -g -c config.ml ocamlc.opt -g -c utils.mli ocamlc.opt -g -c utils.ml ocamlc.opt -g -c clflags.ml ocamlc.opt -g -c idltypes.mli ocamlc.opt -g -c prefix.mli ocamlc.opt -g -c prefix.ml ocamlc.opt -g -c lexpr.mli ocamlc.opt -g -c lexpr.ml ocamlc.opt -g -c cvttyp.mli ocamlc.opt -g -c cvttyp.ml ocamlc.opt -g -c variables.mli ocamlc.opt -g -c variables.ml ocamlc.opt -g -c idlarray.mli ocamlc.opt -g -c idlarray.ml ocamlc.opt -g -c struct.mli ocamlc.opt -g -c struct.ml ocamlc.opt -g -c enum.mli ocamlc.opt -g -c enum.ml ocamlc.opt -g -c union.mli ocamlc.opt -g -c union.ml ocamlc.opt -g -c cvtval.mli ocamlc.opt -g -c cvtval.ml ocamlc.opt -g -c structdecl.mli ocamlc.opt -g -c structdecl.ml ocamlc.opt -g -c enumdecl.mli ocamlc.opt -g -c enumdecl.ml ocamlc.opt -g -c uniondecl.mli ocamlc.opt -g -c uniondecl.ml ocamlc.opt -g -c typedef.mli ocamlc.opt -g -c typedef.ml ocamlc.opt -g -c funct.mli ocamlc.opt -g -c funct.ml ocamlc.opt -g -c constdecl.mli ocamlc.opt -g -c constdecl.ml ocamlc.opt -g -c intf.mli ocamlc.opt -g -c intf.ml ocamlc.opt -g -c file.mli ocamlc.opt -g -c file.ml ocamlc.opt -g -c predef.mli ocamlc.opt -g -c predef.ml ocamllex linenum.mll 16 states, 331 transitions, table size 1420 bytes ocamlc.opt -g -c linenum.mli ocamlc.opt -g -c linenum.ml ocamlc.opt -g -c parse_aux.mli ocamlc.opt -g -c parse_aux.ml ocamlyacc -v parser_midl.mly 12 shift/reduce conflicts, 4 reduce/reduce conflicts. ocamlc.opt -g -c parser_midl.mli ocamlc.opt -g -c parser_midl.ml ocamllex lexer_midl.mll 129 states, 1747 transitions, table size 7762 bytes ocamlc.opt -g -c lexer_midl.mli ocamlc.opt -g -c lexer_midl.ml ocamlc.opt -g -c parse.mli ocamlc.opt -g -c parse.ml ocamlc.opt -g -c fixlabels.mli ocamlc.opt -g -c fixlabels.ml ocamlc.opt -g -c normalize.mli ocamlc.opt -g -c normalize.ml ocamlc.opt -g -c main.ml ocamlc.opt -g -o camlidl config.cmo utils.cmo clflags.cmo prefix.cmo lexpr.cmo cvttyp.cmo variables.cmo idlarray.cmo struct.cmo enum.cmo union.cmo cvtval.cmo structdecl.cmo enumdecl.cmo uniondecl.cmo typedef.cmo funct.cmo constdecl.cmo intf.cmo file.cmo predef.cmo linenum.cmo parse_aux.cmo parser_midl.cmo lexer_midl.cmo parse.cmo fixlabels.cmo normalize.cmo main.cmo make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ocaml-camlidl-1.09-build/camlidl-camlidl109/compiler' cd runtime; make all make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/ocaml-camlidl-1.09-build/camlidl-camlidl109/runtime' ocamlc.opt -g -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" idlalloc.c idlalloc.c: In function 'camlidl_find_enum': idlalloc.c:35:3: error: implicit declaration of function 'invalid_argument'; did you mean 'caml_invalid_argument'? [-Wimplicit-function-declaration] 35 | invalid_argument(errmsg); | ^~~~~~~~~~~~~~~~ | caml_invalid_argument idlalloc.c: In function 'camlidl_alloc_flag_list': idlalloc.c:47:19: error: implicit declaration of function 'alloc_small'; did you mean 'caml_alloc_small'? [-Wimplicit-function-declaration] 47 | value v = alloc_small(2, 0); | ^~~~~~~~~~~ | caml_alloc_small idlalloc.c: In function 'camlidl_register_allocation': idlalloc.c:73:7: error: implicit declaration of function 'stat_alloc' [-Wimplicit-function-declaration] 73 | stat_alloc(sizeof(struct camlidl_block_list)); | ^~~~~~~~~~ idlalloc.c:73:7: error: initialization of 'struct camlidl_block_list *' from 'int' makes pointer from integer without a cast [-Wint-conversion] idlalloc.c: In function 'camlidl_malloc': idlalloc.c:95:16: error: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 95 | void * res = stat_alloc(sz); | ^~~~~~~~~~ idlalloc.c:96:31: error: 'stat_free' undeclared (first use in this function); did you mean 'caml_stat_free'? 96 | camlidl_register_allocation(stat_free, res, ctx); | ^~~~~~~~~ | caml_stat_free idlalloc.c:96:31: note: each undeclared identifier is reported only once for each function it appears in idlalloc.c: In function 'camlidl_free': idlalloc.c:108:5: error: implicit declaration of function 'stat_free'; did you mean 'caml_stat_free'? [-Wimplicit-function-declaration] 108 | stat_free(tmp); | ^~~~~~~~~ | caml_stat_free idlalloc.c: In function 'camlidl_malloc_string': idlalloc.c:114:18: error: implicit declaration of function 'string_length'; did you mean 'caml_string_length'? [-Wimplicit-function-declaration] 114 | mlsize_t len = string_length(mlstring); | ^~~~~~~~~~~~~ | caml_string_length make[1]: *** [Makefile.unix:40: idlalloc.o] Error 2 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ocaml-camlidl-1.09-build/camlidl-camlidl109/runtime' make: *** [Makefile:19: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.fFnoZZ (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.fFnoZZ (%build) I: [iurt_root_command] ERROR: chroot