#1140261 mrtrix3: FTBFS: core/math/stats/glm.cpp:185:34: error: invalid use of non-static member function 'Eigen::JacobiSVD<typename Eigen::DenseBase<Derived>::PlainObject> Eigen::MatrixBase<Derived>::jacobiSvd(unsigned int) const [with Derived = Eigen::Matrix<double, -1, -1>; typename Eigen::DenseBase<Derived>::PlainObject = Eigen::Matrix<double, -1, -1>]'

#1140261#5
Date:
2026-06-17 16:15:22 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202606/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:mrtrix3, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
( 82/548) [CC] tmp/core/misc/bitset.o
g++ -c -std=c++14 -DMRTRIX_BUILD_TYPE="release version with openmp" -pthread -fPIC -mmmx -msse -msse2 -mfpmath=sse -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -mmmx -msse -msse2 -mfpmath=sse -DMRTRIX_WORD64 -DMRTRIX_HAVE_EIGEN_UNSUPPORTED_SPECIAL_FUNCTIONS -DMRTRIX_TIFF_SUPPORT -isystem /usr/include/x86_64-linux-gnu -isystem /usr/include/webp -DEIGEN_FFTW_DEFAULT -fopenmp -Wall -O3 -DNDEBUG -Isrc -I./core -Icmd -isystem /usr/include/eigen3 core/misc/bitset.cpp -o tmp/core/misc/bitset.o
( 83/548) [CC] tmp/core/file/dicom/image.o
g++ -c -std=c++14 -DMRTRIX_BUILD_TYPE="release version with openmp" -pthread -fPIC -mmmx -msse -msse2 -mfpmath=sse -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -mmmx -msse -msse2 -mfpmath=sse -DMRTRIX_WORD64 -DMRTRIX_HAVE_EIGEN_UNSUPPORTED_SPECIAL_FUNCTIONS -DMRTRIX_TIFF_SUPPORT -isystem /usr/include/x86_64-linux-gnu -isystem /usr/include/webp -DEIGEN_FFTW_DEFAULT -fopenmp -Wall -O3 -DNDEBUG -Isrc -I./core -Icmd -isystem /usr/include/eigen3 core/file/dicom/image.cpp -o tmp/core/file/dicom/image.o

ERROR: ( 80/548) [CC] tmp/core/math/stats/glm.o

g++ -c -std=c++14 -DMRTRIX_BUILD_TYPE="release version with openmp" -pthread -fPIC -mmmx -msse -msse2 -mfpmath=sse -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -mmmx -msse -msse2 -mfpmath=sse -DMRTRIX_WORD64 -DMRTRIX_HAVE_EIGEN_UNSUPPORTED_SPECIAL_FUNCTIONS -DMRTRIX_TIFF_SUPPORT -isystem /usr/include/x86_64-linux-gnu -isystem /usr/include/webp -DEIGEN_FFTW_DEFAULT -fopenmp -Wall -O3 -DNDEBUG -Isrc -I./core -Icmd -isystem /usr/include/eigen3 core/math/stats/glm.cpp -o tmp/core/math/stats/glm.o

failed with output

core/math/stats/glm.cpp: In function ‘MR::Math::Stats::matrix_type MR::Math::Stats::GLM::solve_betas(const MR::Math::Stats::matrix_type&, const MR::Math::Stats::matrix_type&)’:
core/math/stats/glm.cpp:185:34: error: invalid use of non-static member function ‘Eigen::JacobiSVD<typename Eigen::DenseBase<Derived>::PlainObject> Eigen::MatrixBase<Derived>::jacobiSvd(unsigned int) const [with Derived = Eigen::Matrix<double, -1, -1>; typename Eigen::DenseBase<Derived>::PlainObject = Eigen::Matrix<double, -1, -1>]’
  185 |           return design.jacobiSvd<Eigen::ComputeThinU | Eigen::ComputeThinV>().solve (measurements);
      |                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/eigen3/Eigen/SVD:37,
                 from /usr/include/eigen3/Eigen/Geometry:13,
                 from ./core/types.h:78,
                 from ./core/mrtrix.h:38,
                 from ./core/cmdline_option.h:28,
                 from ./core/app.h:29,
                 from ./core/math/stats/glm.h:20,
                 from core/math/stats/glm.cpp:17:
/usr/include/eigen3/Eigen/src/SVD/JacobiSVD.h:805:1: note: declared here
  805 | MatrixBase<Derived>::jacobiSvd(unsigned int computationOptions) const
      | ^~~~~~~~~~~~~~~~~~~
core/math/stats/glm.cpp:185:78: error: expected primary-expression before ‘)’ token
  185 |           return design.jacobiSvd<Eigen::ComputeThinU | Eigen::ComputeThinV>().solve (measurements);
      |                                                                              ^
make[1]: *** [debian/rules:39: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:33: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1140261#12
Date:
2026-10-19 12:34:06 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
mrtrix3, 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 1140261@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Tille <tille@debian.org> (supplier of updated mrtrix3 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: Mon, 19 Oct 2026 13:16:05 +0200
Source: mrtrix3
Architecture: source
Version: 3.0.8-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Changed-By: Andreas Tille <tille@debian.org>
Closes: 1140261
Changes:
 mrtrix3 (3.0.8-3) unstable; urgency=medium
 .
   * Team upload.
   * Fix build with Eigen 5.0 which changed jacobiSvd.
     Closes: #1140261
Checksums-Sha1:
 2043ce69d8afd79a03d2da7b05c34e1bcd256250 2270 mrtrix3_3.0.8-3.dsc
 054fbbdd516f3ec4cf7c54cba06a9cb5ee4ee180 11556 mrtrix3_3.0.8-3.debian.tar.xz
 b08834ee93be99a134766eefc8b608eaece83b16 17994 mrtrix3_3.0.8-3_amd64.buildinfo
Checksums-Sha256:
 2db883aa21078af140ad6f186a67ce27a525f8f3585e44ec6aca2a4c2e03ba6f 2270 mrtrix3_3.0.8-3.dsc
 e81c4e120582a3fe6b746094c5ffa6388faa09cd391319ea530a266519e31d92 11556 mrtrix3_3.0.8-3.debian.tar.xz
 a27f22518cf0138c0bb52c1d9a3c0dc5c254dc9b01f86d75ec057ded73fddd86 17994 mrtrix3_3.0.8-3_amd64.buildinfo
Files:
 8ac927a54d9aa8275866b31c981d5c73 2270 science optional mrtrix3_3.0.8-3.dsc
 be9c5b27280f1effcdc95db6586b8c6e 11556 science optional mrtrix3_3.0.8-3.debian.tar.xz
 b66414672ef98d7b6be7ca9ee86aa378 17994 science optional mrtrix3_3.0.8-3_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmrWCuQRHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtFWBg/+KRpXzyLecldxNQNuh0PmxIWDprBgpHfm
InalDfmTjAa5EX/ZB0R+nyTu+Mv8+CHQXwIl68ijzH/vkGc6H+R3iDusZvcLxIlv
c633W5fNsOX2PpA7E50JFUyQcC1daCMQ6SEfGQCRZhDey3/PA/WZx5XY3dVa1jOX
ZnLIRZowJO4KZ6WP8/P7F0Alz9IouxQifAOnSSaLF5v7q1gCO5vWBsO39wu1fnbm
nhzWxn6y4oxgmU+KaL7E62Ka1fNlIjxVNHBfAbziBh+mYCaTeAJkCy94ruV/G7d+
Qe/6KbYeAEg8CxCHOgAXxjnlr7weYxiYeV1Mcsjb2MaKs5JXbyDQ0yb5UlxVCQAc
2g1dakvRw3JT0QYSdwnVa4Og2GzJCSos0y4ukfHtiiqZQ12GujRJFw10qhhGLgXb
CDVCjjIx4FnZJahQIcm0PPYZPhCXrqoEP7+ZMxrW9++I6ORUN2saHUCxtulmY0W1
dJBUmVQJobshoXE4SZoBrsfaweTY2qaTD4ljCxf2Jc9vpTxYXdNlqfs1n2qps4ai
oo7ZABso36ScSh54mYuyyiZVBe7rPTzRRDnDU1FdbiDITBuVEFyqSHxO1IuNpH4n
hOzZCtV3Lj67T4oqioGDgtfJxCm+o4B0oNT5YJ2nuqfCdRlPvxanvU6Ci7f9Sl4Y
UOdemHrDqBc=
=GJRz
-----END PGP SIGNATURE-----