Bug#912778: libarmadillo-dev: mlpack FTBFS on hppa - armadillo header issue

John David Anglin dave.anglin at bell.net
Sat Nov 3 20:37:23 GMT 2018


Package: libarmadillo-dev
Version: 1:9.100.6+dfsg-1
Severity: normal

Dear Maintainer,

The package mlpack fails to build on hppa due to an apparent problem in
the armadillo headers:

[  4%] Building CXX object src/mlpack/CMakeFiles/mlpack.dir/core/math/lin_alg.cpp.o
cd /<<PKGBUILDDIR>>/obj-hppa-linux-gnu/src/mlpack && /usr/bin/c++  -DARMA_32BIT_WORD -DARMA_NO_DEBUG -DBOOST_TEST_DYN_LINK -DHAS_OPENMP -DNDEBUG -Dmlpack_EXPORTS -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-hppa-linux-gnu/src/mlpack/..  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -Wformat -Werror=format-security --param ggc-min-expand=20 -g0 -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -ftemplate-depth=1000 -O3 -fopenmp -fPIC   -Winvalid-pch -include /<<PKGBUILDDIR>>/obj-hppa-linux-gnu/src/mlpack/cotire/mlpack_CXX_prefix.hxx -std=gnu++11 -o CMakeFiles/mlpack.dir/core/math/lin_alg.cpp.o -c /<<PKGBUILDDIR>>/src/mlpack/core/math/lin_alg.cpp
In file included from /usr/include/armadillo:687,
                 from /<<PKGBUILDDIR>>/src/mlpack/core/arma_extend/arma_extend.hpp:52,
                 from /<<PKGBUILDDIR>>/src/mlpack/prereqs.hpp:108,
                 from /<<PKGBUILDDIR>>/obj-hppa-linux-gnu/src/mlpack/cotire/mlpack_CXX_prefix.cxx:4,
                 from /<<PKGBUILDDIR>>/obj-hppa-linux-gnu/src/mlpack/cotire/mlpack_CXX_prefix.hxx:4:
/usr/include/armadillo_bits/glue_times_meat.hpp: In function 'static void arma::glue_times::apply(arma::Mat<eT>&, const TA&, const TB&, eT) [with eT = double; bool do_trans_A = false; bool do_trans_B = true; bool do_scalar_times = false; TA = arma::Mat<double>; TB = arma::Mat<double>]':
/usr/include/armadillo_bits/glue_times_meat.hpp:646:1: error: 'static void arma::glue_times::apply(arma::Mat<eT>&, const TA&, const TB&, eT) [with eT = double; bool do_trans_A = false; bool do_trans_B = true; bool do_scalar_times = false; TA = arma::Mat<double>; TB = arma::Mat<double>]' causes a section type conflict with 'static void arma::eop_core<eop_type>::apply(outT&, const arma::eOp<T1, eop_type>&) [with outT = arma::Mat<double>; T1 = arma::eOp<arma::Col<double>, arma::eop_sqrt>; eop_type = arma::eop_scalar_div_pre]'
 glue_times::apply
 ^~~~~~~~~~
In file included from /usr/include/armadillo:579,
                 from /<<PKGBUILDDIR>>/src/mlpack/core/arma_extend/arma_extend.hpp:52,
                 from /<<PKGBUILDDIR>>/src/mlpack/prereqs.hpp:108,
                 from /<<PKGBUILDDIR>>/obj-hppa-linux-gnu/src/mlpack/cotire/mlpack_CXX_prefix.cxx:4,
                 from /<<PKGBUILDDIR>>/obj-hppa-linux-gnu/src/mlpack/cotire/mlpack_CXX_prefix.hxx:4:
/usr/include/armadillo_bits/eop_core_meat.hpp:245:1: note: 'static void arma::eop_core<eop_type>::apply(outT&, const arma::eOp<T1, eop_type>&) [with outT = arma::Mat<double>; T1 = arma::eOp<arma::Col<double>, arma::eop_sqrt>; eop_type = arma::eop_scalar_div_pre]' was declared here
 eop_core<eop_type>::apply(outT& out, const eOp<T1, eop_type>& x)
 ^~~~~~~~~~~~~~~~~~
make[4]: *** [src/mlpack/CMakeFiles/mlpack.dir/build.make:249: src/mlpack/CMakeFiles/mlpack.dir/core/math/lin_alg.cpp.o] Error 1

Full log is here:
https://buildd.debian.org/status/fetch.php?pkg=mlpack&arch=hppa&ver=3.0.3-3&stamp=1541275059&raw=0

Regards,
Dave Anglin

-- System Information:
Debian Release: buster/sid
  APT prefers buildd-unstable
  APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 4.14.78+ (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libarmadillo-dev depends on:
ii  libarmadillo9   1:9.100.6+dfsg-1
ii  libarpack2-dev  3.5.0+real-2+b1
ii  libhdf5-dev     1.10.0-patch1+docs-4+b2
ii  libsuperlu-dev  5.2.1+dfsg1-3

libarmadillo-dev recommends no packages.

Versions of packages libarmadillo-dev suggests:
ii  libitpp-dev  4.3.1-9

-- no debconf information



More information about the debian-science-maintainers mailing list