🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #4576

Bug#1154048: mupdf: FTBFS with LLVM 23 as default: libclang AST change in its wrapper generator

#4576
From: Sylvestre Ledru
Date: Sun, 15 Nov 2026 12:30
42 lines
2874 bytes
Source: mupdf
Version: 1.28.2+ds1-3
Severity: important
Tags: ftbfs
User: pkg-llvm-team@lists.alioth.debian.org
Usertags: llvm-23-default
Control: affects -1 + src:llvm-defaults
Control: block 1154024 by -1

Hello,

We are going to switch the default LLVM version to 23 (transition bug
#1154024). llvm-defaults 0.75~exp1, in experimental, already points to
23.

mupdf fails to build in unstable with it, and builds without it:

AssertionError: fz_pixmap has fz_keep_pixmap() but have not found
size/location of .refs member. type_.spelling='fz_pixmap'
base_type_cursor.spelling='fz_pixmap': include/mupdf/fitz/color.h:50

The assertion comes from scripts/wrap/parse.py:342: the C++/Python
bindings generator (using python3-clang) doesn't find the .refs member
of fz_pixmap in the AST produced by libclang 23.

To reproduce, with sbuild:

  sbuild -d unstable \
    --extra-repository='deb http://deb.debian.org/debian experimental main' \
    --build-dep-resolver=aptitude \
    --add-depends='clang (>= 1:23~), llvm-dev (>= 1:23~), libclang-dev (>= 1:23~)' \
    <package>

The --add-depends forces the llvm-defaults packages from experimental
(the default apt resolver won't pick them, aptitude does), everything
else comes from unstable.

The severity will be raised to serious once llvm-defaults 23 is in
unstable.

Cheers,
Sylvestre
Technical Details
Message-ID: <NZHwS-c2jJ-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Sylvestre Ledru <sylvestre@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154048: mupdf: FTBFS with LLVM 23 as default: libclang AST change in its wrapper generator
Date: Sun, 15 Nov 2026 13:30:02 +0100
Message-ID: <NZHwS-c2jJ-7@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sun Nov 15 12:21:10 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.9
Reply-To: Sylvestre Ledru <sylvestre@debian.org>, 1154048@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: koster@debian.org
X-Debian-Pr-Message: report 1154048
X-Debian-Pr-Package: src:mupdf
X-Debian-Pr-Keywords: ftbfs
X-Debian-Pr-Source: mupdf
User-Agent: mail (GNU Mailutils 3.21)
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002724
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 42
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 15 Nov 2026 12:02:36 +0100
X-Original-Message-ID: <20261115110236.1113E19CDAFE@pulau.ecranbleu.org>