Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

installation/compilation fails in R version 3.6.0 #313

Closed
@johebll

Description

@johebll

Hello,
i have issues with the installation/compilation of RcppArmadillo, when attempting to install it.
Both, from CRAN or via BioCon, with the same error:

Bioconductor version 3.10 (BiocManager 1.30.10), R 3.6.0 (2019-04-26)Installing package(s) RcppArmadillotrying URL https://cran.rstudio.com/src/contrib/RcppArmadillo_0.10.1.0.0.tar.gzContent type application/x-gzip' length 1643776 bytes (1.6 MB)downloaded 1.6 MB* installing *source* package ‘RcppArmadillo’ ...** package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked** using staged installationchecking whether the C++ compiler works... yeschecking for C++ compiler default output file name... a.outchecking for suffix of executables... checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C++ compiler... yeschecking whether g++ -m64 -std=gnu++11 accepts -g... yeschecking how to run the C++ preprocessor... g++ -m64 -std=gnu++11 -Echecking whether we are using the GNU C++ compiler... (cached) yeschecking whether g++ -m64 -std=gnu++11 accepts -g... (cached) yeschecking whether we have a suitable tempdir... /tmpchecking whether R CMD SHLIB can already compile programs using OpenMP... yeschecking LAPACK_LIBS... R-supplied partial LAPACK foundconfigure: WARNING: Some complex-valued LAPACK functions may not be availableconfigure: creating ./config.statusconfig.status: creating inst/include/RcppArmadilloConfigGenerated.hconfig.status: creating src/Makevars** libsg++ -m64 -std=gnu++11 -I"/usr/include/R" -DNDEBUG  -I"/usr/lib64/R/library/Rcpp/include" -I/usr/local/include -I../inst/include  -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c RcppArmadillo.cpp -o RcppArmadillo.oRcppArmadillo.cpp:26:40: error: redeclaration ‘arma::arma_version::major’ differs in ‘constexpr’ const unsigned int arma::arma_version::major;                                        ^In file included from ../inst/include/armadillo:91:0,                 from ../inst/include/RcppArmadilloForward.h:49,                 from ../inst/include/RcppArmadillo.h:31,                 from RcppArmadillo.cpp:22:../inst/include/armadillo_bits/arma_version.hpp:31:33: error: from previous declaration ‘arma::arma_version::major’   static constexpr unsigned int major = ARMA_VERSION_MAJOR;                                 ^RcppArmadillo.cpp:26:40: error: declaration of ‘constexpr const unsigned int arma::arma_version::major’ outside of class is not definition [-fpermissive] const unsigned int arma::arma_version::major;                                        ^RcppArmadillo.cpp:27:40: error: redeclaration ‘arma::arma_version::minor’ differs in ‘constexpr’ const unsigned int arma::arma_version::minor;                                        ^In file included from ../inst/include/armadillo:91:0,                 from ../inst/include/RcppArmadilloForward.h:49,                 from ../inst/include/RcppArmadillo.h:31,                 from RcppArmadillo.cpp:22:../inst/include/armadillo_bits/arma_version.hpp:32:33: error: from previous declaration ‘arma::arma_version::minor’   static constexpr unsigned int minor = ARMA_VERSION_MINOR;                                 ^RcppArmadillo.cpp:27:40: error: declaration of ‘constexpr const unsigned int arma::arma_version::minor’ outside of class is not definition [-fpermissive] const unsigned int arma::arma_version::minor;                                        ^RcppArmadillo.cpp:28:40: error: redeclaration ‘arma::arma_version::patch’ differs in ‘constexpr’ const unsigned int arma::arma_version::patch;                                        ^In file included from ../inst/include/armadillo:91:0,                 from ../inst/include/RcppArmadilloForward.h:49,                 from ../inst/include/RcppArmadillo.h:31,                 from RcppArmadillo.cpp:22:../inst/include/armadillo_bits/arma_version.hpp:33:33: error: from previous declaration ‘arma::arma_version::patch’   static constexpr unsigned int patch = ARMA_VERSION_PATCH;                                 ^RcppArmadillo.cpp:28:40: error: declaration of ‘constexpr const unsigned int arma::arma_version::patch’ outside of class is not definition [-fpermissive] const unsigned int arma::arma_version::patch;                                        ^make: *** [RcppArmadillo.o] Error 1ERROR: compilation failed for package ‘RcppArmadillo’* removing ‘/usr/lib64/R/library/RcppArmadillo’* restoring previous ‘/usr/lib64/R/library/RcppArmadillo’

My versions are:

Platform:x86_64-redhat-linux-gnu (64-bit)Runningunder:CentOSLinux7 (Core)Matrixproducts:defaultBLAS/LAPACK:/usr/lib64/R/lib/libRblas.solocale: [1]LC_CTYPE=en_US.UTF-8LC_NUMERIC=C               [3]LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8     [5]LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8    [7]LC_PAPER=en_US.UTF-8LC_NAME=C                  [9]LC_ADDRESS=CLC_TELEPHONE=C            [11]LC_MEASUREMENT=en_US.UTF-8LC_IDENTIFICATION=Cattachedbasepackages:[1]statsgraphicsgrDevicesutilsdatasetsmethodsbaseloadedviaa namespace (andnotattached):[1]BiocManager_1.30.10compiler_3.6.0tools_3.6.0Bioconductorversion'3.10'*1packagesout-of-date*0packagestoonewcreateavalidinstallationwithBiocManager::install("RcppArmadillo",update=TRUE,ask=FALSE)moredetails:BiocManager::valid()$too_new,BiocManager::valid()$out_of_dateWarningmessage:1packagesout-of-date;0packagestoonew

Is there any thing i can adjust to make it work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp