+ exec
+ rm -rf /rpmbuild
+ mkdir -p /rpmbuild
+ su -c 'rpmbuild -ba /builddir/build/SPECS/ocaml-curses.spec            --define "debug_package %{nil}"            --undefine _annotated_build            --define "_missing_doc_files_terminate_build %{nil}"            --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d"            --define "_emacs_sitelispdir /usr/share/emacs/site-lisp"            --nocheck   ' mockbuild
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.eaLnWj
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf ocaml-curses-1.0.3
+ /usr/bin/gzip -dc /builddir/build/SOURCES/ocaml-curses-1.0.3.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd ocaml-curses-1.0.3
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #1 (ocaml-curses-1.0.3-fix-term-h-detection.patch):'
Patch #1 (ocaml-curses-1.0.3-fix-term-h-detection.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
patching file configure.ac
+ autoreconf
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.AjSUlB
+ umask 022
+ cd /builddir/build/BUILD
+ cd ocaml-curses-1.0.3
+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 '
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 '
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ '[' 1 = 1 ']'
+++ dirname ./configure
++ find . -name config.guess -o -name config.sub
+ '[' 1 = 1 ']'
+ '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']'
++ find . -name ltmain.sh
+ ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-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 --enable-widec
configure: WARNING: unrecognized options: --disable-dependency-tracking
checking for riscv64-redhat-linux-gnu-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
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 whether gcc and cc understand -c and -o together... yes
checking for riscv64-redhat-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
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 termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for working ncurses library... found in -lncursesw
checking for term.h... found in <term.h>
checking for wide character support in ncurses library... yes
checking for resizeterm... yes
checking for resize_term... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.ml
config.status: creating config.h
configure: WARNING: unrecognized options: --disable-dependency-tracking
+ make all
make[1]: Entering directory '/builddir/build/BUILD/ocaml-curses-1.0.3'
ocamldep curses.mli > ._bcdi/curses.di
ocamldep -pp "gcc -x c -E " curses.ml > ._d/curses.d
ocamldep keys.ml > ._d/keys.d
ocamlc -c -cc "gcc" -ccopt "-fPIC -g -Wall -DHAVE_CONFIG_H \
			-DPIC   \
			    -o ml_curses.o " ml_curses.c
functions.c: In function 'mlcurses_unctrl':
functions.c:596:5: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
 ML1(unctrl,string,chtype)
     ^
ml_curses.c:77:15: note: in definition of macro 'r_string'
   { char *ret=f; \
               ^
functions.c:596:1: note: in expansion of macro 'ML1'
 ML1(unctrl,string,chtype)
 ^~~
functions.c: In function 'mlcurses_keyname':
functions.c:597:5: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
 ML1(keyname,string,int)
     ^
ml_curses.c:77:15: note: in definition of macro 'r_string'
   { char *ret=f; \
               ^
functions.c:597:1: note: in expansion of macro 'ML1'
 ML1(keyname,string,int)
 ^~~
ar rcs libcurses_stubs.a  ml_curses.o
ocamlc -c keys.ml
ocamlc -c curses.mli
ocamlc -c -pp "gcc -x c -E " curses.ml
ocamlmklib         \
			-o curses_stubs  ml_curses.o -lncursesw  \
			
ocamlc -a -dllib dllcurses_stubs.so -custom       -ccopt -Wl,-z,relro -ccopt -specs=/usr/lib/rpm/redhat/redhat-hardened-ld      -cclib -lcurses_stubs -cclib -lncursesw   -o curses.cma keys.cmo curses.cmo
make[1]: Leaving directory '/builddir/build/BUILD/ocaml-curses-1.0.3'
sed \
  -e 's/@PACKAGE@/curses/' \
  -e 's/@VERSION@/1.0.3/' \
  -e 's/@CURSES@/ncurses/' \
  < META.in > META
ranlib *.a
+ make opt
make[1]: Entering directory '/builddir/build/BUILD/ocaml-curses-1.0.3'
ocamldep -native curses.mli > ._ncdi/curses.di
make[1]: 'libcurses_stubs.a' is up to date.
ocamlopt -c keys.ml
ocamlopt -c -pp "gcc -x c -E " curses.ml
ocamlopt -a        -ccopt -Wl,-z,relro -ccopt -specs=/usr/lib/rpm/redhat/redhat-hardened-ld     -cclib -lcurses_stubs -cclib -lncursesw   -o curses.cmxa keys.cmx curses.cmx
make[1]: Leaving directory '/builddir/build/BUILD/ocaml-curses-1.0.3'
ranlib *.a
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.joEQvD
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64 '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64
++ dirname /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64
+ cd ocaml-curses-1.0.3
+ export DESTDIR=/builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64
+ DESTDIR=/builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64
+ export OCAMLFIND_DESTDIR=/builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/lib64/ocaml
+ OCAMLFIND_DESTDIR=/builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/lib64/ocaml
+ mkdir -p /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/lib64/ocaml /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/lib64/ocaml/stublibs
+ ocamlfind install curses META curses.cmi keys.cmi curses.cmx keys.cmx curses.cma curses.cmxa curses.a libcurses_stubs.a dllcurses_stubs.so curses.mli
Installed /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/lib64/ocaml/curses/curses.mli
Installed /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/lib64/ocaml/curses/libcurses_stubs.a
Installed /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/lib64/ocaml/curses/curses.a
Installed /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/lib64/ocaml/curses/curses.cmxa
Installed /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/lib64/ocaml/curses/curses.cma
Installed /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/lib64/ocaml/curses/keys.cmx
Installed /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/lib64/ocaml/curses/curses.cmx
Installed /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/lib64/ocaml/curses/keys.cmi
Installed /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/lib64/ocaml/curses/curses.cmi
Installed /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/lib64/ocaml/stublibs/dllcurses_stubs.so
Installed /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/lib64/ocaml/stublibs/dllcurses_stubs.so.owner
ocamlfind: [WARNING] You have installed DLLs but the directory /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/lib64/ocaml/stublibs is not mentioned in ld.conf
Installed /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/lib64/ocaml/curses/META
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
/sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
Processing files: ocaml-curses-1.0.3-40.fc28.riscv64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.z3Ja32
+ umask 022
+ cd /builddir/build/BUILD
+ cd ocaml-curses-1.0.3
+ DOCDIR=/builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/share/doc/ocaml-curses
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/share/doc/ocaml-curses
+ cp -pr COPYING /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/share/doc/ocaml-curses
+ exit 0
Provides: ocaml(Curses) = 7784683fecd32496e0b7ee0be9430782 ocaml(Keys) = c119e09805888dd82abe381f161f4ad4 ocaml-curses = 1.0.3-40.fc28 ocaml-curses(riscv-64) = 1.0.3-40.fc28
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libncursesw.so.6()(64bit) libtinfo.so.6()(64bit) ocaml(CamlinternalBigarray) = 4ff98b0650eef9c38ee9c9930e0c3e9b ocaml(CamlinternalFormatBasics) = 79ae8c0eb753af6b441fe05456c7970b ocaml(Complex) = cd4856c93f21942683ce190142e88396 ocaml(Hashtbl) = 0a88e320f172d3413ba0d5e0f9c70ccd ocaml(List) = 7a6b1f92720df765cf38d67f920844fe ocaml(Pervasives) = 9b04ecdc97e5102c1d342892ef7ad9a2 ocaml(Unix) = 053326e853ce10e1fadf8d891f08f891 ocaml(runtime) = 4.06.0 rtld(GNU_HASH)
Processing files: ocaml-curses-devel-1.0.3-40.fc28.riscv64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.qT2Xql
+ umask 022
+ cd /builddir/build/BUILD
+ cd ocaml-curses-1.0.3
+ DOCDIR=/builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/share/doc/ocaml-curses-devel
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/share/doc/ocaml-curses-devel
+ cp -pr COPYING /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64/usr/share/doc/ocaml-curses-devel
+ exit 0
Provides: ocaml-curses-devel = 1.0.3-40.fc28 ocaml-curses-devel(riscv-64) = 1.0.3-40.fc28
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64
Wrote: /builddir/build/SRPMS/ocaml-curses-1.0.3-40.fc28.src.rpm
Wrote: /builddir/build/RPMS/riscv64/ocaml-curses-1.0.3-40.fc28.riscv64.rpm
Wrote: /builddir/build/RPMS/riscv64/ocaml-curses-devel-1.0.3-40.fc28.riscv64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.DvyHlV
+ umask 022
+ cd /builddir/build/BUILD
+ cd ocaml-curses-1.0.3
+ /usr/bin/rm -rf /builddir/build/BUILDROOT/ocaml-curses-1.0.3-40.fc28.riscv64
+ exit 0
+ touch /buildok
+ cleanup
+ set +e
+ sync
+ sleep 5
+ sync
+ poweroff
Terminated
++ cleanup
++ set +e
++ sync
Terminated
+++ cleanup
+++ set +e
+++ sync
+++ sleep 5
+++ sync
+++ poweroff