RcppCore / RcppEigen

Rcpp integration for the Eigen templated linear algebra library
Other
110 stars 40 forks source link

rstan installation failed with invalid parameter combination for AltiVec intrinsic '__builtin_vec_sel' in RcppEigen #89

Closed bergen288 closed 3 years ago

bergen288 commented 4 years ago

Dirk:

Can you take a look of my issue posted at rstan thread: https://github.com/stan-dev/rstan/issues/778. My rstan installation is failed RcppEigen error in following log:

R CMD INSTALL -l /software/R/site-library rstan
* installing *source* package 'rstan' ...
file 'R/rstan.R' has the wrong MD5 checksum
** using staged installation
** libs
make[1]: Entering directory '/software/R/source/rstan/src'

g++   '-std=c++1y' -I"/opt/freeware/lib64/R/include" -DNDEBUG -I"../inst/include" -I"." -I"/software/R/site-library/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -I"/software/R/site-library/Rcpp/include" -I"/software/R/site-library/RcppEigen/include" -I"/software/R/site-library/BH/include" -I"/software/R/site-library/StanHeaders/include" -O2 -I/opt/freeware/include -I/usr/include -D_GETDELIM    -O3 -mcpu=native -mtune=native -fPIC -c chains.cpp -o chains.o
In file included from /software/R/site-library/RcppEigen/include/Eigen/Core:397,
                 from /software/R/site-library/RcppEigen/include/Eigen/Dense:1,
                 from /software/R/site-library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:13,
                 from /software/R/site-library/StanHeaders/include/stan/math/prim/mat/meta/append_return_type.hpp:4,
                 from /software/R/site-library/StanHeaders/include/stan/math/prim/meta.hpp:9,
                 from /software/R/site-library/StanHeaders/include/stan/math/prim/arr/err/check_nonzero_size.hpp:4,
                 from /software/R/site-library/StanHeaders/include/stan/math/prim/mat/fun/mean.hpp:4,
                 from chains.cpp:19:
/software/R/site-library/RcppEigen/include/Eigen/src/Core/arch/AltiVec/PacketMath.h: In function 'Packet Eigen::internal::pblend(const Eigen::internal::Selector<Eigen::internal::unpacket_traits<Packet>::size>&, const Packet&, const Packet&) [with Packet = __vector(2) double]':
/software/R/site-library/RcppEigen/include/Eigen/src/Core/arch/AltiVec/PacketMath.h:1054:46: error: invalid parameter combination for AltiVec intrinsic '__builtin_vec_sel'
   return vec_sel(elsePacket, thenPacket, mask);
                                              ^
make[1]: *** [/opt/freeware/lib64/R/etc/Makeconf:183: chains.o] Error 1
make[1]: Leaving directory '/software/R/source/rstan/src'
ERROR: compilation failed for package 'rstan'
* removing '/software/R/site-library/rstan'
make: *** [makefile:3: all] Error 1

Thanks.

eddelbuettel commented 4 years ago

No, sorry, you may on your own there. My reference platforms at CRAN all build, see https://cran.r-project.org/web/checks/check_results_RcppEigen.html. You may need to get help from somebody else more familiar with your less-standard toolchain.

eddelbuettel commented 4 years ago

You could try and talk to the Eigen3 team. The files in your RcppEigen error message above are all upstream files from Eigen3 which we bring to R essentially unaltered. And in general it is best to "swim upstream" ...

bergen288 commented 4 years ago

Is it https://gitlab.com/libeigen/eigen or https://github.com/OPM/eigen3 ? I don't see any way to report bugs/issues in either website.

Thanks.

yixuan commented 4 years ago

The first link is the correct one. Go to the Issues tab and click the green "New issue" button to submit.

bergen288 commented 4 years ago

https://gitlab.com/libeigen/eigen/-/issues/1923

Thanks.

bergen288 commented 4 years ago

My installed RcppEigen version is below. David Tellenbach is asking what Eigen version is. Can you please tell?

Version: 0.3.3.7.0
Date: 2019-11-16

Thanks.

eddelbuettel commented 4 years ago

It is documented at least in our files

2019-11-16  Dirk Eddelbuettel  <edd@debian.org>          

        * DESCRIPTION (Version, Date): Release 0.3.3.7.0           

        * inst/include/Eigen: Upgraded to Eigen 3.3.7
        * inst/include/unsupported/Eigen: Idem  
        * patches/eigen-3.3.7.diff: Carried local CRAN patches forward  
eddelbuettel commented 3 years ago

I am closing this now that Eigen 3.3.9 is packages as RcppEigen 0.3.3.9.1. Let me know if you still have problems.