Your message dated Wed, 04 Feb 2026 21:49:41 +0000
with message-id <[email protected]>
and subject line Bug#1126927: fixed in brotli 1.2.0-2
has caused the Debian Bug report #1126927,
regarding brotli: FTBFS: error: invalid argument of 'model' attribute on loong64
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1126927: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1126927
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: brotli
Version: 1.2.0-1
Severity: normal
Tags: FTBFS patch
User: [email protected]
Usertags: loong64
X-Debbugs-Cc: [email protected]
Dear maintainers,
Compiling the new brotli version failed for loong64 in the Debian
Package Auto-Building environment.
The error log is as follows,
```
In file included from c/common/constants.c:7:
c/common/constants.h:196:23: error: invalid argument of ‘model’ attribute
196 | BrotliPrefixCodeRange
_kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS];
| ^~~~~~~~~~~~~~~~~~~~~~~~
c/common/constants.c:10:23: error: invalid argument of ‘model’ attribute
10 | BrotliPrefixCodeRange
_kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/loongarch64-linux-gnu-gcc' failed with exit code 1
E: pybuild pybuild:483: build: plugin distutils failed with: exit
code=1: /usr/bin/python3 setup.py build
dh_auto_build: error: pybuild --build -i python{version} -p "3.14 3.13"
returned exit code 13
make[1]: *** [debian/rules:18: override_dh_auto_build] Error 25
```
After analyzing, I have created a repair patch.
Please consider the patch attached.
Based attached patch, I have built brotli 1.2.0-1 successfully on loong64.
```
dpkg-deb: building package 'brotli-dbgsym' in
'../brotli-dbgsym_1.2.0-1.1_loong64.deb'.
dpkg-deb: building package 'python3-brotli-dbgsym' in
'../python3-brotli-dbgsym_1.2.0-1.1_loong64.deb'.
dpkg-deb: building package 'libbrotli1' in
'../libbrotli1_1.2.0-1.1_loong64.deb'.
dpkg-genbuildinfo -O../brotli_1.2.0-1.1_loong64.buildinfo
dpkg-genchanges -O../brotli_1.2.0-1.1_loong64.changes
```
Best regards,
Dandan Zhang
From: Dandan Zhang <[email protected]>
Date: Tue, 03 Feb 2026 17:23:10 +0800
Subject: [PATCH] Cherry-pick upstream patch to fix build error on loong64
Origin: (upstream), (commit: https://github.com/google/brotli/commit/e230f474b87134e8c6c85b630084c612057f253e)
--- brotli-1.2.0.orig/c/common/platform.h
+++ brotli-1.2.0/c/common/platform.h
@@ -665,7 +665,8 @@ BROTLI_UNUSED_FUNCTION void BrotliSuppre
#undef BROTLI_TEST
#endif
-#if BROTLI_GNUC_HAS_ATTRIBUTE(model, 3, 0, 3)
+#if !defined(BROTLI_MODEL) && BROTLI_GNUC_HAS_ATTRIBUTE(model, 3, 0, 3) && \
+ !defined(BROTLI_TARGET_LOONGARCH64)
#define BROTLI_MODEL(M) __attribute__((model(M)))
#else
#define BROTLI_MODEL(M) /* M */
--- End Message ---
--- Begin Message ---
Source: brotli
Source-Version: 1.2.0-2
Done: Tomasz Buchert <[email protected]>
We believe that the bug you reported is fixed in the latest version of
brotli, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Tomasz Buchert <[email protected]> (supplier of updated brotli 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 04 Feb 2026 21:53:16 +0100
Source: brotli
Architecture: source
Version: 1.2.0-2
Distribution: unstable
Urgency: medium
Maintainer: Tomasz Buchert <[email protected]>
Changed-By: Tomasz Buchert <[email protected]>
Closes: 1126927
Changes:
brotli (1.2.0-2) unstable; urgency=medium
.
* Import upstream fix to fix loong64 build (Closes: #1126927)
Checksums-Sha1:
aadd20f39bf0a7e75998d47168369996a76ee30f 2282 brotli_1.2.0-2.dsc
edb7f7e381e6e690c777660361de4c4f8420ea87 5840 brotli_1.2.0-2.debian.tar.xz
0f6f216866580785b37d4cab48d0f1ced68d418f 8926 brotli_1.2.0-2_source.buildinfo
Checksums-Sha256:
41bbc5c0d7729d5a88c5f000dae39b88128ec9d641800f6125da03dabef50a00 2282
brotli_1.2.0-2.dsc
3c5601bc02e41003659c629fafbd881f4596dbc07aa2422b42c4252a00a3e67b 5840
brotli_1.2.0-2.debian.tar.xz
55b74b2b88cc6f55b4fa73c3334f42878ff1ffb3683af93440bf72c4f01ce628 8926
brotli_1.2.0-2_source.buildinfo
Files:
75ea82b09e443fbd350625a2f83a9ce6 2282 python optional brotli_1.2.0-2.dsc
e3227207a02021f239a992fe59d8663b 5840 python optional
brotli_1.2.0-2.debian.tar.xz
806944031d292c5729d808c618158850 8926 python optional
brotli_1.2.0-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEw4a8QcDI3JdLyqg9Y4wJ8uTJG1IFAmmDurMACgkQY4wJ8uTJ
G1J/MRAApMVaIV0+81wcpHgDTeWQOaILjgoLBfJkpg0MNPFPyTTq7uoA0hugNZwc
+fD1FgwDJHaiVNmIUfiC6ASL3Q88S1jxWMrlMTtNtkuVQBVi7jG+FdrDOvXp3Yp1
fiJG8J+YSp1oIHtK6mKhvTHfcxk2h5tmTVTU4WVELR5CS55go7nKBuFZrpk7qLG8
0BrXf2H2BFYUtxBQDeRH1L2aeFOGzxZMAXv9ZxpoKb+pJuYnre/XpFPRX51oC5Yn
uqhH1ElEuM+mMsVdZtOxZum/LpdAj7Maty3v86wQrK3iuJKCsRh/QhVXPLwkBTFA
kTyP/eJfMERmpxtDaaNap1J+UiT8NT00HRT4bmYH1BKLEaEFfRxOPAOr2bOD/Iyz
sUa4U6mJGZ7RvJA93miD9H/JUHFnI4Piuq/TXXi127YtOBhEDAJSLH383V1Yeigv
62jBVeHD/VlRyA319I+raQhB4ETSwBDS/NSyprjg8d3OUAyyDudtXuUUc7SfBG7w
eTlbRQMkKjdMTy9K7Fx9P1+rnaBI1Lvx43ApMOKuqOL+COwqp9pdHwKZ2+VY919L
TCt2E7MMro+kVxv2he3d0niKYS2FVWNjBvZN3ogMhokLSI2E3XtCi+Ey9qhN+N6z
JC9mYm7T4slFt8qlenTf4ZinwQSG2rCUMd9wPIoHVtyx5PCkiHs=
=yrbS
-----END PGP SIGNATURE-----
pgpIxwW4g8cLv.pgp
Description: PGP signature
--- End Message ---