Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/python-PyMuPDF.spec'], chrootPath='/var/lib/mock/f38-build-682939-79012/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': 'C.UTF-8'}shell=Falselogger=timeout=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=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': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674172800 Wrote: /builddir/build/SRPMS/python-PyMuPDF-1.21.1-5.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/python-PyMuPDF.spec'], chrootPath='/var/lib/mock/f38-build-682939-79012/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': 'C.UTF-8'}shell=Falselogger=timeout=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=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': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674172800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.JVzIcX + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf PyMuPDF-1.21.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/PyMuPDF-1.21.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd PyMuPDF-1.21.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-fix-FTBFS-against-system-mupdf.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + sed -ie '/or '\''install'\'' in sys.argv/d' setup.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.MLZwHy + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd PyMuPDF-1.21.1 + export PYMUPDF_SETUP_MUPDF_BUILD= + PYMUPDF_SETUP_MUPDF_BUILD= + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' PyMuPDF-1.21.1/setup.py: sys.argv: ['setup.py', 'build', '--executable=/usr/bin/python3 -sP'] PyMuPDF-1.21.1/setup.py: os.getcwd(): /builddir/build/BUILD/PyMuPDF-1.21.1 PyMuPDF-1.21.1/setup.py: __file__: /builddir/build/BUILD/PyMuPDF-1.21.1/setup.py PyMuPDF-1.21.1/setup.py: $PYTHON_ARCH: None PyMuPDF-1.21.1/setup.py: os.environ (43): PyMuPDF-1.21.1/setup.py: CFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer PyMuPDF-1.21.1/setup.py: LDFLAGS: -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes PyMuPDF-1.21.1/setup.py: SHELL: /bin/bash PyMuPDF-1.21.1/setup.py: RPM_SOURCE_DIR: /builddir/build/SOURCES PyMuPDF-1.21.1/setup.py: HISTCONTROL: ignoredups PyMuPDF-1.21.1/setup.py: PKG_CONFIG_PATH: :/usr/lib64/pkgconfig:/usr/share/pkgconfig PyMuPDF-1.21.1/setup.py: HOSTNAME: unmatchedbuild08 PyMuPDF-1.21.1/setup.py: HISTSIZE: 1000 PyMuPDF-1.21.1/setup.py: FFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules PyMuPDF-1.21.1/setup.py: PWD: /builddir/build/BUILD/PyMuPDF-1.21.1 PyMuPDF-1.21.1/setup.py: SOURCE_DATE_EPOCH: 1674172800 PyMuPDF-1.21.1/setup.py: LOGNAME: mockbuild PyMuPDF-1.21.1/setup.py: CXX: g++ PyMuPDF-1.21.1/setup.py: CXXFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer PyMuPDF-1.21.1/setup.py: RPM_ARCH: riscv64 PyMuPDF-1.21.1/setup.py: HOME: /builddir PyMuPDF-1.21.1/setup.py: LANG: C PyMuPDF-1.21.1/setup.py: RPM_LD_FLAGS: -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes PyMuPDF-1.21.1/setup.py: PROMPT_COMMAND: printf "\033]0;\007" PyMuPDF-1.21.1/setup.py: PYMUPDF_SETUP_MUPDF_BUILD: PyMuPDF-1.21.1/setup.py: RPM_PACKAGE_RELEASE: 5.fc38 PyMuPDF-1.21.1/setup.py: RPM_OS: linux PyMuPDF-1.21.1/setup.py: LT_SYS_LIBRARY_PATH: /usr/lib64: PyMuPDF-1.21.1/setup.py: FCFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules PyMuPDF-1.21.1/setup.py: TERM: vt100 PyMuPDF-1.21.1/setup.py: USER: mockbuild PyMuPDF-1.21.1/setup.py: SHLVL: 1 PyMuPDF-1.21.1/setup.py: RPM_BUILD_DIR: /builddir/build/BUILD PyMuPDF-1.21.1/setup.py: RPM_OPT_FLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer PyMuPDF-1.21.1/setup.py: VALAFLAGS: -g PyMuPDF-1.21.1/setup.py: RPM_DOC_DIR: /usr/share/doc PyMuPDF-1.21.1/setup.py: RPM_PACKAGE_VERSION: 1.21.1 PyMuPDF-1.21.1/setup.py: DEBUGINFOD_URLS: https://debuginfod.fedoraproject.org/ PyMuPDF-1.21.1/setup.py: CONFIG_SITE: NONE PyMuPDF-1.21.1/setup.py: PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin PyMuPDF-1.21.1/setup.py: CC: gcc PyMuPDF-1.21.1/setup.py: MAIL: /var/spool/mail/mockbuild PyMuPDF-1.21.1/setup.py: RPM_BUILD_NCPUS: 4 PyMuPDF-1.21.1/setup.py: RPM_PACKAGE_NAME: python-PyMuPDF PyMuPDF-1.21.1/setup.py: RPM_BUILD_ROOT: /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-5.fc38.riscv64 PyMuPDF-1.21.1/setup.py: OLDPWD: /builddir/build/BUILD PyMuPDF-1.21.1/setup.py: _: /usr/bin/python3 PyMuPDF-1.21.1/setup.py: LC_CTYPE: C.UTF-8 PyMuPDF-1.21.1/setup.py: platform.system()='Linux' PyMuPDF-1.21.1/setup.py: sys.platform='linux' PyMuPDF-1.21.1/setup.py: PYMUPDF_SETUP_MUPDF_BUILD="", using system mupdf PyMuPDF-1.21.1/setup.py: mupdf_local=None PyMuPDF-1.21.1/setup.py: Using system mupdf. PyMuPDF-1.21.1/setup.py: include_dirs=['/usr/include/mupdf', '/usr/local/include/mupdf', '/usr/include/freetype2'] PyMuPDF-1.21.1/setup.py: library_dirs=[] PyMuPDF-1.21.1/setup.py: libraries=['mupdf', 'mupdf-third', 'jbig2dec', 'openjp2', 'jpeg', 'freetype', 'gumbo', 'harfbuzz', 'leptonica', 'tesseract'] PyMuPDF-1.21.1/setup.py: extra_compile_args=['-Wno-incompatible-pointer-types', '-Wno-pointer-sign', '-Wno-sign-compare'] PyMuPDF-1.21.1/setup.py: extra_link_args=[] running build running build_py running build_ext building 'fitz._fitz' extension swigging fitz/fitz.i to fitz/fitz_wrap.c swig -python -w509 -o fitz/fitz_wrap.c fitz/fitz.i creating build creating build/temp.linux-riscv64-cpython-311 creating build/temp.linux-riscv64-cpython-311/fitz gcc -Wsign-compare -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -I/usr/include/mupdf -I/usr/local/include/mupdf -I/usr/include/freetype2 -I/usr/include/python3.11 -c fitz/fitz_wrap.c -o build/temp.linux-riscv64-cpython-311/fitz/fitz_wrap.o -Wno-incompatible-pointer-types -Wno-pointer-sign -Wno-sign-compare fitz/fitz_wrap.c:5380:52: error: unknown type name ‘fz_story_element_position’ 5380 | void Story_Callback(fz_context *ctx, void *opaque, fz_story_element_position *pos) | ^~~~~~~~~~~~~~~~~~~~~~~~~ fitz/fitz_wrap.c: In function ‘JM_archive_from_py’: fitz/fitz_wrap.c:5474:19: warning: implicit declaration of function ‘fz_new_tree_archive’; did you mean ‘fz_new_derived_archive’? [-Wimplicit-function-declaration] 5474 | sub = fz_new_tree_archive(ctx, NULL); | ^~~~~~~~~~~~~~~~~~~ | fz_new_derived_archive fitz/fitz_wrap.c:5474:17: warning: assignment to ‘fz_archive *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 5474 | sub = fz_new_tree_archive(ctx, NULL); | ^ fitz/fitz_wrap.c:5482:13: warning: implicit declaration of function ‘fz_tree_archive_add_buffer’ [-Wimplicit-function-declaration] 5482 | fz_tree_archive_add_buffer(ctx, sub, mount, buff); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ fitz/fitz_wrap.c: In function ‘JM_refresh_links’: fitz/fitz_wrap.c:6074:76: warning: passing argument 4 of ‘pdf_load_link_annots’ makes integer from pointer without a cast [-Wint-conversion] 6074 | page->links = pdf_load_link_annots(ctx, pdf, page, obj, number, page_ctm); | ^~~ | | | pdf_obj * In file included from /usr/include/mupdf/pdf.h:44, from fitz/fitz_wrap.c:2768: /usr/include/mupdf/pdf/annot.h:741:85: note: expected ‘int’ but argument is of type ‘pdf_obj *’ 741 | fz_link *pdf_load_link_annots(fz_context *ctx, pdf_document *, pdf_obj *annots, int pagenum, fz_matrix page_ctm); | ~~~~^~~~~~~ fitz/fitz_wrap.c:6074:81: error: incompatible type for argument 5 of ‘pdf_load_link_annots’ 6074 | page->links = pdf_load_link_annots(ctx, pdf, page, obj, number, page_ctm); | ^~~~~~ | | | int /usr/include/mupdf/pdf/annot.h:741:104: note: expected ‘fz_matrix’ but argument is of type ‘int’ 741 | fz_link *pdf_load_link_annots(fz_context *ctx, pdf_document *, pdf_obj *annots, int pagenum, fz_matrix page_ctm); | ~~~~~~~~~~^~~~~~~~ fitz/fitz_wrap.c:6074:39: error: too many arguments to function ‘pdf_load_link_annots’ 6074 | page->links = pdf_load_link_annots(ctx, pdf, page, obj, number, page_ctm); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/mupdf/pdf/annot.h:741:10: note: declared here 741 | fz_link *pdf_load_link_annots(fz_context *ctx, pdf_document *, pdf_obj *annots, int pagenum, fz_matrix page_ctm); | ^~~~~~~~~~~~~~~~~~~~ fitz/fitz_wrap.c: In function ‘Document__make_page_map’: fitz/fitz_wrap.c:12811:44: error: ‘pdf_document’ {aka ‘struct pdf_document’} has no member named ‘map_page_count’; did you mean ‘rev_page_count’? 12811 | return Py_BuildValue("i", pdf->map_page_count); | ^~~~~~~~~~~~~~ | rev_page_count fitz/fitz_wrap.c: In function ‘new_Archive__SWIG_0’: fitz/fitz_wrap.c:17350:24: warning: implicit declaration of function ‘fz_new_multi_archive’; did you mean ‘fz_new_derived_archive’? [-Wimplicit-function-declaration] 17350 | arch = fz_new_multi_archive(gctx); | ^~~~~~~~~~~~~~~~~~~~ | fz_new_derived_archive fitz/fitz_wrap.c:17350:22: warning: assignment to ‘fz_archive *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17350 | arch = fz_new_multi_archive(gctx); | ^ fitz/fitz_wrap.c: In function ‘new_Archive__SWIG_1’: fitz/fitz_wrap.c:17360:22: warning: assignment to ‘fz_archive *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17360 | arch = fz_new_multi_archive(gctx); | ^ fitz/fitz_wrap.c: In function ‘Archive__add_dir’: fitz/fitz_wrap.c:17399:17: warning: implicit declaration of function ‘fz_mount_multi_archive’ [-Wimplicit-function-declaration] 17399 | fz_mount_multi_archive(gctx, arch, sub, path); | ^~~~~~~~~~~~~~~~~~~~~~ fitz/fitz_wrap.c: In function ‘Archive__add_treeitem’: fitz/fitz_wrap.c:17473:25: warning: assignment to ‘fz_archive *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17473 | sub = fz_new_tree_archive(gctx, NULL); | ^ fitz/fitz_wrap.c: In function ‘new_Xml__SWIG_0’: fitz/fitz_wrap.c:17498:13: warning: implicit declaration of function ‘fz_keep_xml’; did you mean ‘fz_keep_imp’? [-Wimplicit-function-declaration] 17498 | fz_keep_xml( gctx, xml); | ^~~~~~~~~~~ | fz_keep_imp fitz/fitz_wrap.c: In function ‘Xml_bodytag’: fitz/fitz_wrap.c:17530:42: warning: implicit declaration of function ‘fz_dom_body’; did you mean ‘fz_do_try’? [-Wimplicit-function-declaration] 17530 | ret = fz_keep_xml( gctx, fz_dom_body( gctx, (fz_xml *) self)); | ^~~~~~~~~~~ | fz_do_try fitz/fitz_wrap.c:17530:21: warning: assignment to ‘fz_xml *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17530 | ret = fz_keep_xml( gctx, fz_dom_body( gctx, (fz_xml *) self)); | ^ fitz/fitz_wrap.c: In function ‘Xml_append_child’: fitz/fitz_wrap.c:17539:17: warning: implicit declaration of function ‘fz_dom_append_child’; did you mean ‘Xml_append_child’? [-Wimplicit-function-declaration] 17539 | fz_dom_append_child( gctx, (fz_xml *) self, (fz_xml *) child); | ^~~~~~~~~~~~~~~~~~~ | Xml_append_child fitz/fitz_wrap.c: In function ‘Xml_create_text_node’: fitz/fitz_wrap.c:17549:23: warning: implicit declaration of function ‘fz_dom_create_text_node’; did you mean ‘Xml_create_text_node’? [-Wimplicit-function-declaration] 17549 | ret = fz_dom_create_text_node( gctx,(fz_xml *) self, text); | ^~~~~~~~~~~~~~~~~~~~~~~ | Xml_create_text_node fitz/fitz_wrap.c:17549:21: warning: assignment to ‘fz_xml *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17549 | ret = fz_dom_create_text_node( gctx,(fz_xml *) self, text); | ^ fitz/fitz_wrap.c: In function ‘Xml_create_element’: fitz/fitz_wrap.c:17560:23: warning: implicit declaration of function ‘fz_dom_create_element’; did you mean ‘Xml_create_element’? [-Wimplicit-function-declaration] 17560 | ret = fz_dom_create_element( gctx, (fz_xml *)self, tag); | ^~~~~~~~~~~~~~~~~~~~~ | Xml_create_element fitz/fitz_wrap.c:17560:21: warning: assignment to ‘fz_xml *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17560 | ret = fz_dom_create_element( gctx, (fz_xml *)self, tag); | ^ fitz/fitz_wrap.c: In function ‘Xml_find’: fitz/fitz_wrap.c:17570:19: warning: implicit declaration of function ‘fz_dom_find’; did you mean ‘fz_xml_find’? [-Wimplicit-function-declaration] 17570 | ret = fz_dom_find( gctx, (fz_xml *)self, tag, att, match); | ^~~~~~~~~~~ | fz_xml_find fitz/fitz_wrap.c:17570:17: warning: assignment to ‘fz_xml *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17570 | ret = fz_dom_find( gctx, (fz_xml *)self, tag, att, match); | ^ fitz/fitz_wrap.c: In function ‘Xml_find_next’: fitz/fitz_wrap.c:17579:19: warning: implicit declaration of function ‘fz_dom_find_next’; did you mean ‘fz_xml_find_next’? [-Wimplicit-function-declaration] 17579 | ret = fz_dom_find_next( gctx, (fz_xml *)self, tag, att, match); | ^~~~~~~~~~~~~~~~ | fz_xml_find_next fitz/fitz_wrap.c:17579:17: warning: assignment to ‘fz_xml *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17579 | ret = fz_dom_find_next( gctx, (fz_xml *)self, tag, att, match); | ^ fitz/fitz_wrap.c: In function ‘Xml_next’: fitz/fitz_wrap.c:17588:19: warning: implicit declaration of function ‘fz_dom_next’; did you mean ‘fz_drop_text’? [-Wimplicit-function-declaration] 17588 | ret = fz_dom_next( gctx, (fz_xml *)self); | ^~~~~~~~~~~ | fz_drop_text fitz/fitz_wrap.c:17588:17: warning: assignment to ‘fz_xml *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17588 | ret = fz_dom_next( gctx, (fz_xml *)self); | ^ fitz/fitz_wrap.c: In function ‘Xml_previous’: fitz/fitz_wrap.c:17597:19: warning: implicit declaration of function ‘fz_dom_previous’ [-Wimplicit-function-declaration] 17597 | ret = fz_dom_previous( gctx, (fz_xml *)self); | ^~~~~~~~~~~~~~~ fitz/fitz_wrap.c:17597:17: warning: assignment to ‘fz_xml *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17597 | ret = fz_dom_previous( gctx, (fz_xml *)self); | ^ fitz/fitz_wrap.c: In function ‘Xml_set_attribute’: fitz/fitz_wrap.c:17609:17: warning: implicit declaration of function ‘fz_dom_add_attribute’ [-Wimplicit-function-declaration] 17609 | fz_dom_add_attribute(gctx, (fz_xml *)self, key, value); | ^~~~~~~~~~~~~~~~~~~~ fitz/fitz_wrap.c: In function ‘Xml_remove_attribute’: fitz/fitz_wrap.c:17622:17: warning: implicit declaration of function ‘fz_dom_remove_attribute’; did you mean ‘Xml_remove_attribute’? [-Wimplicit-function-declaration] 17622 | fz_dom_remove_attribute(gctx, elt, key); | ^~~~~~~~~~~~~~~~~~~~~~~ | Xml_remove_attribute fitz/fitz_wrap.c: In function ‘Xml_get_attribute_value’: fitz/fitz_wrap.c:17636:21: warning: implicit declaration of function ‘fz_dom_attribute’; did you mean ‘__has_attribute’? [-Wimplicit-function-declaration] 17636 | ret=fz_dom_attribute(gctx, elt, key); | ^~~~~~~~~~~~~~~~ | __has_attribute fitz/fitz_wrap.c:17636:20: warning: assignment to ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17636 | ret=fz_dom_attribute(gctx, elt, key); | ^ fitz/fitz_wrap.c: In function ‘Xml_get_attributes’: fitz/fitz_wrap.c:17654:27: warning: implicit declaration of function ‘fz_dom_get_attribute’; did you mean ‘Xml_get_attributes’? [-Wimplicit-function-declaration] 17654 | val = fz_dom_get_attribute(gctx, this, i, &key); | ^~~~~~~~~~~~~~~~~~~~ | Xml_get_attributes fitz/fitz_wrap.c:17654:25: warning: assignment to ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17654 | val = fz_dom_get_attribute(gctx, this, i, &key); | ^ fitz/fitz_wrap.c: In function ‘Xml_insert_before’: fitz/fitz_wrap.c:17675:17: warning: implicit declaration of function ‘fz_dom_insert_before’; did you mean ‘Xml_insert_before’? [-Wimplicit-function-declaration] 17675 | fz_dom_insert_before(gctx, existing, what); | ^~~~~~~~~~~~~~~~~~~~ | Xml_insert_before fitz/fitz_wrap.c: In function ‘Xml_insert_after’: fitz/fitz_wrap.c:17687:17: warning: implicit declaration of function ‘fz_dom_insert_after’; did you mean ‘Xml_insert_after’? [-Wimplicit-function-declaration] 17687 | fz_dom_insert_after(gctx, existing, what); | ^~~~~~~~~~~~~~~~~~~ | Xml_insert_after fitz/fitz_wrap.c: In function ‘Xml_clone’: fitz/fitz_wrap.c:17697:23: warning: implicit declaration of function ‘fz_dom_clone’ [-Wimplicit-function-declaration] 17697 | ret = fz_dom_clone( gctx, (fz_xml *)self); | ^~~~~~~~~~~~ fitz/fitz_wrap.c:17697:21: warning: assignment to ‘fz_xml *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17697 | ret = fz_dom_clone( gctx, (fz_xml *)self); | ^ fitz/fitz_wrap.c: In function ‘Xml_parent’: fitz/fitz_wrap.c:17707:19: warning: implicit declaration of function ‘fz_dom_parent’ [-Wimplicit-function-declaration] 17707 | ret = fz_dom_parent( gctx, (fz_xml *)self); | ^~~~~~~~~~~~~ fitz/fitz_wrap.c:17707:17: warning: assignment to ‘fz_xml *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17707 | ret = fz_dom_parent( gctx, (fz_xml *)self); | ^ fitz/fitz_wrap.c: In function ‘Xml_first_child’: fitz/fitz_wrap.c:17720:19: warning: implicit declaration of function ‘fz_dom_first_child’; did you mean ‘Xml_first_child’? [-Wimplicit-function-declaration] 17720 | ret = fz_dom_first_child( gctx, (fz_xml *)self); | ^~~~~~~~~~~~~~~~~~ | Xml_first_child fitz/fitz_wrap.c:17720:17: warning: assignment to ‘fz_xml *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17720 | ret = fz_dom_first_child( gctx, (fz_xml *)self); | ^ fitz/fitz_wrap.c: In function ‘Xml_remove’: fitz/fitz_wrap.c:17729:17: warning: implicit declaration of function ‘fz_dom_remove’; did you mean ‘fz_hash_remove’? [-Wimplicit-function-declaration] 17729 | fz_dom_remove( gctx, (fz_xml *)self); | ^~~~~~~~~~~~~ | fz_hash_remove fitz/fitz_wrap.c: In function ‘delete_Story’: fitz/fitz_wrap.c:17744:13: error: unknown type name ‘fz_story’; did you mean ‘fz_store’? 17744 | fz_story *this_story = (fz_story *) self; | ^~~~~~~~ | fz_store fitz/fitz_wrap.c:17744:37: error: ‘fz_story’ undeclared (first use in this function); did you mean ‘fz_store’? 17744 | fz_story *this_story = (fz_story *) self; | ^~~~~~~~ | fz_store fitz/fitz_wrap.c:17744:37: note: each undeclared identifier is reported only once for each function it appears in fitz/fitz_wrap.c:17744:47: error: expected expression before ‘)’ token 17744 | fz_story *this_story = (fz_story *) self; | ^ fitz/fitz_wrap.c:17745:13: warning: implicit declaration of function ‘fz_drop_story’; did you mean ‘fz_drop_text’? [-Wimplicit-function-declaration] 17745 | fz_drop_story(gctx, this_story); | ^~~~~~~~~~~~~ | fz_drop_text fitz/fitz_wrap.c: In function ‘new_Story’: fitz/fitz_wrap.c:17749:13: error: unknown type name ‘fz_story’; did you mean ‘fz_store’? 17749 | fz_story* story = NULL; | ^~~~~~~~ | fz_store fitz/fitz_wrap.c:17765:25: warning: implicit declaration of function ‘fz_new_story’; did you mean ‘new_Story’? [-Wimplicit-function-declaration] 17765 | story = fz_new_story(gctx, buffer, user_css, em, arch); | ^~~~~~~~~~~~ | new_Story fitz/fitz_wrap.c:17765:23: warning: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17765 | story = fz_new_story(gctx, buffer, user_css, em, arch); | ^ fitz/fitz_wrap.c: In function ‘Story_reset’: fitz/fitz_wrap.c:17779:13: warning: implicit declaration of function ‘fz_reset_story’ [-Wimplicit-function-declaration] 17779 | fz_reset_story(gctx, (fz_story *)self); | ^~~~~~~~~~~~~~ fitz/fitz_wrap.c:17779:35: error: ‘fz_story’ undeclared (first use in this function); did you mean ‘fz_store’? 17779 | fz_reset_story(gctx, (fz_story *)self); | ^~~~~~~~ | fz_store fitz/fitz_wrap.c:17779:45: error: expected expression before ‘)’ token 17779 | fz_reset_story(gctx, (fz_story *)self); | ^ fitz/fitz_wrap.c: In function ‘Story_place’: fitz/fitz_wrap.c:17785:24: warning: implicit declaration of function ‘fz_place_story’ [-Wimplicit-function-declaration] 17785 | int more = fz_place_story( gctx, (fz_story*) self, where2, &filled); | ^~~~~~~~~~~~~~ fitz/fitz_wrap.c:17785:47: error: ‘fz_story’ undeclared (first use in this function); did you mean ‘fz_store’? 17785 | int more = fz_place_story( gctx, (fz_story*) self, where2, &filled); | ^~~~~~~~ | fz_store fitz/fitz_wrap.c:17785:56: error: expected expression before ‘)’ token 17785 | int more = fz_place_story( gctx, (fz_story*) self, where2, &filled); | ^ fitz/fitz_wrap.c:17783:21: warning: unused variable ‘where2’ [-Wunused-variable] 17783 | fz_rect where2 = JM_rect_from_py(where); | ^~~~~~ fitz/fitz_wrap.c: In function ‘Story_draw’: fitz/fitz_wrap.c:17794:13: warning: implicit declaration of function ‘fz_draw_story’ [-Wimplicit-function-declaration] 17794 | fz_draw_story( gctx, (fz_story*) self, dev, ctm2); | ^~~~~~~~~~~~~ fitz/fitz_wrap.c:17794:35: error: ‘fz_story’ undeclared (first use in this function); did you mean ‘fz_store’? 17794 | fz_draw_story( gctx, (fz_story*) self, dev, ctm2); | ^~~~~~~~ | fz_store fitz/fitz_wrap.c:17794:44: error: expected expression before ‘)’ token 17794 | fz_draw_story( gctx, (fz_story*) self, dev, ctm2); | ^ fitz/fitz_wrap.c:17793:24: warning: unused variable ‘dev’ [-Wunused-variable] 17793 | fz_device *dev = (device) ? device->device : NULL; | ^~~ fitz/fitz_wrap.c:17792:23: warning: unused variable ‘ctm2’ [-Wunused-variable] 17792 | fz_matrix ctm2 = JM_matrix_from_py( matrix); | ^~~~ fitz/fitz_wrap.c: In function ‘Story_document’: fitz/fitz_wrap.c:17799:23: warning: implicit declaration of function ‘fz_story_document’; did you mean ‘Story_document’? [-Wimplicit-function-declaration] 17799 | dom = fz_story_document( gctx, (fz_story*) self); | ^~~~~~~~~~~~~~~~~ | Story_document fitz/fitz_wrap.c:17799:49: error: ‘fz_story’ undeclared (first use in this function); did you mean ‘fz_store’? 17799 | dom = fz_story_document( gctx, (fz_story*) self); | ^~~~~~~~ | fz_store fitz/fitz_wrap.c:17799:58: error: expected expression before ‘)’ token 17799 | dom = fz_story_document( gctx, (fz_story*) self); | ^ fitz/fitz_wrap.c: In function ‘Story_element_positions’: fitz/fitz_wrap.c:17811:17: warning: implicit declaration of function ‘fz_story_positions’ [-Wimplicit-function-declaration] 17811 | fz_story_positions(gctx, (fz_story *) self, Story_Callback, callarg); | ^~~~~~~~~~~~~~~~~~ fitz/fitz_wrap.c:17811:43: error: ‘fz_story’ undeclared (first use in this function); did you mean ‘fz_store’? 17811 | fz_story_positions(gctx, (fz_story *) self, Story_Callback, callarg); | ^~~~~~~~ | fz_store fitz/fitz_wrap.c:17811:53: error: expected expression before ‘)’ token 17811 | fz_story_positions(gctx, (fz_story *) self, Story_Callback, callarg); | ^ fitz/fitz_wrap.c: In function ‘Document__make_page_map’: fitz/fitz_wrap.c:12812:9: warning: control reaches end of non-void function [-Wreturn-type] 12812 | } | ^ fitz/fitz_wrap.c: At top level: fitz/fitz_wrap.c:5379:18: warning: ‘make_story_elpos’ defined but not used [-Wunused-variable] 5379 | static PyObject *make_story_elpos = NULL; // Py function returning object | ^~~~~~~~~~~~~~~~ error: command '/usr/bin/gcc' failed with exit code 1 error: Bad exit status from /var/tmp/rpm-tmp.MLZwHy (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.MLZwHy (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/python-PyMuPDF.spec