Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/python-PyMuPDF.spec'], chrootPath='/var/lib/mock/f29-build-20191-10638/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/python-PyMuPDF.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/python-PyMuPDF-1.13.13-2.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/python-PyMuPDF.spec'], chrootPath='/var/lib/mock/f29-build-20191-10638/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/python-PyMuPDF.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ZrM8IE + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf PyMuPDF-1.13.13 + /usr/bin/gzip -dc /builddir/build/SOURCES/PyMuPDF-1.13.13.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd PyMuPDF-1.13.13 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/fix-library-linking.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.xPM8dH + umask 022 + cd /builddir/build/BUILD + cd PyMuPDF-1.13.13 + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' running build running build_py creating build creating build/lib.linux-riscv64-2.7 creating build/lib.linux-riscv64-2.7/fitz copying fitz/__init__.py -> build/lib.linux-riscv64-2.7/fitz copying fitz/fitz.py -> build/lib.linux-riscv64-2.7/fitz copying fitz/utils.py -> build/lib.linux-riscv64-2.7/fitz running build_ext building 'fitz._fitz' extension creating build/temp.linux-riscv64-2.7 creating build/temp.linux-riscv64-2.7/fitz gcc -pthread -fno-strict-aliasing -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/mupdf -I/usr/local/include/mupdf -I/usr/local/thirdparty/zlib -I/usr/include/python2.7 -c fitz/fitz_wrap.c -o build/temp.linux-riscv64-2.7/fitz/fitz_wrap.o BUILDSTDERR: fitz/fitz_wrap.c: In function 'page_merge': BUILDSTDERR: fitz/fitz_wrap.c:3304:40: warning: unused variable 'subt' [-Wunused-variable] BUILDSTDERR: pdf_obj *obj = NULL, *ref = NULL, *subt = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'merge_range': BUILDSTDERR: fitz/fitz_wrap.c:3379:26: warning: variable 'count' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int page, afterpage, count; BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'fontbuffer': BUILDSTDERR: fitz/fitz_wrap.c:3457:11: warning: variable 'ext' set but not used [-Wunused-but-set-variable] BUILDSTDERR: char *ext = ""; BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'fontextension': BUILDSTDERR: fitz/fitz_wrap.c:3529:39: warning: variable 'stream' set but not used [-Wunused-but-set-variable] BUILDSTDERR: pdf_obj *o, *obj = NULL, *desft, *stream = NULL; BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'JM_extract_stext_imageblock_as_dict': BUILDSTDERR: fitz/fitz_wrap.c:4194:45: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_BMP): strcpy(ext, "bmp"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4195:45: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_GIF): strcpy(ext, "gif"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4196:45: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JPEG): strcpy(ext, "jpeg"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4197:45: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JPX): strcpy(ext, "jpx"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4198:45: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JXR): strcpy(ext, "jxr"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4199:45: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_PNM): strcpy(ext, "pnm"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4200:45: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_TIFF): strcpy(ext, "tiff"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4201:45: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: default: strcpy(ext, "png"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4207:20: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcpy(ext, "png"); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4214:64: warning: pointer targets in passing argument 1 of 'PyString_FromString' differ in signedness [-Wpointer-sign] BUILDSTDERR: PyDict_SetItemString(dict, "ext", PyString_FromString(ext)); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/python2.7/Python.h:97, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/python2.7/stringobject.h:63:24: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: PyAPI_FUNC(PyObject *) PyString_FromString(const char *); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'JM_set_widget_properties': BUILDSTDERR: fitz/fitz_wrap.c:4545:9: warning: variable 'result' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int result = 0; BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4387:32: warning: unused variable 'text_col' [-Wunused-variable] BUILDSTDERR: pdf_obj *fill_col = NULL, *text_col = NULL, *border_col = NULL; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'JM_update_xobject_contents': BUILDSTDERR: fitz/fitz_wrap.c:4968:53: warning: passing argument 3 of 'fz_buffer_storage' from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: c_len = (size_t) fz_buffer_storage(ctx, buffer, &content_str); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:34:75: note: expected 'unsigned char **' but argument is of type 'char **' BUILDSTDERR: size_t fz_buffer_storage(fz_context *ctx, fz_buffer *buf, unsigned char **datap); BUILDSTDERR: ~~~~~~~~~~~~~~~~^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4969:31: warning: pointer targets in passing argument 2 of 'JM_deflatebuf' differ in signedness [-Wpointer-sign] BUILDSTDERR: nres = JM_deflatebuf(ctx, content_str, c_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3218:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: fz_buffer *JM_deflatebuf(fz_context *ctx, unsigned char *p, size_t n) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'JM_extend_contents': BUILDSTDERR: fitz/fitz_wrap.c:5079:54: warning: passing argument 3 of 'fz_buffer_storage' from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: c_len = (size_t) fz_buffer_storage(ctx, res, &content_str); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:34:75: note: expected 'unsigned char **' but argument is of type 'char **' BUILDSTDERR: size_t fz_buffer_storage(fz_context *ctx, fz_buffer *buf, unsigned char **datap); BUILDSTDERR: ~~~~~~~~~~~~~~~~^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5080:35: warning: pointer targets in passing argument 2 of 'JM_deflatebuf' differ in signedness [-Wpointer-sign] BUILDSTDERR: nres = JM_deflatebuf(ctx, content_str, c_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3218:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: fz_buffer *JM_deflatebuf(fz_context *ctx, unsigned char *p, size_t n) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'new_fz_document_s': BUILDSTDERR: fitz/fitz_wrap.c:5639:49: warning: pointer targets in passing argument 2 of 'fz_open_memory' differ in signedness [-Wpointer-sign] BUILDSTDERR: data = fz_open_memory(gctx, streamdata, streamlen); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:8, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/stream.h:59:12: note: expected 'const unsigned char *' but argument is of type 'char *' BUILDSTDERR: fz_stream *fz_open_memory(fz_context *ctx, const unsigned char *data, size_t len); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'fz_document_s_embeddedFileInfo': BUILDSTDERR: fitz/fitz_wrap.c:5892:19: warning: unused variable 'sname' [-Wunused-variable] BUILDSTDERR: char *sname = NULL; BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5889:24: warning: unused variable 'name_len' [-Wunused-variable] BUILDSTDERR: Py_ssize_t name_len = 0; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'fz_document_s_embeddedFileAdd': BUILDSTDERR: fitz/fitz_wrap.c:6006:61: warning: pointer targets in passing argument 2 of 'fz_new_buffer_from_shared_data' differ in signedness [-Wpointer-sign] BUILDSTDERR: data = fz_new_buffer_from_shared_data(gctx, buffdata, size); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:69:12: note: expected 'const unsigned char *' but argument is of type 'char *' BUILDSTDERR: fz_buffer *fz_new_buffer_from_shared_data(fz_context *ctx, const unsigned char *data, size_t size); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6010:28: warning: unused variable 'len' [-Wunused-variable] BUILDSTDERR: Py_ssize_t len = 0; BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'fz_document_s__getCharWidths': BUILDSTDERR: fitz/fitz_wrap.c:6339:30: warning: pointer targets in assignment from 'const unsigned char *' to 'const char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: data = fz_lookup_base14_font(gctx, bfname, &size); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:6342:74: warning: pointer targets in passing argument 3 of 'fz_new_font_from_memory' differ in signedness [-Wpointer-sign] BUILDSTDERR: font = fz_new_font_from_memory(gctx, bfname, data, size, 0, 0); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:40, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/font.h:410:10: note: expected 'const unsigned char *' but argument is of type 'const char *' BUILDSTDERR: fz_font *fz_new_font_from_memory(fz_context *ctx, const char *name, const unsigned char *data, int len, int index, int use_glyph_bbox); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6321:17: warning: unused variable 'cwlen' [-Wunused-variable] BUILDSTDERR: int cwlen = 0; BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'fz_document_s_extractFont': BUILDSTDERR: fitz/fitz_wrap.c:6436:24: warning: unused variable 'len' [-Wunused-variable] BUILDSTDERR: Py_ssize_t len = 0; BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'fz_document_s_extractImage': BUILDSTDERR: fitz/fitz_wrap.c:6516:57: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_BMP): strcpy(ext, "bmp"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6517:57: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_GIF): strcpy(ext, "gif"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6518:57: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JPEG): strcpy(ext, "jpeg"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6519:57: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JPX): strcpy(ext, "jpx"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6520:57: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JXR): strcpy(ext, "jxr"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6521:57: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_PNM): strcpy(ext, "pnm"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6522:57: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_TIFF): strcpy(ext, "tiff"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6523:57: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: default: strcpy(ext, "png"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6529:32: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcpy(ext, "png"); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python2.7/Python.h:19, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'fz_document_s__updateStream': BUILDSTDERR: fitz/fitz_wrap.c:6782:43: warning: pointer targets in passing argument 2 of 'JM_deflatebuf' differ in signedness [-Wpointer-sign] BUILDSTDERR: res = JM_deflatebuf(gctx, c, len); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3218:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: fz_buffer *JM_deflatebuf(fz_context *ctx, unsigned char *p, size_t n) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'fz_page_s_getSVGimage': BUILDSTDERR: fitz/fitz_wrap.c:6843:29: warning: unused variable 'seps' [-Wunused-variable] BUILDSTDERR: fz_separations *seps = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'fz_page_s_addLineAnnot': BUILDSTDERR: fitz/fitz_wrap.c:6883:31: warning: unused variable 'pdf' [-Wunused-variable] BUILDSTDERR: pdf_document *pdf = page->doc; BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'fz_page_s_insertImage': BUILDSTDERR: fitz/fitz_wrap.c:7421:64: warning: passing argument 2 of 'JM_CharFromBytesOrArray' from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: size_t streamlen = JM_CharFromBytesOrArray(stream, &streamdata); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3249:57: note: expected 'char **' but argument is of type 'unsigned char **' BUILDSTDERR: size_t JM_CharFromBytesOrArray(PyObject *stream, char **data) BUILDSTDERR: ~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:7517:34: warning: pointer targets in passing argument 3 of 'hexlify' differ in signedness [-Wpointer-sign] BUILDSTDERR: hexlify(16, md5, md5hex); // md5 as 32 hex bytes BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3151:6: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: void hexlify(int n, unsigned char *in, unsigned char *out) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7429:24: warning: unused variable 'name_len' [-Wunused-variable] BUILDSTDERR: Py_ssize_t name_len = 0; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7427:19: warning: unused variable 'cont' [-Wunused-variable] BUILDSTDERR: char *cont = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:7424:24: warning: unused variable 'c_len' [-Wunused-variable] BUILDSTDERR: Py_ssize_t c_len = 0; BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7418:24: warning: unused variable 'res' [-Wunused-variable] BUILDSTDERR: fz_buffer *res = NULL, *nres = NULL, *imgbuf = NULL; BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c:7416:29: warning: unused variable 'seps' [-Wunused-variable] BUILDSTDERR: fz_separations *seps = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'fz_page_s_insertFont': BUILDSTDERR: fitz/fitz_wrap.c:7557:22: warning: pointer targets in assignment from 'const unsigned char *' to 'const char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: data = fz_lookup_base14_font(gctx, fontname, &size); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7560:68: warning: pointer targets in passing argument 3 of 'fz_new_font_from_memory' differ in signedness [-Wpointer-sign] BUILDSTDERR: font = fz_new_font_from_memory(gctx, fontname, data, size, 0, 0); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:40, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/font.h:410:10: note: expected 'const unsigned char *' but argument is of type 'const char *' BUILDSTDERR: fz_font *fz_new_font_from_memory(fz_context *ctx, const char *name, const unsigned char *data, int len, int index, int use_glyph_bbox); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7576:68: warning: pointer targets in passing argument 3 of 'fz_new_font_from_memory' differ in signedness [-Wpointer-sign] BUILDSTDERR: font = fz_new_font_from_memory(gctx, NULL, data, size, idx, 0); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:40, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/font.h:410:10: note: expected 'const unsigned char *' but argument is of type 'const char *' BUILDSTDERR: fz_font *fz_new_font_from_memory(fz_context *ctx, const char *name, const unsigned char *data, int len, int index, int use_glyph_bbox); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7597:27: warning: unused variable 'idxo' [-Wunused-variable] BUILDSTDERR: PyObject *idxo = PyInt_FromLong((long) idx); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'new_fz_pixmap_s__SWIG_4': BUILDSTDERR: fitz/fitz_wrap.c:8010:83: warning: pointer targets in passing argument 8 of 'fz_new_pixmap_with_data' differ in signedness [-Wpointer-sign] BUILDSTDERR: pm = fz_new_pixmap_with_data(gctx, cs, w, h, seps, alpha, stride, data); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:35, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/pixmap.h:111:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: fz_pixmap *fz_new_pixmap_with_data(fz_context *ctx, fz_colorspace *colorspace, int w, int h, fz_separations *seps, int alpha, int stride, unsigned char *samples); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'new_fz_pixmap_s__SWIG_6': BUILDSTDERR: fitz/fitz_wrap.c:8038:31: warning: pointer targets in passing argument 2 of 'fz_new_buffer_from_shared_data' differ in signedness [-Wpointer-sign] BUILDSTDERR: streamdata, size); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:69:12: note: expected 'const unsigned char *' but argument is of type 'char *' BUILDSTDERR: fz_buffer *fz_new_buffer_from_shared_data(fz_context *ctx, const unsigned char *data, size_t size); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'fz_pixmap_s_setAlpha': BUILDSTDERR: fitz/fitz_wrap.c:8155:69: warning: passing argument 2 of 'JM_CharFromBytesOrArray' from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: data_len = JM_CharFromBytesOrArray(alphavalues, &data); BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3249:57: note: expected 'char **' but argument is of type 'unsigned char **' BUILDSTDERR: size_t JM_CharFromBytesOrArray(PyObject *stream, char **data) BUILDSTDERR: ~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'fz_annot_s__setAP': BUILDSTDERR: fitz/fitz_wrap.c:8459:43: warning: pointer targets in passing argument 2 of 'JM_deflatebuf' differ in signedness [-Wpointer-sign] BUILDSTDERR: res = JM_deflatebuf(gctx, c, len); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3218:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: fz_buffer *JM_deflatebuf(fz_context *ctx, unsigned char *p, size_t n) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'fz_annot_s_fileUpd': BUILDSTDERR: fitz/fitz_wrap.c:8856:43: warning: pointer targets in passing argument 2 of 'JM_deflatebuf' differ in signedness [-Wpointer-sign] BUILDSTDERR: res = JM_deflatebuf(gctx, data, size); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:3218:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: fz_buffer *JM_deflatebuf(fz_context *ctx, unsigned char *p, size_t n) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function 'fz_annot_s__updateWidget': BUILDSTDERR: fitz/fitz_wrap.c:9162:27: warning: unused variable 'pdf' [-Wunused-variable] BUILDSTDERR: pdf_document *pdf = pdf_get_bound_document(gctx, annot->obj); BUILDSTDERR: ^~~ gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection build/temp.linux-riscv64-2.7/fitz/fitz_wrap.o -L/usr/lib64 -lmupdf -lmupdfthird -ljbig2dec -lopenjp2 -ljpeg -lfreetype -lharfbuzz -lpython2.7 -o build/lib.linux-riscv64-2.7/fitz/_fitz.so + sleep 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build/lib.linux-riscv64-3.7 creating build/lib.linux-riscv64-3.7/fitz copying fitz/__init__.py -> build/lib.linux-riscv64-3.7/fitz copying fitz/fitz.py -> build/lib.linux-riscv64-3.7/fitz copying fitz/utils.py -> build/lib.linux-riscv64-3.7/fitz running build_ext building 'fitz._fitz' extension creating build/temp.linux-riscv64-3.7 creating build/temp.linux-riscv64-3.7/fitz gcc -pthread -DNDEBUG -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/mupdf -I/usr/local/include/mupdf -I/usr/local/thirdparty/zlib -I/usr/include/python3.7m -c fitz/fitz_wrap.c -o build/temp.linux-riscv64-3.7/fitz/fitz_wrap.o BUILDSTDERR: fitz/fitz_wrap.c: In function ‘page_merge’: BUILDSTDERR: fitz/fitz_wrap.c:3304:40: warning: unused variable ‘subt’ [-Wunused-variable] BUILDSTDERR: pdf_obj *obj = NULL, *ref = NULL, *subt = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘merge_range’: BUILDSTDERR: fitz/fitz_wrap.c:3379:26: warning: variable ‘count’ set but not used [-Wunused-but-set-variable] BUILDSTDERR: int page, afterpage, count; BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fontbuffer’: BUILDSTDERR: fitz/fitz_wrap.c:3457:11: warning: variable ‘ext’ set but not used [-Wunused-but-set-variable] BUILDSTDERR: char *ext = ""; BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fontextension’: BUILDSTDERR: fitz/fitz_wrap.c:3529:39: warning: variable ‘stream’ set but not used [-Wunused-but-set-variable] BUILDSTDERR: pdf_obj *o, *obj = NULL, *desft, *stream = NULL; BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_extract_stext_imageblock_as_dict’: BUILDSTDERR: fitz/fitz_wrap.c:4194:45: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_BMP): strcpy(ext, "bmp"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4195:45: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_GIF): strcpy(ext, "gif"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4196:45: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JPEG): strcpy(ext, "jpeg"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4197:45: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JPX): strcpy(ext, "jpx"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4198:45: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JXR): strcpy(ext, "jxr"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4199:45: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_PNM): strcpy(ext, "pnm"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4200:45: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_TIFF): strcpy(ext, "tiff"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4201:45: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: default: strcpy(ext, "png"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4207:20: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: strcpy(ext, "png"); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4214:64: warning: pointer targets in passing argument 1 of ‘PyUnicode_FromString’ differ in signedness [-Wpointer-sign] BUILDSTDERR: PyDict_SetItemString(dict, "ext", PyString_FromString(ext)); BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c:751:53: note: in definition of macro ‘PyString_FromString’ BUILDSTDERR: #define PyString_FromString(x) PyUnicode_FromString(x) BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/python3.7m/Python.h:80, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/python3.7m/unicodeobject.h:702:23: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ BUILDSTDERR: PyAPI_FUNC(PyObject*) PyUnicode_FromString( BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_set_widget_properties’: BUILDSTDERR: fitz/fitz_wrap.c:4545:9: warning: variable ‘result’ set but not used [-Wunused-but-set-variable] BUILDSTDERR: int result = 0; BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4387:32: warning: unused variable ‘text_col’ [-Wunused-variable] BUILDSTDERR: pdf_obj *fill_col = NULL, *text_col = NULL, *border_col = NULL; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_update_xobject_contents’: BUILDSTDERR: fitz/fitz_wrap.c:4968:53: warning: passing argument 3 of ‘fz_buffer_storage’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: c_len = (size_t) fz_buffer_storage(ctx, buffer, &content_str); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:34:75: note: expected ‘unsigned char **’ but argument is of type ‘char **’ BUILDSTDERR: size_t fz_buffer_storage(fz_context *ctx, fz_buffer *buf, unsigned char **datap); BUILDSTDERR: ~~~~~~~~~~~~~~~~^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:4969:31: warning: pointer targets in passing argument 2 of ‘JM_deflatebuf’ differ in signedness [-Wpointer-sign] BUILDSTDERR: nres = JM_deflatebuf(ctx, content_str, c_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3218:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: fz_buffer *JM_deflatebuf(fz_context *ctx, unsigned char *p, size_t n) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘JM_extend_contents’: BUILDSTDERR: fitz/fitz_wrap.c:5079:54: warning: passing argument 3 of ‘fz_buffer_storage’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: c_len = (size_t) fz_buffer_storage(ctx, res, &content_str); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:34:75: note: expected ‘unsigned char **’ but argument is of type ‘char **’ BUILDSTDERR: size_t fz_buffer_storage(fz_context *ctx, fz_buffer *buf, unsigned char **datap); BUILDSTDERR: ~~~~~~~~~~~~~~~~^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5080:35: warning: pointer targets in passing argument 2 of ‘JM_deflatebuf’ differ in signedness [-Wpointer-sign] BUILDSTDERR: nres = JM_deflatebuf(ctx, content_str, c_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3218:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: fz_buffer *JM_deflatebuf(fz_context *ctx, unsigned char *p, size_t n) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘new_fz_document_s’: BUILDSTDERR: fitz/fitz_wrap.c:5639:49: warning: pointer targets in passing argument 2 of ‘fz_open_memory’ differ in signedness [-Wpointer-sign] BUILDSTDERR: data = fz_open_memory(gctx, streamdata, streamlen); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:8, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/stream.h:59:12: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: fz_stream *fz_open_memory(fz_context *ctx, const unsigned char *data, size_t len); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s_embeddedFileInfo’: BUILDSTDERR: fitz/fitz_wrap.c:5892:19: warning: unused variable ‘sname’ [-Wunused-variable] BUILDSTDERR: char *sname = NULL; BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:5889:24: warning: unused variable ‘name_len’ [-Wunused-variable] BUILDSTDERR: Py_ssize_t name_len = 0; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s_embeddedFileAdd’: BUILDSTDERR: fitz/fitz_wrap.c:6006:61: warning: pointer targets in passing argument 2 of ‘fz_new_buffer_from_shared_data’ differ in signedness [-Wpointer-sign] BUILDSTDERR: data = fz_new_buffer_from_shared_data(gctx, buffdata, size); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:69:12: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: fz_buffer *fz_new_buffer_from_shared_data(fz_context *ctx, const unsigned char *data, size_t size); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6010:28: warning: unused variable ‘len’ [-Wunused-variable] BUILDSTDERR: Py_ssize_t len = 0; BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s__getCharWidths’: BUILDSTDERR: fitz/fitz_wrap.c:6339:30: warning: pointer targets in assignment from ‘const unsigned char *’ to ‘const char *’ differ in signedness [-Wpointer-sign] BUILDSTDERR: data = fz_lookup_base14_font(gctx, bfname, &size); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:6342:74: warning: pointer targets in passing argument 3 of ‘fz_new_font_from_memory’ differ in signedness [-Wpointer-sign] BUILDSTDERR: font = fz_new_font_from_memory(gctx, bfname, data, size, 0, 0); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:40, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/font.h:410:10: note: expected ‘const unsigned char *’ but argument is of type ‘const char *’ BUILDSTDERR: fz_font *fz_new_font_from_memory(fz_context *ctx, const char *name, const unsigned char *data, int len, int index, int use_glyph_bbox); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6321:17: warning: unused variable ‘cwlen’ [-Wunused-variable] BUILDSTDERR: int cwlen = 0; BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s_extractFont’: BUILDSTDERR: fitz/fitz_wrap.c:6436:24: warning: unused variable ‘len’ [-Wunused-variable] BUILDSTDERR: Py_ssize_t len = 0; BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s_extractImage’: BUILDSTDERR: fitz/fitz_wrap.c:6516:57: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_BMP): strcpy(ext, "bmp"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6517:57: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_GIF): strcpy(ext, "gif"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6518:57: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JPEG): strcpy(ext, "jpeg"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6519:57: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JPX): strcpy(ext, "jpx"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6520:57: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_JXR): strcpy(ext, "jxr"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6521:57: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_PNM): strcpy(ext, "pnm"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6522:57: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: case(FZ_IMAGE_TIFF): strcpy(ext, "tiff"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6523:57: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: default: strcpy(ext, "png"); break; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:6529:32: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] BUILDSTDERR: strcpy(ext, "png"); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/limits.h:26, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:194, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/syslimits.h:7, BUILDSTDERR: from /usr/lib/gcc/riscv64-redhat-linux/8/include/limits.h:34, BUILDSTDERR: from /usr/include/python3.7m/Python.h:11, BUILDSTDERR: from fitz/fitz_wrap.c:149: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_document_s__updateStream’: BUILDSTDERR: fitz/fitz_wrap.c:6782:43: warning: pointer targets in passing argument 2 of ‘JM_deflatebuf’ differ in signedness [-Wpointer-sign] BUILDSTDERR: res = JM_deflatebuf(gctx, c, len); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3218:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: fz_buffer *JM_deflatebuf(fz_context *ctx, unsigned char *p, size_t n) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_getSVGimage’: BUILDSTDERR: fitz/fitz_wrap.c:6843:29: warning: unused variable ‘seps’ [-Wunused-variable] BUILDSTDERR: fz_separations *seps = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_addLineAnnot’: BUILDSTDERR: fitz/fitz_wrap.c:6883:31: warning: unused variable ‘pdf’ [-Wunused-variable] BUILDSTDERR: pdf_document *pdf = page->doc; BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_insertImage’: BUILDSTDERR: fitz/fitz_wrap.c:7421:64: warning: passing argument 2 of ‘JM_CharFromBytesOrArray’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: size_t streamlen = JM_CharFromBytesOrArray(stream, &streamdata); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3249:57: note: expected ‘char **’ but argument is of type ‘unsigned char **’ BUILDSTDERR: size_t JM_CharFromBytesOrArray(PyObject *stream, char **data) BUILDSTDERR: ~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c:7517:34: warning: pointer targets in passing argument 3 of ‘hexlify’ differ in signedness [-Wpointer-sign] BUILDSTDERR: hexlify(16, md5, md5hex); // md5 as 32 hex bytes BUILDSTDERR: ^~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3151:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: void hexlify(int n, unsigned char *in, unsigned char *out) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7429:24: warning: unused variable ‘name_len’ [-Wunused-variable] BUILDSTDERR: Py_ssize_t name_len = 0; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7427:19: warning: unused variable ‘cont’ [-Wunused-variable] BUILDSTDERR: char *cont = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:7424:24: warning: unused variable ‘c_len’ [-Wunused-variable] BUILDSTDERR: Py_ssize_t c_len = 0; BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7418:24: warning: unused variable ‘res’ [-Wunused-variable] BUILDSTDERR: fz_buffer *res = NULL, *nres = NULL, *imgbuf = NULL; BUILDSTDERR: ^~~ BUILDSTDERR: fitz/fitz_wrap.c:7416:29: warning: unused variable ‘seps’ [-Wunused-variable] BUILDSTDERR: fz_separations *seps = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_page_s_insertFont’: BUILDSTDERR: fitz/fitz_wrap.c:7557:22: warning: pointer targets in assignment from ‘const unsigned char *’ to ‘const char *’ differ in signedness [-Wpointer-sign] BUILDSTDERR: data = fz_lookup_base14_font(gctx, fontname, &size); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:7560:68: warning: pointer targets in passing argument 3 of ‘fz_new_font_from_memory’ differ in signedness [-Wpointer-sign] BUILDSTDERR: font = fz_new_font_from_memory(gctx, fontname, data, size, 0, 0); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:40, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/font.h:410:10: note: expected ‘const unsigned char *’ but argument is of type ‘const char *’ BUILDSTDERR: fz_font *fz_new_font_from_memory(fz_context *ctx, const char *name, const unsigned char *data, int len, int index, int use_glyph_bbox); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7576:68: warning: pointer targets in passing argument 3 of ‘fz_new_font_from_memory’ differ in signedness [-Wpointer-sign] BUILDSTDERR: font = fz_new_font_from_memory(gctx, NULL, data, size, idx, 0); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:40, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/font.h:410:10: note: expected ‘const unsigned char *’ but argument is of type ‘const char *’ BUILDSTDERR: fz_font *fz_new_font_from_memory(fz_context *ctx, const char *name, const unsigned char *data, int len, int index, int use_glyph_bbox); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c:7597:27: warning: unused variable ‘idxo’ [-Wunused-variable] BUILDSTDERR: PyObject *idxo = PyInt_FromLong((long) idx); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘new_fz_pixmap_s__SWIG_4’: BUILDSTDERR: fitz/fitz_wrap.c:8010:83: warning: pointer targets in passing argument 8 of ‘fz_new_pixmap_with_data’ differ in signedness [-Wpointer-sign] BUILDSTDERR: pm = fz_new_pixmap_with_data(gctx, cs, w, h, seps, alpha, stride, data); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz.h:35, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/pixmap.h:111:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: fz_pixmap *fz_new_pixmap_with_data(fz_context *ctx, fz_colorspace *colorspace, int w, int h, fz_separations *seps, int alpha, int stride, unsigned char *samples); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘new_fz_pixmap_s__SWIG_6’: BUILDSTDERR: fitz/fitz_wrap.c:8038:31: warning: pointer targets in passing argument 2 of ‘fz_new_buffer_from_shared_data’ differ in signedness [-Wpointer-sign] BUILDSTDERR: streamdata, size); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/mupdf/fitz/output.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz/hash.h:6, BUILDSTDERR: from /usr/include/mupdf/fitz.h:16, BUILDSTDERR: from fitz/fitz_wrap.c:3065: BUILDSTDERR: /usr/include/mupdf/fitz/buffer.h:69:12: note: expected ‘const unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: fz_buffer *fz_new_buffer_from_shared_data(fz_context *ctx, const unsigned char *data, size_t size); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_pixmap_s_setAlpha’: BUILDSTDERR: fitz/fitz_wrap.c:8155:69: warning: passing argument 2 of ‘JM_CharFromBytesOrArray’ from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: data_len = JM_CharFromBytesOrArray(alphavalues, &data); BUILDSTDERR: ^~~~~ BUILDSTDERR: fitz/fitz_wrap.c:3249:57: note: expected ‘char **’ but argument is of type ‘unsigned char **’ BUILDSTDERR: size_t JM_CharFromBytesOrArray(PyObject *stream, char **data) BUILDSTDERR: ~~~~~~~^~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s__setAP’: BUILDSTDERR: fitz/fitz_wrap.c:8459:43: warning: pointer targets in passing argument 2 of ‘JM_deflatebuf’ differ in signedness [-Wpointer-sign] BUILDSTDERR: res = JM_deflatebuf(gctx, c, len); BUILDSTDERR: ^ BUILDSTDERR: fitz/fitz_wrap.c:3218:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: fz_buffer *JM_deflatebuf(fz_context *ctx, unsigned char *p, size_t n) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s_fileUpd’: BUILDSTDERR: fitz/fitz_wrap.c:8856:43: warning: pointer targets in passing argument 2 of ‘JM_deflatebuf’ differ in signedness [-Wpointer-sign] BUILDSTDERR: res = JM_deflatebuf(gctx, data, size); BUILDSTDERR: ^~~~ BUILDSTDERR: fitz/fitz_wrap.c:3218:12: note: expected ‘unsigned char *’ but argument is of type ‘char *’ BUILDSTDERR: fz_buffer *JM_deflatebuf(fz_context *ctx, unsigned char *p, size_t n) BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fitz/fitz_wrap.c: In function ‘fz_annot_s__updateWidget’: BUILDSTDERR: fitz/fitz_wrap.c:9162:27: warning: unused variable ‘pdf’ [-Wunused-variable] BUILDSTDERR: pdf_document *pdf = pdf_get_bound_document(gctx, annot->obj); BUILDSTDERR: ^~~ gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection build/temp.linux-riscv64-3.7/fitz/fitz_wrap.o -L/usr/lib64 -lmupdf -lmupdfthird -ljbig2dec -lopenjp2 -ljpeg -lfreetype -lharfbuzz -lpython3.7m -o build/lib.linux-riscv64-3.7/fitz/_fitz.cpython-37m-riscv64-linux-gnu.so + sleep 1 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.57q7rx + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64 + cd PyMuPDF-1.13.13 + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64 running install running install_lib creating /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr creating /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64 creating /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python2.7 creating /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python2.7/site-packages creating /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python2.7/site-packages/fitz copying build/lib.linux-riscv64-2.7/fitz/_fitz.so -> /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python2.7/site-packages/fitz copying build/lib.linux-riscv64-2.7/fitz/fitz.py -> /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python2.7/site-packages/fitz copying build/lib.linux-riscv64-2.7/fitz/utils.py -> /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python2.7/site-packages/fitz copying build/lib.linux-riscv64-2.7/fitz/__init__.py -> /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python2.7/site-packages/fitz byte-compiling /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python2.7/site-packages/fitz/fitz.py to fitz.pyc byte-compiling /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python2.7/site-packages/fitz/utils.py to utils.pyc byte-compiling /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python2.7/site-packages/fitz/__init__.py to __init__.pyc writing byte-compilation script '/tmp/tmp0TjxX4.py' /usr/bin/python2 -O /tmp/tmp0TjxX4.py removing /tmp/tmp0TjxX4.py running install_egg_info Writing /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python2.7/site-packages/PyMuPDF-1.13.12-py2.7.egg-info + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64 running install running install_lib creating /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python3.7 creating /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python3.7/site-packages creating /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python3.7/site-packages/fitz copying build/lib.linux-riscv64-3.7/fitz/_fitz.cpython-37m-riscv64-linux-gnu.so -> /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python3.7/site-packages/fitz copying build/lib.linux-riscv64-3.7/fitz/fitz.py -> /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python3.7/site-packages/fitz copying build/lib.linux-riscv64-3.7/fitz/utils.py -> /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python3.7/site-packages/fitz copying build/lib.linux-riscv64-3.7/fitz/__init__.py -> /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python3.7/site-packages/fitz byte-compiling /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python3.7/site-packages/fitz/fitz.py to fitz.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python3.7/site-packages/fitz/utils.py to utils.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python3.7/site-packages/fitz/__init__.py to __init__.cpython-37.pyc writing byte-compilation script '/tmp/tmp4lqsqqeo.py' /usr/bin/python3 /tmp/tmp4lqsqqeo.py removing /tmp/tmp4lqsqqeo.py running install_egg_info Writing /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python3.7/site-packages/PyMuPDF-1.13.12-py3.7.egg-info + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 1.13.13-2.fc29 --unique-debug-suffix -1.13.13-2.fc29.riscv64 --unique-debug-src-base python-PyMuPDF-1.13.13-2.fc29.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/PyMuPDF-1.13.13 extracting debug info from /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python3.7/site-packages/fitz/_fitz.cpython-37m-riscv64-linux-gnu.so extracting debug info from /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python2.7/site-packages/fitz/_fitz.so /usr/lib/rpm/sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. BUILDSTDERR: 1463 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig BUILDSTDERR: /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-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1 Bytecompiling .py files below /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib/debug/usr/lib64/python2.7 using /usr/bin/python2.7 Bytecompiling .py files below /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib/debug/usr/lib64/python3.7 using /usr/bin/python3.7 Bytecompiling .py files below /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python2.7 using /usr/bin/python2.7 Bytecompiling .py files below /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/lib64/python3.7 using /usr/bin/python3.7 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: python2-PyMuPDF-1.13.13-2.fc29.riscv64 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.kcphFe + umask 022 + cd /builddir/build/BUILD + cd PyMuPDF-1.13.13 + LICENSEDIR=/builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/share/licenses/python2-PyMuPDF + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/share/licenses/python2-PyMuPDF + cp -pr COPYING /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/share/licenses/python2-PyMuPDF + cp -pr 'GNU AFFERO GPL V3' /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/share/licenses/python2-PyMuPDF + exit 0 Provides: python-PyMuPDF = 1.13.13-2.fc29 python-PyMuPDF(riscv-64) = 1.13.13-2.fc29 python2-PyMuPDF = 1.13.13-2.fc29 python2-PyMuPDF(riscv-64) = 1.13.13-2.fc29 python2.7dist(pymupdf) = 1.13.12 python2dist(pymupdf) = 1.13.12 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libfreetype.so.6()(64bit) libharfbuzz.so.0()(64bit) libjbig2dec.so.0()(64bit) libjpeg.so.62()(64bit) libjpeg.so.62(LIBJPEG_6.2)(64bit) libopenjp2.so.7()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.27)(64bit) libpython2.7.so.1.0()(64bit) python(abi) = 2.7 rtld(GNU_HASH) Obsoletes: python-PyMuPDF < 1.13.13-2.fc29 Processing files: python3-PyMuPDF-1.13.13-2.fc29.riscv64 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.8wX7FY + umask 022 + cd /builddir/build/BUILD + cd PyMuPDF-1.13.13 + LICENSEDIR=/builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/share/licenses/python3-PyMuPDF + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/share/licenses/python3-PyMuPDF + cp -pr COPYING /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/share/licenses/python3-PyMuPDF + cp -pr 'GNU AFFERO GPL V3' /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/share/licenses/python3-PyMuPDF + exit 0 Provides: python3-PyMuPDF = 1.13.13-2.fc29 python3-PyMuPDF(riscv-64) = 1.13.13-2.fc29 python3.7dist(pymupdf) = 1.13.12 python3dist(pymupdf) = 1.13.12 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libfreetype.so.6()(64bit) libharfbuzz.so.0()(64bit) libjbig2dec.so.0()(64bit) libjpeg.so.62()(64bit) libjpeg.so.62(LIBJPEG_6.2)(64bit) libopenjp2.so.7()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.27)(64bit) libpython3.7m.so.1.0()(64bit) python(abi) = 3.7 rtld(GNU_HASH) Processing files: python-PyMuPDF-doc-1.13.13-2.fc29.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.TbC79z + umask 022 + cd /builddir/build/BUILD + cd PyMuPDF-1.13.13 + DOCDIR=/builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/share/doc/python-PyMuPDF-doc + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/share/doc/python-PyMuPDF-doc + cp -pr demo /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/share/doc/python-PyMuPDF-doc + cp -pr doc/PyMuPDF.pdf /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/share/doc/python-PyMuPDF-doc + cp -pr examples /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/share/doc/python-PyMuPDF-doc + cp -pr README.md /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64/usr/share/doc/python-PyMuPDF-doc + exit 0 Provides: python-PyMuPDF-doc = 1.13.13-2.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: python-PyMuPDF-debugsource-1.13.13-2.fc29.riscv64 Provides: python-PyMuPDF-debugsource = 1.13.13-2.fc29 python-PyMuPDF-debugsource(riscv-64) = 1.13.13-2.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: python-PyMuPDF-debuginfo-1.13.13-2.fc29.riscv64 Provides: python-PyMuPDF-debuginfo = 1.13.13-2.fc29 python-PyMuPDF-debuginfo(riscv-64) = 1.13.13-2.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: python-PyMuPDF-debugsource(riscv-64) = 1.13.13-2.fc29 Processing files: python2-PyMuPDF-debuginfo-1.13.13-2.fc29.riscv64 Provides: debuginfo(build-id) = c1d5c48f9f0c4907101732745717bdce53572234 python2-PyMuPDF-debuginfo = 1.13.13-2.fc29 python2-PyMuPDF-debuginfo(riscv-64) = 1.13.13-2.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: python-PyMuPDF-debugsource(riscv-64) = 1.13.13-2.fc29 Processing files: python3-PyMuPDF-debuginfo-1.13.13-2.fc29.riscv64 Provides: debuginfo(build-id) = d108b97531a5c0c73b04cc5a91e1cb3b81238d20 python3-PyMuPDF-debuginfo = 1.13.13-2.fc29 python3-PyMuPDF-debuginfo(riscv-64) = 1.13.13-2.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: python-PyMuPDF-debugsource(riscv-64) = 1.13.13-2.fc29 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64 Wrote: /builddir/build/RPMS/python2-PyMuPDF-1.13.13-2.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/python3-PyMuPDF-1.13.13-2.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/python-PyMuPDF-doc-1.13.13-2.fc29.noarch.rpm Wrote: /builddir/build/RPMS/python-PyMuPDF-debugsource-1.13.13-2.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/python-PyMuPDF-debuginfo-1.13.13-2.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/python2-PyMuPDF-debuginfo-1.13.13-2.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/python3-PyMuPDF-debuginfo-1.13.13-2.fc29.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.P0k3N6 + umask 022 + cd /builddir/build/BUILD + cd PyMuPDF-1.13.13 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-PyMuPDF-1.13.13-2.fc29.riscv64 + exit 0 Child return code was: 0