mfa build error
1
0
Entering edit mode
@e6d99402
Last seen 2.8 years ago
United Kingdom
  • R: 4.1.2
  • OS: ArchLinux
  • g++: 11.2.0

Code should be placed in three backticks as shown below


* installing *source* package ‘mfa’ ...
** using staged installation
** libs
g++ -std=gnu++14 -I"/usr/include/R/" -DNDEBUG  -I'/usr/lib/R/library/Rcpp/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++14 -I"/usr/include/R/" -DNDEBUG  -I'/usr/lib/R/library/Rcpp/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto  -c gibbs.cpp -o gibbs.o
gibbs.cpp: In function ‘double log_d_norm(double, double, double)’:
gibbs.cpp:13:31: error: ‘PI’ was not declared in this scope
   13 |   double ldn = -0.5 * log(2 * PI);
      |                               ^~
make: *** [/usr/lib64/R/etc/Makeconf:177: gibbs.o] Error 1
make: *** Waiting for unfinished jobs....
ERROR: compilation failed for package ‘mfa’
mfa • 686 views
ADD COMMENT
0
Entering edit mode
ADD COMMENT

Login before adding your answer.

Traffic: 651 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6