#1148526 stan-math: autopkgtest needs update for new version of eigen3

#1148526#5
Date:
2026-09-20 12:38:01 UTC
From:
To:
Dear maintainer(s),

With a recent upload of eigen3 the autopkgtest of stan-math fails in
testing when that autopkgtest is run with the binary packages of eigen3
from unstable. It passes when run with only packages from testing. In
tabular form:

                        pass            fail
eigen3                 from testing    5.0.1-3
stan-math              from testing    5.3.0+dfsg-3
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of eigen3 to testing
[1]. Of course, eigen3 shouldn't just break your autopkgtest (or even
worse, your package), but it seems to me that the change in eigen3 was
intended and your package needs to update to the new situation.

If this is a real problem in your package (and not only in your
autopkgtest), the right binary package(s) from eigen3 should really add
a versioned Breaks on the unfixed version of (one of your) package(s).
Note: the Breaks is nice even if the issue is only in the autopkgtest as
it helps the migration software to figure out the right versions to
combine in the tests.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=eigen3

https://ci.debian.net/data/autopkgtest/testing/amd64/s/stan-math/75781721/log.gz

  90s In file included from
/usr/include/eigen3/Eigen/src/Core/MatrixBase.h:131,
  90s                  from /usr/include/eigen3/Eigen/Core:329,
  90s                  from /usr/include/eigen3/Eigen/Dense:1,
  90s                  from
/usr/include/stan-math/stan/math/prim/fun/Eigen.hpp:32,
  90s                  from
/usr/include/stan-math/stan/math/prim/meta/append_return_type.hpp:4,
  90s                  from
/usr/include/stan-math/stan/math/prim/meta.hpp:72,
  90s                  from
/usr/include/stan-math/stan/math/prim/err/invalid_argument.hpp:4,
  90s                  from
/usr/include/stan-math/stan/math/prim/core/init_threadpool_tbb.hpp:4,
  90s                  from
/usr/include/stan-math/stan/math/prim/core.hpp:4,
  90s                  from
/usr/include/stan-math/stan/math/prim/fun/abs.hpp:4,
  90s                  from /usr/include/stan-math/stan/math/prim/fun.hpp:4,
  90s                  from
/usr/include/stan-math/stan/math/prim/constraint.hpp:4,
  90s                  from /usr/include/stan-math/stan/math/prim.hpp:11,
  90s                  from test/unit/math/prim/prob/gamma_lccdf_test.cpp:1:
  90s /usr/include/stan-math/stan/math/prim/eigen_plugins.h:51:3: error:
ISO C++ forbids declaration of ‘EIGEN_EMPTY_STRUCT_CTOR’ with no type
[-Wtemplate-body]
  90s    51 |   EIGEN_EMPTY_STRUCT_CTOR(val_Op);
  90s       |   ^~~~~~~~~~~~~~~~~~~~~~~
  90s /usr/include/stan-math/stan/math/prim/eigen_plugins.h:117:3:
error: ISO C++ forbids declaration of ‘EIGEN_EMPTY_STRUCT_CTOR’ with no
type [-Wtemplate-body]
  90s   117 |   EIGEN_EMPTY_STRUCT_CTOR(d_Op);
  90s       |   ^~~~~~~~~~~~~~~~~~~~~~~
  90s /usr/include/stan-math/stan/math/prim/eigen_plugins.h:148:3:
error: ISO C++ forbids declaration of ‘EIGEN_EMPTY_STRUCT_CTOR’ with no
type [-Wtemplate-body]
  90s   148 |   EIGEN_EMPTY_STRUCT_CTOR(adj_Op);
  90s       |   ^~~~~~~~~~~~~~~~~~~~~~~
  90s /usr/include/stan-math/stan/math/prim/eigen_plugins.h:193:3:
error: ISO C++ forbids declaration of ‘EIGEN_EMPTY_STRUCT_CTOR’ with no
type [-Wtemplate-body]
  90s   193 |   EIGEN_EMPTY_STRUCT_CTOR(vi_Op);
  90s       |   ^~~~~~~~~~~~~~~~~~~~~~~
  90s In file included from
/usr/include/eigen3/Eigen/src/Core/ArrayBase.h:98,
  90s                  from /usr/include/eigen3/Eigen/Core:338:
  90s /usr/include/stan-math/stan/math/prim/eigen_plugins.h:51:3: error:
ISO C++ forbids declaration of ‘EIGEN_EMPTY_STRUCT_CTOR’ with no type
[-Wtemplate-body]
  90s    51 |   EIGEN_EMPTY_STRUCT_CTOR(val_Op);
  90s       |   ^~~~~~~~~~~~~~~~~~~~~~~
  90s /usr/include/stan-math/stan/math/prim/eigen_plugins.h:117:3:
error: ISO C++ forbids declaration of ‘EIGEN_EMPTY_STRUCT_CTOR’ with no
type [-Wtemplate-body]
  90s   117 |   EIGEN_EMPTY_STRUCT_CTOR(d_Op);
  90s       |   ^~~~~~~~~~~~~~~~~~~~~~~
  90s /usr/include/stan-math/stan/math/prim/eigen_plugins.h:148:3:
error: ISO C++ forbids declaration of ‘EIGEN_EMPTY_STRUCT_CTOR’ with no
type [-Wtemplate-body]
  90s   148 |   EIGEN_EMPTY_STRUCT_CTOR(adj_Op);
  90s       |   ^~~~~~~~~~~~~~~~~~~~~~~
  90s /usr/include/stan-math/stan/math/prim/eigen_plugins.h:193:3:
error: ISO C++ forbids declaration of ‘EIGEN_EMPTY_STRUCT_CTOR’ with no
type [-Wtemplate-body]
  90s   193 |   EIGEN_EMPTY_STRUCT_CTOR(vi_Op);
  90s       |   ^~~~~~~~~~~~~~~~~~~~~~~
  95s autopkgtest [14:44:47]: test someUnitTests

#1148526#12
Date:
2026-09-20 15:28:03 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
stan-math, 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 1148526@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Pierre Gruet <pgt@debian.org> (supplier of updated stan-math 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, 20 Sep 2026 16:56:36 +0200
Source: stan-math
Architecture: source
Version: 5.4.0+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Math Team <team+math@tracker.debian.org>
Changed-By: Pierre Gruet <pgt@debian.org>
Closes: 1148526
Changes:
 stan-math (5.4.0+dfsg-1) unstable; urgency=medium
 .
   * New upstream version 5.4.0+dfsg:
     - Building with eigen 5.0.1 (Closes: #1148526)
   * Refreshing patches
Checksums-Sha1:
 283d7bca84179731b9c2fac1aa9d22d2489965c4 2125 stan-math_5.4.0+dfsg-1.dsc
 656876a5e76be71df6d3d608e7da2901b59c1be3 3863592 stan-math_5.4.0+dfsg.orig.tar.xz
 6d85ba82fad9258c4d7d4f5c1237d77ebc2b2887 6948 stan-math_5.4.0+dfsg-1.debian.tar.xz
 63a18d2be0f412f55cdad6dd2b26ab8d01db8d39 8017 stan-math_5.4.0+dfsg-1_source.buildinfo
Checksums-Sha256:
 12b5f1ff85be19e8577c3e84263d2a635c2da850ade14850ca2a28636d333b74 2125 stan-math_5.4.0+dfsg-1.dsc
 bd73bfb580f2b76018a535f618d7bbbd640d3ba3dcd7a77d2c585089a7f69025 3863592 stan-math_5.4.0+dfsg.orig.tar.xz
 32db8ea7a02526ecb326481d0b819d58bbd5148a6933cac03bfdf9e011f1b26e 6948 stan-math_5.4.0+dfsg-1.debian.tar.xz
 683108d369cea46eb15a271bfff5d12f149aee69afda9a601e516f0c3ab64f37 8017 stan-math_5.4.0+dfsg-1_source.buildinfo
Files:
 08c5144d590cd372272180b32cd4e3ae 2125 math optional stan-math_5.4.0+dfsg-1.dsc
 0ef081950746fa005786e95d63c3d771 3863592 math optional stan-math_5.4.0+dfsg.orig.tar.xz
 0185b2d1a38a3e6eefebe105ee0cad88 6948 math optional stan-math_5.4.0+dfsg-1.debian.tar.xz
 bec40fea730fba0195fe780e07f1ab26 8017 math optional stan-math_5.4.0+dfsg-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEM8soQxPpC9J9y0UjYAMWptwndHYFAmqv9G4ACgkQYAMWptwn
dHbXnw/+Nj08mFijNf5jDAy5/WWp+ZvsCcUrfG2vqNE31l1ubOjJOjEh9rRnDVkG
PD7S04DMOmoMmlpkkWz2oVyOV54T1SbdtjihAapJv7LJ+//zURP8rXStOSf6+JQK
DKn52cX2itbfu6uvwvCvGqJRiO5MHTEo01eZSXDfR4BrZwo4FGzwb+kgNqJudbpu
T4GE2WxdPh8Ly2fbs6qBIwj4IH15Fbf8YrVXZb/aeLN6tdkVyC2622N7PwM4ZF8u
fLEXuJzvnDsmiJzVD0EkFBLBq8WEIu5hzXXAmrwpnzMt9lKRQ0XP0zlOGMRxsPx7
FzUA87aGjjwFOJFawW+7qmUhS5ne0aVuadNK+pAQz58IcHSxda2LArHiubffl+Nl
WKbhf5pJAvVxlqCwxTEkJJH4ZrjkBFyi/DqA/YAl0yNY37dJiBI9Fkza2FJKjqc+
tHpKAYm4PcPTLIct5BrnlnCojrXUm4YUrNALFftuTIR78RzldP/mgrb5UZB2aCzo
t1UQNoKWoH9DiaF7NJA5cerQ93wtnbEAuzErsdcCcWZ4oWDjiMoZUSBhJzrSdf6O
E+Njsg/zHWwMRtiSwCg7GoBxFnLFl+APY3I0MUleN2gJ2mZr2ihAeMEUimI9Nz3x
tctNX27o8pcyKFs0OsqWOwICG4hDNzD7fqUbOodVlZ0Tzc7HDVQ=
=MpUo
-----END PGP SIGNATURE-----