+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/ocaml-SDL.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.psBXHY + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ocamlsdl-0.9.1 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/ocamlsdl-0.9.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ocamlsdl-0.9.1 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/ocamlsdl-0.7.2-htmlref.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Tf7lco + umask 022 + cd /builddir/build/BUILD + cd ocamlsdl-0.9.1 + 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 + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./support/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./support/config.sub ++ basename ./support/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./support/config.sub '/usr/lib/rpm/redhat/config.sub' -> './support/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./support/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./support/config.guess ++ basename ./support/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./support/config.guess '/usr/lib/rpm/redhat/config.guess' -> './support/config.guess' + '[' 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 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... no checking for riscv64-redhat-linux-gnu-ocamlbuild... no checking for ocamlbuild... no checking for riscv64-redhat-linux-gnu-ocamlfind... no checking for ocamlfind... no checking OCaml Sys.os_type... Unix 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 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 for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for inline... inline checking for a BSD-compatible install... /usr/bin/install -c checking for OCaml module lablGL... +lablGL checking for sdl-config... /usr/bin/sdl-config checking for SDL - version >= 1.2.0... yes checking SDL_ttf.h usability... yes checking SDL_ttf.h presence... yes checking for SDL_ttf.h... yes checking for TTF_OpenFontRW in -lSDL_ttf... yes checking SDL_image.h usability... yes checking SDL_image.h presence... yes checking for SDL_image.h... yes checking for IMG_ReadXPMFromArray in -lSDL_image... yes checking SDL_mixer.h usability... yes checking SDL_mixer.h presence... yes checking for SDL_mixer.h... yes checking for Mix_QuickLoad_WAV in -lSDL_mixer... yes checking SDL_gfxPrimitives.h usability... no checking SDL_gfxPrimitives.h presence... no checking for SDL_gfxPrimitives.h... no configure: creating ./config.status config.status: creating META config.status: creating makefile.platform config.status: creating makefile.config.gcc config.status: creating src/config.h configure: WARNING: unrecognized options: --disable-dependency-tracking Configure summary: LablGL yes SDL_image yes SDL_mixer yes SDL_tff yes SDL_gfx no Configure finished, type 'make' to build. + make -j4 make -C src all make[1]: Entering directory '/builddir/build/BUILD/ocamlsdl-0.9.1/src' ocamlc.opt sdl.mli ocamlc.opt sdlcdrom.mli ocamlc.opt sdltimer.mli ocamlc.opt sdljoystick.mli ocamlc.opt sdlkey.mli ocamlc.opt sdlmouse.mli ocamlc.opt sdlvideo.mli ocamlc.opt sdlmixer.mli ocamlc.opt -ccopt "-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -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 " sdl_stub.c ocamlc.opt -ccopt "-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -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 " sdlcdrom_stub.c ocamlc.opt -ccopt "-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -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 " sdltimer_stub.c ocamlc.opt -ccopt "-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -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 " sdljoystick_stub.c ocamlc.opt -ccopt "-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -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 " sdlkey_stub.c ocamlc.opt -ccopt "-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -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 " sdlmouse_stub.c ocamlc.opt -ccopt "-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -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 " sdlevent_stub.c ocamlc.opt -ccopt "-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -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 " sdlvideo_stub.c ocamlc.opt -ccopt "-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -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 " sdlwm_stub.c ocamlc.opt -ccopt "-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -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 " sdlgl_stub.c ocamlc.opt -ccopt "-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -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 " common.c ocamlc.opt -ccopt "-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -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 " sdlrwops_stub.c ocamlc.opt -ccopt "-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -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 " sdlttf_stub.c ocamlc.opt -ccopt "-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -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 " sdlloader_stub.c ocamlc.opt -ccopt "-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -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 " sdlmixer_stub.c ocamlopt.opt -c -unsafe sdl.ml ocamlopt.opt -c -unsafe sdlcdrom.ml ocamlopt.opt -c -unsafe sdltimer.ml File "sdltimer.ml", line 26, characters 0-65: Warning 3: deprecated: [@@noalloc] should be used instead of "noalloc" ocamlopt.opt -c -unsafe sdljoystick.ml ocamlopt.opt -c -unsafe sdlkey.ml ocamlopt.opt -c -unsafe sdlmouse.ml File "sdlmouse.ml", line 55, characters 9-23: Warning 3: deprecated: String.unsafe_set File "sdlmouse.ml", line 55, characters 9-10: Error: This expression has type string but an expression was expected of type bytes make[1]: *** [../makefile.rules:10: sdlmouse.cmx] Error 2 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/builddir/build/BUILD/ocamlsdl-0.9.1/src' make: *** [Makefile:23: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.Tf7lco (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Tf7lco (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff