Source: pymupdf Version: 1.24.2+ds1-3 Severity: serious Tags: ftbfs Justification: fails to build from source (but built successfully in the past) X-Debbugs-Cc: sramac...@debian.org
https://buildd.debian.org/status/fetch.php?pkg=pymupdf&arch=amd64&ver=1.24.2%2Bds1-3%2Bb2&stamp=1726258415&raw=0 pipcl.py: run(): -Wl,-rpath,'$ORIGIN',-z,origin /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c: In function ‘JM_set_widget_properties’: /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c:7800:69: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 7800 | if (PyObject_RichCompareBool(value, Py_True, Py_EQ) || text && strcmp(text, "Yes")==0) { | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c: In function ‘JM_print_stext_page_as_text’: /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c:8449:12: warning: unused variable ‘n’ [-Wunused-variable] 8449 | int i, n; | ^ /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c:8449:9: warning: unused variable ‘i’ [-Wunused-variable] 8449 | int i, n; | ^ /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c:8448:10: warning: unused variable ‘utf’ [-Wunused-variable] 8448 | char utf[10]; | ^~~ /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c: In function ‘jm_lineart_clip_stroke_text’: /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c:10692:19: warning: unused variable ‘out’ [-Wunused-variable] 10692 | PyObject *out = dev->out; | ^~~ /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c: In function ‘jm_lineart_clip_text’: /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c:10702:19: warning: unused variable ‘out’ [-Wunused-variable] 10702 | PyObject *out = dev->out; | ^~~ /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c: In function ‘jm_lineart_clip_image_mask’: /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c:10712:19: warning: unused variable ‘out’ [-Wunused-variable] 10712 | PyObject *out = dev->out; | ^~~ /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c: In function ‘jm_trace_text_span’: /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c:10848:31: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 10848 | if (mat.d > 0 && (dir.x == 1 || dir.x == -1) || | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c: In function ‘new_Document’: /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c:11328:43: error: too few arguments to function ‘handler->open’ 11328 | doc = handler->open(gctx, filename_stream, NULL, NULL); | ^~~~~~~ /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c: In function ‘Page__addAnnot_FromString’: /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c:15028:23: warning: unused variable ‘txtpy’ [-Wunused-variable] 15028 | PyObject *txtpy = NULL; | ^~~~~ /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c: In function ‘Annot_set_rect’: /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c:16662:17: warning: unused variable ‘type’ [-Wunused-variable] 16662 | int type = pdf_annot_type(gctx, annot); | ^~~~ /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c: At top level: /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c:9180:13: warning: ‘show’ defined but not used [-Wunused-function] 9180 | static void show(const char* prefix, PyObject* obj) | ^~~~ Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in <module> main() File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 357, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 271, in build_wheel return _build_backend().build_wheel( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/pipcl.py", line 642, in build_wheel items = self._call_fn_build(config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/pipcl.py", line 804, in _call_fn_build ret = self.fn_build() ^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/setup.py", line 563, in build path_so_leaf_a, path_so_leaf_b = _build_extensions( ^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/setup.py", line 836, in _build_extensions path_so_leaf_a = _build_extension_classic( mupdf_local, mupdf_build_dir, build_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/setup.py", line 899, in _build_extension_classic path_so_leaf_a = pipcl.build_extension( ^^^^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/pipcl.py", line 1613, in build_extension command_was_run = run_if( ^^^^^^^ File "/<<PKGBUILDDIR>>/pipcl.py", line 2142, in run_if run( command) File "/<<PKGBUILDDIR>>/pipcl.py", line 1816, in run cp = subprocess.run( ^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'cc\ -fPIC\ -shared\ -O2 -DNDEBUG\ -I/usr/include/python3.12 -I/usr/include/python3.12\ -I/usr/include -I/usr/include/mupdf -I/usr/include/freetype2\ /<<PKGBUILDDIR>>/src_classic/fitz_old.i.c\ -MD -MF /<<PKGBUILDDIR>>/src_classic/_fitz_old.cpython-312-x86_64-linux-gnu.so.d\ -o /<<PKGBUILDDIR>>/src_classic/_fitz_old.cpython-312-x86_64-linux-gnu.so\ -Wall -Wno-deprecated-declarations -Wno-unused-const-variable -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-incompatible-pointer-types -Wno-pointer-sign -Wno-sign-compare\ -Wl,-z,relro -Wl,-z,now -lmupdf -lmupdf-third -ljbig2dec -lopenjp2 -ljpeg -lfreetype -lgumbo -lharfbuzz -lpng16 -lmujs\ -L/usr/lib/python3.12/config-3.12-x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -ldl -lm\ -lmupdf\ -Wl,-rpath,'$ORIGIN',-z,origin' returned non-zero exit status 1. ERROR Backend subprocess exited when trying to invoke build_wheel E: pybuild pybuild:389: build: plugin pyproject failed with: exit code=1: python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12 Cheers -- Sebastian Ramacher