D: [iurt_root_command] chroot Building target platforms: armv7hl Building for target armv7hl Installing /home/iurt/rpmbuild/SRPMS/@2193749:ocaml-curses-1.0.11-1.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.XyVYgY Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.3th6t5 + umask 022 + cd /home/iurt/rpmbuild/BUILD/ocaml-curses-1.0.11-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD/ocaml-curses-1.0.11-build + rm -rf curses-1.0.11 + /usr/lib/rpm/rpmuncompress -x /home/iurt/rpmbuild/SOURCES/curses-1.0.11.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd curses-1.0.11 + /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/iurt/rpmbuild/tmp/rpm-tmp.Ym3PGo + umask 022 + cd /home/iurt/rpmbuild/BUILD/ocaml-curses-1.0.11-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 -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard' + 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 -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard' + 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 -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard ' + 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 -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard ' + 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/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd curses-1.0.11 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + dune build --verbose --release -j4 Shared cache: enabled-except-user-rules Shared cache location: /home/iurt/.cache/dune/db Workspace root: /home/iurt/rpmbuild/BUILD/ocaml-curses-1.0.11-build/curses-1.0.11 Dune context: { name = "default" ; kind = "default" ; profile = Release ; merlin = true ; fdo_target_exe = None ; build_dir = In_build_dir "default" ; instrument_with = [] } Actual targets: - recursive alias @install Running[1]: (cd _build/default && /usr/bin/ocamlc -w -40 -g -bin-annot -bin-annot-occurrences -I .curses.objs/byte -I /usr/lib/ocaml/unix -no-alias-deps -o .curses.objs/byte/curses.cmi -c -intf curses.mli) Running[2]: (cd _build/default && /usr/bin/ocamlc -w -40 -g -bin-annot -bin-annot-occurrences -I .discover.eobjs/byte -I /usr/lib/ocaml/csexp -I /usr/lib/ocaml/dune-configurator -I /usr/lib/ocaml/unix -no-alias-deps -o .discover.eobjs/byte/dune__exe__Discover.cmo -c -impl discover.ml) Running[3]: (cd _build/default && /usr/bin/ocamlc -w -40 -g -o discover.exe -output-complete-exe /usr/lib/ocaml/unix/unix.cma /usr/lib/ocaml/csexp/csexp.cma /usr/lib/ocaml/dune-configurator/configurator.cma .discover.eobjs/byte/dune__exe__Discover.cmo) Running[4]: (cd _build/default && ./discover.exe) Running[5]: (cd _build/default && /usr/bin/sh -c 'gcc -O2 -fno-strict-aliasing -fwrapv -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 -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard -fPIC -pthread -x c -E _curses.ml') > _build/default/curses.ml Running[6]: (cd _build/default && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -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 -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard -fPIC -pthread -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -I /usr/lib/ocaml -I /usr/lib/ocaml/unix -o ml_curses.o -c ml_curses.c) Running[7]: (cd _build/default && /usr/bin/ocamlc -w -40 -g -bin-annot -bin-annot-occurrences -I .curses.objs/byte -I /usr/lib/ocaml/unix -intf-suffix .ml -no-alias-deps -o .curses.objs/byte/curses.cmo -c -impl curses.ml) Running[8]: (cd _build/default && /usr/bin/ocamlc -w -40 -g -a -o curses.cma -dllib -lcurses_stubs -cclib -lcurses_stubs -cclib -lncursesw .curses.objs/byte/curses.cmo) Running[9]: (cd _build/default && /usr/bin/ocamlmklib -g -custom -o curses_stubs ml_curses.o -ldopt -lncursesw) Running[10]: (cd _build/.sandbox/e71db28690e93d580b7927d7902c3e1f/default && /usr/bin/ocamlmklib -g -o curses_stubs ml_curses.o -ldopt -lncursesw) File "dune", lines 1-14, characters 0-283: 1 | (library 2 | (name curses) 3 | (public_name curses) .... 12 | (libraries unix) 13 | (c_library_flags 14 | (:include c_library_flags.sexp))) Command [10] exited with code 2: $ (cd _build/.sandbox/e71db28690e93d580b7927d7902c3e1f/default && /usr/bin/ocamlmklib -g -o curses_stubs ml_curses.o -ldopt -lncursesw) /usr/bin/ld: cannot find -lncursesw: No such file or directory collect2: error: ld returned 1 exit status error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.Ym3PGo (%build) RPM build errors: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.Ym3PGo (%build) I: [iurt_root_command] ERROR: chroot