#1145889 xgrammar: FTBFS on amd64 and arm64

Package:
src:xgrammar
Source:
src:xgrammar
Submitter:
Salvatore Bonaccorso
Date:
2026-08-30 01:07:02 UTC
Severity:
normal
Tags:
#1145889#5
Date:
2026-08-27 14:39:07 UTC
From:
To:
Source: xgrammar
Version: 0.2.3-1
Severity: serious
Tags: ftbfs
Justification: FTBFS
X-Debbugs-Cc: debian-amd64@lists.debian.org, debian-arm@lists.debian.org, carnil@debian.org
User: debian-arm@lists.debian.org
Usertags: arm64
User: debian-amd64@lists.debian.org
Usertags: amd64

Hi

Looks xgrammar is FTBFS'ing on both amd64 and arm64:

https://buildd.debian.org/status/fetch.php?pkg=xgrammar&arch=amd64&ver=0.2.3-1&stamp=1787497190&raw=0
https://buildd.debian.org/status/fetch.php?pkg=xgrammar&arch=arm64&ver=0.2.3-1&stamp=1787496101&raw=0

Regards,
Salvatore

#1145889#10
Date:
2026-08-28 17:22:41 UTC
From:
To:
The problem seems to be (as usual?) that CMakeLists.txt adds -Werror.

The workaround is fortunately simple and appending -Wno-error to
DEB_CXXFLAGS_MAINT_APPEND in debian/rules makes the package compile
again.

Regards,
Andreas Henriksson

#1145889#17
Date:
2026-08-30 01:04:36 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
xgrammar, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1145889@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Santiago Vila <sanvila@debian.org> (supplier of updated xgrammar package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 30 Aug 2026 01:50:00 +0200
Source: xgrammar
Architecture: source
Version: 0.2.3-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Santiago Vila <sanvila@debian.org>
Closes: 1145889
Changes:
 xgrammar (0.2.3-2) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Andreas Henriksson ]
   * Add -Wno-error to DEB_CXXFLAGS_MAINT_APPEND. Closes: #1145889.
 .
   [ Santiago Vila ]
   * Drop "Rules-Requires-Root: no" (default).
   * Drop "Priority: optional" (default).
   * Update standards-version.
   * Fine-tune salsa-ci.yml.
Checksums-Sha1:
 baa56faec4a3a0ed64ba2bbbac0dbb517a68ce42 2078 xgrammar_0.2.3-2.dsc
 bd0213b4375bd80f69113fdca802b185cbc6f19e 3340 xgrammar_0.2.3-2.debian.tar.xz
 47839b42155cbaa89b8ced8ca999ba5de1644a63 12368 xgrammar_0.2.3-2_source.buildinfo
Checksums-Sha256:
 1606f491e77b69f0c997bc427e8224a7794fa8d8a0b5a73cabf16628d42ea624 2078 xgrammar_0.2.3-2.dsc
 6e99d31754b486c780c5d619ae75a5a19b38ddeecd4d4d6b3170c99dcbb81c12 3340 xgrammar_0.2.3-2.debian.tar.xz
 694a1105494d4d4fe1375efe4e397f1f32b3f6bbfcfeb0a9c39e4a19579c95e4 12368 xgrammar_0.2.3-2_source.buildinfo
Files:
 7631cfabb2061806ed69006123e036c6 2078 python optional xgrammar_0.2.3-2.dsc
 007126af031b5eca4efac4e46251765e 3340 python optional xgrammar_0.2.3-2.debian.tar.xz
 38a5ae0ee09cbe0597a42796dcf475b6 12368 python optional xgrammar_0.2.3-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmqTfQcACgkQQc5/C58b
izKMnQgAkonB8omlZYl9ver9n/eTrxzN6QQQ/1HBEGid3SLEsSAnMi51JPlic4Gd
Gr3yCBZso5FnJ2HxpjEjkUpgZ87RXi7Q/zyjZp1kMu7PBGS1FI9Xxuv4Oh9MeHx9
mAtPmMVpUEdkJK5KDWBkaVAmtdegFM/RwDWHJomzR4uRwt1gPLzD12cOcKwf+80o
SK4z/rA51xOWx4dhRe37cp5RVvVa9QCVTaHEprtHpUQ+Rt3qd/qbCzhm4Bpi8MFC
ss7MHyZQvyo7KyVb9owwTHuVgmzwI6oVPxmpuBUT3CVm3FZ1tqoL3Z6doi479sK/
vv8pGDrK2XA+JjDoO4bj+Dz44fXQvg==
=sVj/
-----END PGP SIGNATURE-----