D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/iurt/rpmbuild/SRPMS/@2193930:ocaml-mm-0.3.1-11.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.In15lE Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.URdslo + umask 022 + cd /home/iurt/rpmbuild/BUILD/ocaml-mm-0.3.1-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD/ocaml-mm-0.3.1-build + rm -rf ocaml-mm-0.3.1 + /usr/lib/rpm/rpmuncompress -x /home/iurt/rpmbuild/SOURCES/0.3.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ocaml-mm-0.3.1 + /usr/lib/rpm/rpmuncompress -x /home/iurt/rpmbuild/SOURCES/4462789c5a4bb4633ecd993f2240046cb8c46de5.zip + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rmdir m4 + mv m4-4462789c5a4bb4633ecd993f2240046cb8c46de5 m4 + ./bootstrap configure.ac:5: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:5: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/ocaml_compilers.m4:1: AC_CHECK_OCAML_COMPILERS is expanded from... m4/base_checks.m4:1: AC_BASE_CHECKS is expanded from... configure.ac:5: the top level configure.ac:5: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:5: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/ocaml.m4:160: AC_PROG_CAMLP4 is expanded from... m4/ocaml_compilers.m4:1: AC_CHECK_OCAML_COMPILERS is expanded from... m4/base_checks.m4:1: AC_BASE_CHECKS is expanded from... configure.ac:5: the top level configure.ac:21: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:21: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/ocaml.m4:240: AC_CHECK_OCAML_PKG is expanded from... configure.ac:21: the top level configure.ac:25: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:25: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/ocaml.m4:240: AC_CHECK_OCAML_PKG is expanded from... configure.ac:25: the top level configure.ac:29: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:29: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/ocaml.m4:240: AC_CHECK_OCAML_PKG is expanded from... configure.ac:29: the top level configure.ac:33: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:33: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/ocaml.m4:240: AC_CHECK_OCAML_PKG is expanded from... configure.ac:33: the top level configure.ac:37: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:37: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/ocaml.m4:240: AC_CHECK_OCAML_PKG is expanded from... configure.ac:37: the top level configure.ac:41: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:41: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/ocaml.m4:240: AC_CHECK_OCAML_PKG is expanded from... configure.ac:41: the top level configure.ac:45: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:45: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/ocaml.m4:240: AC_CHECK_OCAML_PKG is expanded from... configure.ac:45: the top level configure.ac:49: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:49: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/ocaml.m4:240: AC_CHECK_OCAML_PKG is expanded from... configure.ac:49: the top level configure.ac:82: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:82: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/detect_binding.m4:36: AC_CHECK_OCAML_BINDING is expanded from... configure.ac:82: the top level configure.ac:82: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:82: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/detect_binding.m4:29: AC_COND_PLUGIN is expanded from... m4/detect_binding.m4:36: AC_CHECK_OCAML_BINDING is expanded from... configure.ac:82: the top level + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.cwWc5q + umask 022 + cd /home/iurt/rpmbuild/BUILD/ocaml-mm-0.3.1-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-mm-0.3.1 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + ./configure --prefix /usr --libdir /usr/lib64 --libexecdir /usr/libexec --exec-prefix /usr --bindir /usr/bin --mandir /usr/share/man --datadir /usr/share --localstatedir /var configuring ocaml-mm 0.3.1 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 the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking for gcc... (cached) gcc checking whether the compiler supports GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to enable C11 features... (cached) none needed checking for ar... ar checking for ocamlc... ocamlc OCaml version is 5.3.0 checking if ocaml compiler supports first-class modules... yes 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 ocaml... ocaml checking for ocamldep... ocamldep checking for ocamldep.opt... ocamldep.opt checking for ocamlmktop... ocamlmktop checking for ocamlmklib... ocamlmklib checking for ocamldoc... ocamldoc checking for ocamldoc.opt... ocamldoc.opt checking for ocamlbuild... no checking for camlidl... camlidl checking for ocamllex... ocamllex checking for ocamllex.opt... ocamllex.opt checking for ocamlyacc... ocamlyacc checking for camlp4... no checking for camlp4boot... no checking for camlp4o... no checking for camlp4of... no checking for camlp4oof... no checking for camlp4orf... no checking for camlp4prof... no checking for camlp4r... no checking for camlp4rf... no checking for ocamlfind... ocamlfind checking for ocaml standard library path... /usr/lib64/ocaml checking for caml/threads.h... yes checking for gcc option to produce PIC... -fPIC checking for memalign... yes checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking for OCaml library alsa... found checking for OCaml library ao... found checking for OCaml library pulseaudio... not found checking for OCaml library gstreamer... found checking for OCaml library mad... found checking for OCaml library ogg... found checking for OCaml library sdl... not found checking for OCaml library theora... found checking for sys/soundcard.h... yes checking for libavcodec/avcodec.h... yes checking for linux/videodev.h... no checking for ocaml bytes module... ok configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating external/Makefile config.status: creating external/Makefile.defs config.status: creating src/META config.status: creating config.h Supported external libraries: - Alsa : yes - AO : yes - FFmpeg : yes - Gstreamer : yes - Mad : yes - ogg : yes - OSS : yes - Pulseaudio: no - SDL : no - Theora : yes - V4L : no + make make -C src all make[1]: Entering directory '/home/iurt/rpmbuild/BUILD/ocaml-mm-0.3.1-build/ocaml-mm-0.3.1/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/ocaml-mm-0.3.1-build/ocaml-mm-0.3.1/src' ocamldep.opt ringbuffer.ml > ._d/ringbuffer.d ocamldep.opt IO.ml > ._d/IO.d ocamldep.opt audio.ml > ._d/audio.d ocamldep.opt image.ml > ._d/image.d ocamldep.opt video.ml > ._d/video.d ocamldep.opt MIDI.ml > ._d/MIDI.d File "MIDI.ml", line 107, characters 8-39: 107 | s.[0] <- coi (0x8 lsl 4 + chan); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Error: Syntax error: strings are immutable, there is no assignment syntax for them. Hint: Mutable sequences of bytes are available in the Bytes module. Hint: Did you mean to use "Bytes.set"? make[2]: *** Deleting file '._d/MIDI.d' ocamldep.opt synth.ml > ._d/synth.d ocamldep.opt ringbuffer.mli > ._bcdi/ringbuffer.di OCamlMakefile:1141: warning: pattern recipe did not update peer target '._ncdi/ringbuffer.di'. ocamldep.opt audio.mli > ._bcdi/audio.di OCamlMakefile:1141: warning: pattern recipe did not update peer target '._ncdi/audio.di'. ocamldep.opt image.mli > ._bcdi/image.di OCamlMakefile:1141: warning: pattern recipe did not update peer target '._ncdi/image.di'. ocamldep.opt video.mli > ._bcdi/video.di OCamlMakefile:1141: warning: pattern recipe did not update peer target '._ncdi/video.di'. ocamldep.opt MIDI.mli > ._bcdi/MIDI.di OCamlMakefile:1141: warning: pattern recipe did not update peer target '._ncdi/MIDI.di'. ocamldep.opt synth.mli > ._bcdi/synth.di OCamlMakefile:1141: warning: pattern recipe did not update peer target '._ncdi/synth.di'. ocamldep.opt MIDI.ml > ._d/MIDI.d File "MIDI.ml", line 107, characters 8-39: 107 | s.[0] <- coi (0x8 lsl 4 + chan); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Error: Syntax error: strings are immutable, there is no assignment syntax for them. Hint: Mutable sequences of bytes are available in the Bytes module. Hint: Did you mean to use "Bytes.set"? make[2]: *** Deleting file '._d/MIDI.d' ocamlc.opt -c -cc "gcc" -ccopt "-fPIC -I/usr/include -I.. -g -Wall -O3 \ -DPIC \ -I.. -I/usr/lib64/ocaml/alsa -I/usr/lib64/ocaml/ao -I/usr/lib64/ocaml/gstreamer -I/usr/lib64/ocaml/mad -I/usr/lib64/ocaml/ogg -I/usr/lib64/ocaml/theora -I/usr/lib64/ocaml/bytes -o audio_c.o " audio_c.c In file included from /usr/lib64/ocaml/caml/alloc.h:20, from audio_c.c:34: audio_c.c: In function 'caml_float_pcm_of_u8_native': /usr/lib64/ocaml/caml/mlvalues.h:365:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #define String_val(x) ((const char *) Bp_val(x)) | ^ audio_c.c:351:15: note: in expansion of macro 'String_val' 351 | char* src = String_val(_src) ; | ^~~~~~~~~~ audio_c.c: In function 'caml_float_pcm_convert_s32le_native': /usr/lib64/ocaml/caml/mlvalues.h:365:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #define String_val(x) ((const char *) Bp_val(x)) | ^ audio_c.c:384:15: note: in expansion of macro 'String_val' 384 | char* src = String_val(_src) ; | ^~~~~~~~~~ audio_c.c: In function 'caml_float_pcm_convert_s24le_native': /usr/lib64/ocaml/caml/mlvalues.h:365:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #define String_val(x) ((const char *) Bp_val(x)) | ^ audio_c.c:416:15: note: in expansion of macro 'String_val' 416 | char* src = String_val(_src) ; | ^~~~~~~~~~ audio_c.c: In function 'caml_float_pcm_convert_s16_native': /usr/lib64/ocaml/caml/mlvalues.h:365:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #define String_val(x) ((const char *) Bp_val(x)) | ^ audio_c.c:448:15: note: in expansion of macro 'String_val' 448 | char* src = String_val(_src) ; | ^~~~~~~~~~ ocamlc.opt -c -cc "gcc" -ccopt "-fPIC -I/usr/include -I.. -g -Wall -O3 \ -DPIC \ -I.. -I/usr/lib64/ocaml/alsa -I/usr/lib64/ocaml/ao -I/usr/lib64/ocaml/gstreamer -I/usr/lib64/ocaml/mad -I/usr/lib64/ocaml/ogg -I/usr/lib64/ocaml/theora -I/usr/lib64/ocaml/bytes -o image_c.o " image_c.c image_c.h: In function 'frame_of_value': image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.h:46:25: note: in expansion of macro 'Caml_ba_data_val' 46 | #define Rgb_data_val(v) Caml_ba_data_val(Field(v,0)) | ^~~~~~~~~~~~~~~~ image_c.h:50:13: note: in expansion of macro 'Rgb_data_val' 50 | f->data = Rgb_data_val(v); | ^~~~~~~~~~~~ image_c.c: In function 'caml_rgb_aligned_plane': image_c.c:69:23: error: implicit declaration of function 'alloc_bigarray' [-Wimplicit-function-declaration] 69 | #define caml_ba_alloc alloc_bigarray | ^~~~~~~~~~~~~~ image_c.c:114:7: note: in expansion of macro 'caml_ba_alloc' 114 | v = caml_ba_alloc(CAML_BA_MANAGED|CAML_BA_C_LAYOUT|CAML_BA_UINT8,1,data,&len); | ^~~~~~~~~~~~~ image_c.c:72:25: error: 'BIGARRAY_MANAGED' undeclared (first use in this function) 72 | #define CAML_BA_MANAGED BIGARRAY_MANAGED | ^~~~~~~~~~~~~~~~ image_c.c:114:21: note: in expansion of macro 'CAML_BA_MANAGED' 114 | v = caml_ba_alloc(CAML_BA_MANAGED|CAML_BA_C_LAYOUT|CAML_BA_UINT8,1,data,&len); | ^~~~~~~~~~~~~~~ image_c.c:72:25: note: each undeclared identifier is reported only once for each function it appears in 72 | #define CAML_BA_MANAGED BIGARRAY_MANAGED | ^~~~~~~~~~~~~~~~ image_c.c:114:21: note: in expansion of macro 'CAML_BA_MANAGED' 114 | v = caml_ba_alloc(CAML_BA_MANAGED|CAML_BA_C_LAYOUT|CAML_BA_UINT8,1,data,&len); | ^~~~~~~~~~~~~~~ image_c.c:70:26: error: 'BIGARRAY_C_LAYOUT' undeclared (first use in this function) 70 | #define CAML_BA_C_LAYOUT BIGARRAY_C_LAYOUT | ^~~~~~~~~~~~~~~~~ image_c.c:114:37: note: in expansion of macro 'CAML_BA_C_LAYOUT' 114 | v = caml_ba_alloc(CAML_BA_MANAGED|CAML_BA_C_LAYOUT|CAML_BA_UINT8,1,data,&len); | ^~~~~~~~~~~~~~~~ image_c.c:71:23: error: 'BIGARRAY_UINT8' undeclared (first use in this function) 71 | #define CAML_BA_UINT8 BIGARRAY_UINT8 | ^~~~~~~~~~~~~~ image_c.c:114:54: note: in expansion of macro 'CAML_BA_UINT8' 114 | v = caml_ba_alloc(CAML_BA_MANAGED|CAML_BA_C_LAYOUT|CAML_BA_UINT8,1,data,&len); | ^~~~~~~~~~~~~ image_c.c: In function 'caml_rgb_of_YUV420': image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:469:22: note: in expansion of macro 'Caml_ba_data_val' 469 | unsigned char *y = Caml_ba_data_val(Field(y_val, 0)); | ^~~~~~~~~~~~~~~~ image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:472:22: note: in expansion of macro 'Caml_ba_data_val' 472 | unsigned char *u = Caml_ba_data_val(Field(uv_val, 0)); | ^~~~~~~~~~~~~~~~ image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:473:22: note: in expansion of macro 'Caml_ba_data_val' 473 | unsigned char *v = Caml_ba_data_val(Field(uv_val, 1)); | ^~~~~~~~~~~~~~~~ image_c.c: In function 'caml_yuv_blank': image_c.c:490:12: error: invalid use of undefined type 'struct caml_bigarray' 490 | memset(ba->data,0,ba->dim[0]); | ^~ image_c.c:490:23: error: invalid use of undefined type 'struct caml_bigarray' 490 | memset(ba->data,0,ba->dim[0]); | ^~ image_c.c: In function 'caml_rgb_to_YUV420': image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:501:22: note: in expansion of macro 'Caml_ba_data_val' 501 | unsigned char *y = Caml_ba_data_val(Field(tmp,0)); | ^~~~~~~~~~~~~~~~ image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:503:22: note: in expansion of macro 'Caml_ba_data_val' 503 | unsigned char *u = Caml_ba_data_val(Field(tmp,0)); | ^~~~~~~~~~~~~~~~ image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:504:22: note: in expansion of macro 'Caml_ba_data_val' 504 | unsigned char *v = Caml_ba_data_val(Field(tmp,1)); | ^~~~~~~~~~~~~~~~ image_c.c: In function 'caml_mm_RGBA8_to_Gray8': image_c.c:518:3: error: unknown type name 'uint8'; did you mean 'uint'? 518 | uint8 *gray = Caml_ba_data_val(_gray); | ^~~~~ | uint image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:518:17: note: in expansion of macro 'Caml_ba_data_val' 518 | uint8 *gray = Caml_ba_data_val(_gray); | ^~~~~~~~~~~~~~~~ In file included from /usr/lib64/ocaml/caml/alloc.h:20, from image_c.c:34: image_c.c: In function 'caml_rgb_to_bmp': /usr/lib64/ocaml/caml/mlvalues.h:365:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ image_c.c:839:10: note: in expansion of macro 'String_val' 839 | memcpy(String_val(ans), bmp, 122 + 4 * len); | ^~~~~~~~~~ In file included from image_c.c:44: /usr/include/string.h:43:39: note: expected 'void * restrict' but argument is of type 'const char *' 43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src, | ~~~~~~~~~~~~~~~~~^~~~~~ image_c.c: In function 'caml_image_to_rgb24': /usr/lib64/ocaml/caml/mlvalues.h:365:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 365 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ image_c.c:870:10: note: in expansion of macro 'String_val' 870 | memcpy(String_val(ans), bmp, 3 * len); | ^~~~~~~~~~ /usr/include/string.h:43:39: note: expected 'void * restrict' but argument is of type 'const char *' 43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src, | ~~~~~~~~~~~~~~~~~^~~~~~ image_c.c: In function 'caml_rgb_color_to_alpha': image_c.c:1347:10: warning: variable 'd' set but not used [-Wunused-but-set-variable] 1347 | double d; | ^ image_c.c:1346:22: warning: variable 'aa' set but not used [-Wunused-but-set-variable] 1346 | double rr, gg, bb, aa; | ^~ image_c.c: At top level: image_c.c:1399:57: error: unknown type name 'uint8'; did you mean 'uint'? 1399 | static inline int compare_images(int width, int height, uint8 *old, uint8 *new, int dx, int dy) | ^~~~~ | uint image_c.c:1399:69: error: unknown type name 'uint8'; did you mean 'uint'? 1399 | static inline int compare_images(int width, int height, uint8 *old, uint8 *new, int dx, int dy) | ^~~~~ | uint image_c.c: In function 'caml_mm_Gray8_motion_compute': image_c.c:1419:36: error: invalid use of undefined type 'struct caml_bigarray' 1419 | int len = Caml_ba_array_val(_new)->dim[0]; | ^~ image_c.c:1420:3: error: unknown type name 'uint8'; did you mean 'uint'? 1420 | uint8 *old = Caml_ba_data_val(_old); | ^~~~~ | uint image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:1420:16: note: in expansion of macro 'Caml_ba_data_val' 1420 | uint8 *old = Caml_ba_data_val(_old); | ^~~~~~~~~~~~~~~~ image_c.c:1421:3: error: unknown type name 'uint8'; did you mean 'uint'? 1421 | uint8 *new = Caml_ba_data_val(_new); | ^~~~~ | uint image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:1421:16: note: in expansion of macro 'Caml_ba_data_val' 1421 | uint8 *new = Caml_ba_data_val(_new); | ^~~~~~~~~~~~~~~~ image_c.c:1449:17: error: implicit declaration of function 'compare_images' [-Wimplicit-function-declaration] 1449 | s00 = compare_images(w, h, old, new, dx, dy); | ^~~~~~~~~~~~~~ image_c.c: At top level: image_c.c:1489:57: error: unknown type name 'uint8'; did you mean 'uint'? 1489 | static inline int compare_blocks(int width, int height, uint8 *old, uint8 *new, int bs, int x, int y, int dx, int dy) | ^~~~~ | uint image_c.c:1489:69: error: unknown type name 'uint8'; did you mean 'uint'? 1489 | static inline int compare_blocks(int width, int height, uint8 *old, uint8 *new, int bs, int x, int y, int dx, int dy) | ^~~~~ | uint image_c.c: In function 'caml_mm_RGBA8_draw_line': image_c.c:1518:3: error: unknown type name 'uint8'; did you mean 'uint'? 1518 | uint8 cr = Int_val(Field(c,0)); | ^~~~~ | uint image_c.c:1519:3: error: unknown type name 'uint8'; did you mean 'uint'? 1519 | uint8 cg = Int_val(Field(c,1)); | ^~~~~ | uint image_c.c:1520:3: error: unknown type name 'uint8'; did you mean 'uint'? 1520 | uint8 cb = Int_val(Field(c,2)); | ^~~~~ | uint image_c.c:1521:3: error: unknown type name 'uint8'; did you mean 'uint'? 1521 | uint8 ca = Int_val(Field(c,3)); | ^~~~~ | uint image_c.c: In function 'caml_mm_Gray8_motion_multi_compute': image_c.c:1577:36: error: invalid use of undefined type 'struct caml_bigarray' 1577 | int len = Caml_ba_array_val(_new)->dim[0]; | ^~ image_c.c:1578:3: error: unknown type name 'uint8'; did you mean 'uint'? 1578 | uint8 *old = Caml_ba_data_val(_old); | ^~~~~ | uint image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:1578:16: note: in expansion of macro 'Caml_ba_data_val' 1578 | uint8 *old = Caml_ba_data_val(_old); | ^~~~~~~~~~~~~~~~ image_c.c:1579:3: error: unknown type name 'uint8'; did you mean 'uint'? 1579 | uint8 *new = Caml_ba_data_val(_new); | ^~~~~ | uint image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:1579:16: note: in expansion of macro 'Caml_ba_data_val' 1579 | uint8 *new = Caml_ba_data_val(_new); | ^~~~~~~~~~~~~~~~ image_c.c:1618:23: error: implicit declaration of function 'compare_blocks' [-Wimplicit-function-declaration] 1618 | s00 = compare_blocks(w, h, old, new, bs, i*bs, j*bs, dx, dy); | ^~~~~~~~~~~~~~ image_c.c:72:25: error: 'BIGARRAY_MANAGED' undeclared (first use in this function) 72 | #define CAML_BA_MANAGED BIGARRAY_MANAGED | ^~~~~~~~~~~~~~~~ image_c.c:1654:29: note: in expansion of macro 'CAML_BA_MANAGED' 1654 | value ans = caml_ba_alloc(CAML_BA_MANAGED | CAML_BA_C_LAYOUT | CAML_BA_NATIVE_INT, 1, v, &vlen); | ^~~~~~~~~~~~~~~ image_c.c:70:26: error: 'BIGARRAY_C_LAYOUT' undeclared (first use in this function) 70 | #define CAML_BA_C_LAYOUT BIGARRAY_C_LAYOUT | ^~~~~~~~~~~~~~~~~ image_c.c:1654:47: note: in expansion of macro 'CAML_BA_C_LAYOUT' 1654 | value ans = caml_ba_alloc(CAML_BA_MANAGED | CAML_BA_C_LAYOUT | CAML_BA_NATIVE_INT, 1, v, &vlen); | ^~~~~~~~~~~~~~~~ image_c.c: In function 'caml_rgb_motion_multi_median_denoise': image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:1661:12: note: in expansion of macro 'Caml_ba_data_val' 1661 | int *v = Caml_ba_data_val(_v); | ^~~~~~~~~~~~~~~~ image_c.c:1662:34: error: invalid use of undefined type 'struct caml_bigarray' 1662 | int len = Caml_ba_array_val(_v)->dim[0] / 2; | ^~ image_c.c: In function 'caml_rgb_motion_multi_mean': image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:1693:12: note: in expansion of macro 'Caml_ba_data_val' 1693 | int *v = Caml_ba_data_val(_v); | ^~~~~~~~~~~~~~~~ image_c.c:1694:34: error: invalid use of undefined type 'struct caml_bigarray' 1694 | int len = Caml_ba_array_val(_v)->dim[0] / 2; | ^~ image_c.c: In function 'caml_rgb_motion_multi_arrows': image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:1780:12: note: in expansion of macro 'Caml_ba_data_val' 1780 | int *v = Caml_ba_data_val(_v); | ^~~~~~~~~~~~~~~~ image_c.c: In function 'caml_RGBA32_to_BGR32': image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:1809:24: note: in expansion of macro 'Caml_ba_data_val' 1809 | unsigned char *src = Caml_ba_data_val(_src); | ^~~~~~~~~~~~~~~~ image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:1810:24: note: in expansion of macro 'Caml_ba_data_val' 1810 | unsigned char *dst = Caml_ba_data_val(_dst); | ^~~~~~~~~~~~~~~~ image_c.c: In function 'caml_RGB24_to_RGBA32': image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:1850:24: note: in expansion of macro 'Caml_ba_data_val' 1850 | unsigned char *src = Caml_ba_data_val(_src); | ^~~~~~~~~~~~~~~~ image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:1851:24: note: in expansion of macro 'Caml_ba_data_val' 1851 | unsigned char *dst = Caml_ba_data_val(_dst); | ^~~~~~~~~~~~~~~~ image_c.c: In function 'caml_RGB32_to_RGBA32': image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:1875:24: note: in expansion of macro 'Caml_ba_data_val' 1875 | unsigned char *src = Caml_ba_data_val(_src); | ^~~~~~~~~~~~~~~~ image_c.c:68:50: error: invalid use of undefined type 'struct caml_bigarray' 68 | #define Caml_ba_data_val(v) (Caml_ba_array_val(v)->data) | ^~ image_c.c:1876:24: note: in expansion of macro 'Caml_ba_data_val' 1876 | unsigned char *dst = Caml_ba_data_val(_dst); | ^~~~~~~~~~~~~~~~ make[2]: *** [OCamlMakefile:1111: image_c.o] Error 2 make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/ocaml-mm-0.3.1-build/ocaml-mm-0.3.1/src' make[1]: *** [OCamlMakefile:781: byte-code-library] Error 2 make[1]: Leaving directory '/home/iurt/rpmbuild/BUILD/ocaml-mm-0.3.1-build/ocaml-mm-0.3.1/src' make: *** [Makefile:12: all] Error 2 error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.cwWc5q (%build) RPM build errors: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.cwWc5q (%build) I: [iurt_root_command] ERROR: chroot