Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation issues #217

Open
vappiah opened this issue Nov 2, 2023 · 3 comments
Open

installation issues #217

vappiah opened this issue Nov 2, 2023 · 3 comments
Labels
question Further information is requested response needed Issue will be closed within a month if no response is provided

Comments

@vappiah
Copy link

vappiah commented Nov 2, 2023

Hi Developers,
I tried installing harmony on an Ubuntu Machine and I got this error below. Please advice.

In function ‘arma::vec find_lambda_cpp(const vec&, const vec&, const std::vector<int, std::allocator >&)’:
utils.cpp:127:29: error: ‘value’ is not a member of ‘arma::fill’
B_vec[b], arma::fill::value(lambda_dym));

@pati-ni
Copy link
Collaborator

pati-ni commented Nov 2, 2023

Hi @vappiah,
Can you post the whole build log of the error you are posting and the sessionInfo()?

@vappiah
Copy link
Author

vappiah commented Nov 7, 2023

Hi @pati-ni
Here is the build log

g++ -std=gnu++11 -I"/software/R-3.6.3/lib/R/include" -DNDEBUG -I"/software/R-3.6.3/lib/R/library/Rcpp/include" -I"/software/R-3.6.3/lib/R/library/RcppArmadillo/include" -I"/software/R-3.6.3/lib/R/library/RcppProgress/include" -I/usr/local/include -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/software/R-3.6.3/lib/R/include" -DNDEBUG -I"/software/R-3.6.3/lib/R/library/Rcpp/include" -I"/software/R-3.6.3/lib/R/library/RcppArmadillo/include" -I"/software/R-3.6.3/lib/R/library/RcppProgress/include" -I/usr/local/include -fpic -g -O2 -c harmony.cpp -o harmony.o
g++ -std=gnu++11 -I"/software/R-3.6.3/lib/R/include" -DNDEBUG -I"/software/R-3.6.3/lib/R/library/Rcpp/include" -I"/software/R-3.6.3/lib/R/library/RcppArmadillo/include" -I"/software/R-3.6.3/lib/R/library/RcppProgress/include" -I/usr/local/include -fpic -g -O2 -c timer.cpp -o timer.o
g++ -std=gnu++11 -I"/software/R-3.6.3/lib/R/include" -DNDEBUG -I"/software/R-3.6.3/lib/R/library/Rcpp/include" -I"/software/R-3.6.3/lib/R/library/RcppArmadillo/include" -I"/software/R-3.6.3/lib/R/library/RcppProgress/include" -I/usr/local/include -fpic -g -O2 -c utils.cpp -o utils.o
utils.cpp: In function ‘arma::vec find_lambda_cpp(const vec&, const vec&, const std::vector<int, std::allocator >&)’:
utils.cpp:127:29: error: ‘value’ is not a member of ‘arma::fill’
B_vec[b], arma::fill::value(lambda_dym));
^~~~~
/software/R-3.6.3/lib/R/etc/Makeconf:175: recipe for target 'utils.o' failed
make: *** [utils.o] Error 1
ERROR: compilation failed for package ‘harmony’
removing ‘/software/R-3.6.3/lib/R/library/harmony’

The downloaded source packages are in
‘/tmp/RtmpCv3jto/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("harmony") :
installation of package ‘harmony’ had non-zero exit status

@pati-ni
Copy link
Collaborator

pati-ni commented Nov 7, 2023

Hi @vappiah,

Thanks! So what I would ask is it to check how old your armadillo is..

Can you post the following output?

library(RcppArmadillo)
sessionInfo()

@pati-ni pati-ni added question Further information is requested response needed Issue will be closed within a month if no response is provided labels Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested response needed Issue will be closed within a month if no response is provided
Projects
None yet
Development

No branches or pull requests

2 participants