[Debian-med-packaging] Bug#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>]'

Santiago Vila sanvila at debian.org
Wed Jun 17 17:15:22 BST 2026


Package: src:mrtrix3
Version: 3.0.8-2
Severity: serious
Tags: ftbfs forky sid

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
--------------------------------------------------------------------------------



More information about the Debian-med-packaging mailing list