Debian Bug report logs - #1093019
mupdf: FTBFS on mips64el: is_function_variadic(): assert self.kind == TypeKind.FUNCTIONPROTO

version graph

Package: src:mupdf; Maintainer for src:mupdf is Kan-Ru Chen (陳侃如) <[email protected]>;

Reported by: Bastian Germann <[email protected]>

Date: Tue, 14 Jan 2025 16:27:01 UTC

Severity: important

Tags: ftbfs

Found in version mupdf/1.25.1+ds1-1

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], [email protected], Kan-Ru Chen (陳侃如) <[email protected]>:
Bug#1093019; Package src:mupdf. (Tue, 14 Jan 2025 16:27:02 GMT) (full text, mbox, link).


Acknowledgement sent to Bastian Germann <[email protected]>:
New Bug report received and forwarded. Copy sent to [email protected], Kan-Ru Chen (陳侃如) <[email protected]>. (Tue, 14 Jan 2025 16:27:02 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Bastian Germann <[email protected]>
To: [email protected]
Subject: mupdf: FTBFS on mips64el: segmentation fault
Date: Tue, 14 Jan 2025 16:22:59 +0000
Source: mupdf
Version: 1.25.1+ds1-1
Severity: important
Tags: ftbfs
X-Debbugs-Cc: [email protected]

The build fails on buildd with:

./scripts/mupdfwrap.py  -d build/shared-debug -b 01
(+0.9s): state.py:358:set_dir_so: self.Py_LIMITED_API=None
(+0.9s): -d: state.py:358:set_dir_so: self.Py_LIMITED_API=None
(+0.9s): -b: 0: __main__.py:1272:build_0: Generating C++ source code ...
(+0.9s): -b: 0: cpp.py:5030:close: File updated: platform/c++/include/mupdf/extra.h
(+0.9s): -b: 0: cpp.py:5030:close: File updated: platform/c++/implementation/extra.cpp
(+2.1s): -b: 0: cpp.py:5423:cpp_source: Creating wrapper functions...
make[2]: *** [Makefile:634: c++-debug] Segmentation fault

See https://buildd.debian.org/status/fetch.php?pkg=mupdf&arch=mips64el&ver=1.25.1%2Bds1-5&stamp=1736681020

This is actually a serious issue but I am filing as important because I intend to file a RM bug for this architecture.



Information forwarded to [email protected], Kan-Ru Chen (陳侃如) <[email protected]>:
Bug#1093019; Package src:mupdf. (Sun, 23 Mar 2025 16:33:01 GMT) (full text, mbox, link).


Acknowledgement sent to Bastian Germann <[email protected]>:
Extra info received and forwarded to list. Copy sent to Kan-Ru Chen (陳侃如) <[email protected]>. (Sun, 23 Mar 2025 16:33:01 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Bastian Germann <[email protected]>
To: [email protected]
Subject: mupdf: FTBFS on mips64el: segmentation fault
Date: Sun, 23 Mar 2025 17:29:20 +0100
Control: retitle -1 mupdf: FTBFS on mips64el: is_function_variadic(): assert self.kind == TypeKind.FUNCTIONPROTO

This does not segfault anymore:

./scripts/mupdfwrap.py  -d build/shared-debug -b 01
(+4.2s): state.py:358:set_dir_so: self.Py_LIMITED_API=None
(+4.3s): -d: state.py:358:set_dir_so: self.Py_LIMITED_API=None
(+4.3s): -b: 0: __main__.py:1272:build_0: Generating C++ source code ...
(+4.4s): -b: 0: cpp.py:5030:close: File updated: platform/c++/include/mupdf/extra.h
(+4.4s): -b: 0: cpp.py:5030:close: File updated: platform/c++/implementation/extra.cpp
(+14.2s): -b: 0: cpp.py:5423:cpp_source: Creating wrapper functions...
Traceback (most recent call last):
    scripts/mupdfwrap.py:6:<module>(): wrap.__main__.main()
    scripts/wrap/__main__.py:3089:main(): jlib.exception_info()
    ^except raise:
    scripts/wrap/__main__.py:3087:main(): main2()
    scripts/wrap/__main__.py:2470:main2(): build( build_dirs, swig_command, args, vs_upgrade, make_command)
    scripts/wrap/__main__.py:1609:build(): build_0(
    scripts/wrap/__main__.py:1295:build_0(): cpp.cpp_source(
    scripts/wrap/cpp.py:5424:cpp_source(): make_function_wrappers(
    scripts/wrap/cpp.py:2038:make_function_wrappers(): function_wrapper(
    scripts/wrap/cpp.py:833:function_wrapper(): if cursor.type.is_function_variadic() and fnname != 'fz_warn':
    /usr/lib/python3/dist-packages/clang/cindex.py:2516:is_function_variadic(): assert self.kind == TypeKind.FUNCTIONPROTO
AssertionError
make[2]: *** [Makefile:634: c++-debug] Error 1
make[2]: Leaving directory '/home/bage/mupdf-1.25.1+ds1'
dh_auto_build: error: make -j4 "INSTALL=install --strip-program=true" build=debug shared=yes OS=Linux "XCFLAGS=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/bage/mupdf-1.25.1+ds1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DFZ_ENABLE_ICC=0 -fPIC -DNDEBUG -O2" "XLDFLAGS=-Wl,-z,relro -Wl,-z,now" LINUX_OR_OPENBSD=yes USE_SYSTEM_MUJS=yes USE_SYSTEM_LIBS=yes USE_SYSTEM_LCMS2=yes LD=mips64el-linux-gnuabi64-ld verbose=yes HAVE_OBJCOPY=no VENV_FLAG= shared c\+\+ python returned exit code 2
make[1]: *** [debian/rules:61: override_dh_auto_build] Error 2



Changed Bug title to 'mupdf: FTBFS on mips64el: is_function_variadic(): assert self.kind == TypeKind.FUNCTIONPROTO' from 'mupdf: FTBFS on mips64el: segmentation fault'. Request was from Bastian Germann <[email protected]> to [email protected]. (Sun, 23 Mar 2025 16:33:01 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 19:47:55 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.