D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/ocaml-newt-0.9-20.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.JeeTrt + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ocaml-newt-0.9-build + test -d /home/pterjan/rpmbuild/BUILD/ocaml-newt-0.9-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/ocaml-newt-0.9-build + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/ocaml-newt-0.9-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/ocaml-newt-0.9-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/ocaml-newt-0.9-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.NISd9Q + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ocaml-newt-0.9-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/ocaml-newt-0.9-build + rm -rf ocaml-newt-0.9 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/ocaml-newt-0.9.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ocaml-newt-0.9 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.XXBGgg + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ocaml-newt-0.9-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-newt-0.9 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + ./configure --libdir=/usr/lib64 checking for 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 a BSD-compatible install... /usr/bin/install -c checking how to run the C preprocessor... gcc -E checking for function prototypes... yes checking whether gcc and cc understand -c and -o together... yes checking for newtInit in -lnewt... yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes 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 newt.h usability... yes checking newt.h presence... yes checking for newt.h... yes checking for newtComponentDestroy... yes checking for newtComponentAddDestroyCallback... yes checking for ocamlc... ocamlc OCaml version is 4.14.0 OCaml library path is /usr/lib64/ocaml checking for ocamlopt... ocamlopt checking for ocamlc.opt... ocamlc.opt checking for ocamlopt.opt... ocamlopt.opt checking for ocamldep... ocamldep checking for ocamlmktop... ocamlmktop checking for ocamlmklib... ocamlmklib checking for ocamldoc... ocamldoc checking for ocamlfind... ocamlfind checking for camlidl... camlidl configure: creating ./config.status config.status: creating Makefile config.status: creating META config.status: creating config.h + make newt_int.mli rm -f .depend ocamlfind ocamldep \ newt.mli newt.ml examples/01_open.ml examples/02_simple.ml examples/03_window.ml examples/04_form.ml examples/05_listbox.ml examples/06_gc.ml examples/07_checkbox.ml examples/10_message.ml examples/11_chooser.ml examples/12_enable.ml > .depend gcc -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 -I/usr/lib64/ocaml -fPIC -MM newt_int_stubs_by_hand.c config.h >> .depend camlidl -no-include newt_int.idl newt_int.idl:18:12: warning: missing terminating " character 18 | quote(mli, " | ^ newt_int.idl:22:3: warning: missing terminating " character 22 | *)") | ^ newt_int.idl:105:10: warning: missing terminating " character 105 | quote(c, " | ^ newt_int.idl:121:1: warning: missing terminating " character 121 | ") | ^ newt_int.idl:390:11: warning: missing terminating " character 390 | quote(ml, " | ^ newt_int.idl:391:91: warning: missing terminating " character 391 | external newtCheckbox : int -> int -> string -> char -> string option -> newtComponent = \"newt_stubs_newtCheckbox\" | ^ newt_int.idl:393:101: warning: missing terminating " character 393 | external newtRadiobutton : int -> int -> string -> bool -> newtComponent option -> newtComponent = \"newt_stubs_newtRadiobutton\" | ^ newt_int.idl:395:65: warning: missing terminating " character 395 | external newtListboxGetCurrent : newtComponent -> int option = \"newt_stubs_newtListboxGetCurrent\" | ^ newt_int.idl:396:71: warning: missing terminating " character 396 | external newtListboxSetCurrentByKey : newtComponent -> int -> unit = \"newt_stubs_newtListboxSetCurrentByKey\" | ^ newt_int.idl:397:70: warning: missing terminating " character 397 | external newtListboxSetData : newtComponent -> int -> int -> unit = \"newt_stubs_newtListboxSetData\" | ^ newt_int.idl:398:76: warning: missing terminating " character 398 | external newtListboxAppendEntry : newtComponent -> string -> int -> int = \"newt_stubs_newtListboxAppendEntry\" | ^ newt_int.idl:399:90: warning: missing terminating " character 399 | external newtListboxInsertEntry : newtComponent -> string -> int -> int option -> int = \"newt_stubs_newtListboxInsertEntry\" | ^ newt_int.idl:400:66: warning: missing terminating " character 400 | external newtListboxDeleteEntry : newtComponent -> int -> int = \"newt_stubs_newtListboxDeleteEntry\" | ^ newt_int.idl:401:72: warning: missing terminating " character 401 | external newtListboxGetEntry : newtComponent -> int -> string * int = \"newt_stubs_newtListboxGetEntry\" | ^ newt_int.idl:402:66: warning: missing terminating " character 402 | external newtListboxGetSelection : newtComponent -> int array = \"newt_stubs_newtListboxGetSelection\" | ^ newt_int.idl:403:84: warning: missing terminating " character 403 | external newtListboxSelectItem : newtComponent -> int -> newtFlagsSense -> unit = \"newt_stubs_newtListboxSelectItem\" | ^ newt_int.idl:405:86: warning: missing terminating " character 405 | external newtForm : newtComponent option -> string option -> int -> newtComponent = \"newt_stubs_newtForm\" | ^ newt_int.idl:406:65: warning: missing terminating " character 406 | external newtRunForm : newtComponent -> newtComponent option = \"newt_stubs_newtRunForm\" | ^ newt_int.idl:408:80: warning: missing terminating " character 408 | external newtComponentAddCallback : newtComponent -> (unit -> unit) -> unit = \"newt_stubs_newtComponentAddCallback\" | ^ newt_int.idl:410:59: warning: missing terminating " character 410 | external newtComponentAddress : newtComponent -> int64 = \"newt_stubs_newtComponentAddress\" | ^ newt_int.idl:411:1: warning: missing terminating " character 411 | "); | ^ newt_int.idl:413:12: warning: missing terminating " character 413 | quote(mli, " | ^ newt_int.idl:434:1: warning: missing terminating " character 434 | "); | ^ File newt_int.idl, line 233, column 58: Warning: attribute `out' unknown, malformed or not applicable here, ignored. + rm -f .depend + make depend rm -f .depend ocamlfind ocamldep \ newt.mli newt_int.mli newt.ml newt_int.ml examples/01_open.ml examples/02_simple.ml examples/03_window.ml examples/04_form.ml examples/05_listbox.ml examples/06_gc.ml examples/07_checkbox.ml examples/10_message.ml examples/11_chooser.ml examples/12_enable.ml > .depend gcc -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 -I/usr/lib64/ocaml -fPIC -MM newt_int_stubs.c newt_int_stubs_by_hand.c config.h >> .depend + make all gcc -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 -I/usr/lib64/ocaml -fPIC -c -o newt_int_stubs.o newt_int_stubs.c newt_int_stubs.c: In function 'camlidl_newt_int_newtOpenWindow': newt_int_stubs.c:401:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 401 | title = String_val(_v_title); | ^ newt_int_stubs.c: In function 'camlidl_newt_int_newtCenteredWindow': newt_int_stubs.c:420:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 420 | title = String_val(_v_title); | ^ newt_int_stubs.c: In function 'camlidl_newt_int_newtSetColor': newt_int_stubs.c:459:6: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 459 | fg = String_val(_v_fg); | ^ newt_int_stubs.c:460:6: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 460 | bg = String_val(_v_bg); | ^ newt_int_stubs.c: In function 'camlidl_newt_int_newtPushHelpLine': newt_int_stubs.c:491:8: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 491 | text = String_val(_v_text); | ^ newt_int_stubs.c: In function 'camlidl_newt_int_newtDrawRootText': newt_int_stubs.c:518:8: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 518 | text = String_val(_v_text); | ^ newt_int_stubs.c: In function 'camlidl_newt_int_newtCompactButton': newt_int_stubs.c:556:8: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 556 | text = String_val(_v_text); | ^ newt_int_stubs.c: In function 'camlidl_newt_int_newtButton': newt_int_stubs.c:578:8: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 578 | text = String_val(_v_text); | ^ newt_int_stubs.c: In function 'camlidl_newt_int_newtLabel': newt_int_stubs.c:687:8: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 687 | text = String_val(_v_text); | ^ newt_int_stubs.c: In function 'camlidl_newt_int_newtLabelSetText': newt_int_stubs.c:703:8: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 703 | text = String_val(_v_text); | ^ newt_int_stubs.c: In function 'camlidl_newt_int_newtListboxSetEntry': newt_int_stubs.c:807:8: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 807 | text = String_val(_v_text); | ^ newt_int_stubs.c: In function 'camlidl_newt_int_newtCheckboxTreeMulti': newt_int_stubs.c:913:7: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 913 | seq = String_val(_v_seq); | ^ newt_int_stubs.c: In function 'camlidl_newt_int_newtTextboxReflowed': newt_int_stubs.c:959:8: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 959 | text = String_val(_v_text); | ^ newt_int_stubs.c: In function 'camlidl_newt_int_newtTextboxSetText': newt_int_stubs.c:1012:8: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1012 | text = String_val(_v_text); | ^ newt_int_stubs.c: In function 'camlidl_newt_int_newtReflowText': newt_int_stubs.c:1067:8: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1067 | text = String_val(_v_text); | ^ newt_int_stubs.c: In function 'camlidl_newt_int_newtEntry': newt_int_stubs.c:1377:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1377 | initialValue = String_val(_v_initialValue); | ^ newt_int_stubs.c:1393:52: error: passing argument 5 of 'newtEntry' from incompatible pointer type [-Wincompatible-pointer-types] 1393 | _res = newtEntry(left, top, initialValue, width, pass_null, flags); | ^~~~~~~~~ | | | char ** In file included from newt_int_stubs.c:19: /usr/include/newt.h:250:39: note: expected 'const char **' but argument is of type 'char **' 250 | const char ** resultPtr, int flags); | ~~~~~~~~~~~~~~^~~~~~~~~ newt_int_stubs.c: In function 'camlidl_newt_int_newtEntrySet': newt_int_stubs.c:1415:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1415 | value = String_val(_v_value); | ^ newt_int_stubs.c: In function 'camlidl_newt_int_newtGridWrappedWindow': newt_int_stubs.c:1712:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1712 | title = String_val(_v_title); | ^ newt_int_stubs.c: In function 'camlidl_newt_int_newtGridWrappedWindowAt': newt_int_stubs.c:1731:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1731 | title = String_val(_v_title); | ^ In file included from newt_int_stubs.c:1757: newt_int_stubs_by_hand.c: In function 'newt_stubs_newtCheckbox': newt_int_stubs_by_hand.c:128:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 128 | seq = String_val (Field (seqoptv, 0)); | ^ In file included from newt_int_stubs.c:5: newt_int_stubs_by_hand.c: In function 'newt_stubs_newtListboxAppendEntry': /usr/lib64/ocaml/caml/mlvalues.h:290:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ newt_int_stubs_by_hand.c:213:15: note: in expansion of macro 'String_val' 213 | char *str = String_val (strv); | ^~~~~~~~~~ newt_int_stubs_by_hand.c: In function 'newt_stubs_newtListboxInsertEntry': /usr/lib64/ocaml/caml/mlvalues.h:290:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ newt_int_stubs_by_hand.c:229:15: note: in expansion of macro 'String_val' 229 | char *str = String_val (strv); | ^~~~~~~~~~ newt_int_stubs_by_hand.c: In function 'newt_stubs_newtForm': newt_int_stubs_by_hand.c:337:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 337 | str = String_val (Field (stroptv, 0)); | ^ newt_int_stubs_by_hand.c: At top level: newt_int_stubs_by_hand.c:387:1: error: return type defaults to 'int' [-Wimplicit-int] 387 | newt_stubs_newtComponentAddCallback (value cov, value fv) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ newt_int_stubs_by_hand.c: In function 'newt_stubs_newtComponentAddCallback': newt_int_stubs_by_hand.c:392:13: warning: "callback" is deprecated: use "caml_callback" instead 392 | struct callback *cb; | ^~~~~~~~~~ newt_int_stubs_by_hand.c: At top level: newt_int_stubs_by_hand.c:407:1: error: return type defaults to 'int' [-Wimplicit-int] 407 | newt_stubs_newtComponentAddress (value cov) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [: newt_int_stubs.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.XXBGgg (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.XXBGgg (%build) I: [iurt_root_command] ERROR: chroot