+ exec
+ rm -rf /rpmbuild
+ mkdir -p /rpmbuild
+ su -c 'rpmbuild -ba /builddir/build/SPECS/ocaml-bitstring.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.dllduG
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf ocaml-bitstring-2.0.4
+ /usr/bin/gzip -dc /builddir/build/SOURCES/ocaml-bitstring-2.0.4.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd ocaml-bitstring-2.0.4
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #1 (bitstring-r201.patch):'
Patch #1 (bitstring-r201.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0
patching file Makefile.in
+ echo 'Patch #2 (bitstring-r202.patch):'
Patch #2 (bitstring-r202.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0
patching file bitstring.mli
patching file pa_bitstring.ml
patching file t12_signed_bytes_limits.ml
patching file t141_signed_int_limits.ml
patching file t14_signed_byte_match.ml
patching file bitstring.ml
patching file t13_signed_byte_create.ml
+ echo 'Patch #3 (bitstring-r203.patch):'
Patch #3 (bitstring-r203.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
patching file bitstring_c.c
patching file bitstring.ml
patching file bitstring.mli
patching file pa_bitstring.ml
+ echo 'Patch #4 (0001-configure-Don-t-test-for-camlp4of.opt-test-for-camlp.patch):'
Patch #4 (0001-configure-Don-t-test-for-camlp4of.opt-test-for-camlp.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
patching file configure.ac
+ autoconf
+ cp -a examples bitstring-examples
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.PZmMwx
+ umask 022
+ cd /builddir/build/BUILD
+ cd ocaml-bitstring-2.0.4
+ 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
configure: WARNING: unrecognized options: --disable-dependency-tracking
checking for a sed that does not truncate output... /usr/bin/sed
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 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 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 whether byte ordering is bigendian... no
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking for riscv64-redhat-linux-gnu-ocamlc... no
checking for ocamlc... ocamlc
OCaml version is 4.06.0
OCaml library path is /usr/lib64/ocaml
checking for riscv64-redhat-linux-gnu-ocamlopt... no
checking for ocamlopt... ocamlopt
checking for riscv64-redhat-linux-gnu-ocamlc.opt... no
checking for ocamlc.opt... ocamlc.opt
checking for riscv64-redhat-linux-gnu-ocamlopt.opt... no
checking for ocamlopt.opt... ocamlopt.opt
checking for riscv64-redhat-linux-gnu-ocaml... no
checking for ocaml... ocaml
checking for riscv64-redhat-linux-gnu-ocamldep... no
checking for ocamldep... ocamldep
checking for riscv64-redhat-linux-gnu-ocamlmktop... no
checking for ocamlmktop... ocamlmktop
checking for riscv64-redhat-linux-gnu-ocamlmklib... no
checking for ocamlmklib... ocamlmklib
checking for riscv64-redhat-linux-gnu-ocamldoc... no
checking for ocamldoc... ocamldoc
checking for riscv64-redhat-linux-gnu-ocamlbuild... no
checking for ocamlbuild... no
checking for riscv64-redhat-linux-gnu-ocamlfind... no
checking for ocamlfind... ocamlfind
checking for camlp4of... camlp4of
checking for OCaml findlib package extlib... not found
checking for OCaml findlib package cil... not found
checking for time... /usr/bin/time
checking for diff... /usr/bin/diff
checking for gprof... gprof
checking for bisect-report... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating META
config.status: creating bitstring_config.ml
config.status: creating cil-tools/Makefile
config.status: creating config.h
configure: WARNING: unrecognized options: --disable-dependency-tracking
+ make -j1 all
rm -f .depend .depend-t
ocamlfind ocamldep  \
  bitstring.ml bitstring.mli \
  bitstring_objinfo.ml | \
  /usr/bin/sed 's/ :/:/' | \
  /usr/bin/sed 's/ *$//' | \
  /usr/bin/sed -e :a -e '/ *\\$/N; s/ *\\\n */ /; ta' >> .depend-t
ocamlfind ocamldep  -pp camlp4of \
  bitstring_persistent.ml bitstring_persistent.mli \
  create_test_pattern.ml | \
  /usr/bin/sed 's/ :/:/' | \
  /usr/bin/sed 's/ *$//' | \
  /usr/bin/sed -e :a -e '/ *\\$/N; s/ *\\\n */ /; ta' >> .depend-t
mv .depend-t .depend
ocamlfind ocamlc -g  -c bitstring_types.ml
ocamlfind ocamlc -g  -c bitstring_config.ml
gcc -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  -Wall -Werror -fPIC -I. -I/usr/lib64/ocaml   -c -o bitstring_c.o bitstring_c.c
ocamlfind ocamlc -g  -c bitstring.mli
File "bitstring.mli", line 977, characters 0-131:
Warning 3: deprecated: [@@noalloc] should be used instead of "noalloc"
File "bitstring.mli", line 979, characters 0-131:
Warning 3: deprecated: [@@noalloc] should be used instead of "noalloc"
File "bitstring.mli", line 981, characters 0-131:
Warning 3: deprecated: [@@noalloc] should be used instead of "noalloc"
File "bitstring.mli", line 983, characters 0-127:
Warning 3: deprecated: [@@noalloc] should be used instead of "noalloc"
File "bitstring.mli", line 985, characters 0-127:
Warning 3: deprecated: [@@noalloc] should be used instead of "noalloc"
File "bitstring.mli", line 987, characters 0-127:
Warning 3: deprecated: [@@noalloc] should be used instead of "noalloc"
ocamlfind ocamlc -g  -c bitstring.ml
File "bitstring.ml", line 64, characters 12-25:
Warning 3: deprecated: String.create
Use Bytes.create instead.
File "bitstring.ml", line 67, characters 29-32:
Error: This expression has type bytes but an expression was expected of type
         string
make: *** [Makefile:288: bitstring.cmo] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.PZmMwx (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.PZmMwx (%build)
++ cleanup
++ set +e
++ sync
++ sleep 5
++ sync
++ poweroff
Terminated
+++ cleanup
+++ set +e
+++ sync
+++ sleep 5
Terminated
++++ cleanup
++++ set +e
++++ sync
++++ sleep 5
++++ sync
++++ poweroff