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

can not install the package on centos #11

Open
korterling opened this issue Aug 9, 2016 · 1 comment
Open

can not install the package on centos #11

korterling opened this issue Aug 9, 2016 · 1 comment

Comments

@korterling
Copy link

g++ -m64 -std=c++0x -I/usr/include/R -DNDEBUG -I../inst/include -DNDEBUG -DNO_RE2_THREADS -I/usr/local/include -I"/usr/lib64/R/library/Rcpp/include" -I"/usr/lib64/R/library/RcppParallel/include" -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c RcppExports.cpp -o RcppExports.o
In file included from ../inst/include/re2r.h:43,
from RcppExports.cpp:4:
../inst/include/optional.hpp:115: 错误:expected unqualified-id before ‘using’
../inst/include/optional.hpp:134: 错误:ISO C++ 不允许声明无类型的‘constexpr’
../inst/include/optional.hpp:134: 错误:expected ‘;’ before ‘static’
../inst/include/optional.hpp:142: 错误:expected constructor, destructor, or type conversion before ‘static’
../inst/include/optional.hpp:144: 错误:‘declval’不是‘std’的成员
../inst/include/optional.hpp:144: 错误:expected primary-expression before ‘>’ token
../inst/include/optional.hpp:144: 错误:expected primary-expression before ‘)’ token
../inst/include/optional.hpp:144: 错误:‘declval’不是‘std’的成员
../inst/include/optional.hpp:144: 错误:expected primary-expression before ‘>’ token
../inst/include/optional.hpp:144: 错误:expected primary-expression before ‘)’ token
../inst/include/optional.hpp:146: 错误:expected constructor, destructor, or type conversion before ‘static’
../inst/include/optional.hpp:148: 错误:ISO C++ 不允许声明无类型的‘constexpr’
../inst/include/optional.hpp:148: 错误:expected ‘;’ before ‘static’
../inst/include/optional.hpp:157: 错误:ISO C++ 不允许声明无类型的‘constexpr’

@qinwf
Copy link
Owner

qinwf commented Aug 21, 2016

@yangbenfa What is the version of GCC and CentOS? The latest RE2 upstream library uses a lot of C++11 features, eg. C++11 thread and mutex. The package will require R > 3.3, which will use at least GCC 4.9.3 on CRAN.

The package will be released to CRAN, when this upstream issue google/re2#102 is solved. CRAN now also uses GCC 6.1.1 20160802 which has the bug to compile RE2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants