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

v0.12.6 fails to compile on CentOS 6.8 "expected initializer before ‘stop’" #539

Closed
IyadKandalaft opened this issue Aug 11, 2016 · 2 comments

Comments

@IyadKandalaft
Copy link

CRAN source package v0.12.6 fails to compile on CentOS 6.8 but v0.12.5 compiles fine.


* installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
** libs
g++ -I/opt/R/R3/3.1.3/lib64/R/include -DNDEBUG -I../inst/include/ -I/usr/local/include    -fpic  -g -O2  -c Date.cpp -o Date.o
In file included from ../inst/include/RcppCommon.h:122,
                 from ../inst/include/Rcpp.h:27,
                 from Date.cpp:31:
../inst/include/Rcpp/exceptions.h:267: error: expected initializer before ‘stop’
../inst/include/Rcpp/exceptions.h:272: error: expected initializer before ‘stop’
../inst/include/Rcpp/exceptions.h:277: error: expected initializer before ‘stop’
../inst/include/Rcpp/exceptions.h:282: error: expected initializer before ‘stop’
../inst/include/Rcpp/exceptions.h:287: error: expected initializer before ‘stop’
../inst/include/Rcpp/exceptions.h:292: error: expected initializer before ‘stop’
../inst/include/Rcpp/exceptions.h:297: error: expected initializer before ‘stop’
../inst/include/Rcpp/exceptions.h:302: error: expected initializer before ‘stop’
../inst/include/Rcpp/exceptions.h:307: error: expected initializer before ‘stop’
../inst/include/Rcpp/exceptions.h:312: error: expected initializer before ‘stop’
../inst/include/Rcpp/exceptions.h:317: error: expected initializer before ‘stop’
In file included from ../inst/include/Rcpp/Vector.h:56,
                 from ../inst/include/Rcpp.h:38,
                 from Date.cpp:31:
../inst/include/Rcpp/utils/tinyformat.h: In member function ‘Rcpp::internal::DimNameProxy& Rcpp::internal::DimNameProxy::assign(SEXPREC*)’:
../inst/include/Rcpp/utils/tinyformat.h:127: error: too many arguments to function ‘void Rcpp::stop(const std::string&)’
../inst/include/Rcpp/vector/DimNameProxy.h:43: error: at this point in file
In file included from ../inst/include/Rcpp.h:47,
                 from Date.cpp:31:
../inst/include/Rcpp/utils/tinyformat.h: In constructor ‘Rcpp::Function_Impl<StoragePolicy>::Function_Impl(const std::string&, const std::string&)’:
../inst/include/Rcpp/utils/tinyformat.h:127: error: too many arguments to function ‘void Rcpp::stop(const std::string&)’
../inst/include/Rcpp/Function.h:72: error: at this point in file
make: *** [Date.o] Error 1
ERROR: compilation failed for package ‘Rcpp’
* removing ‘/home/vagrant/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp’
* restoring previous ‘/home/vagrant/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp’

The downloaded source packages are in
    ‘/tmp/RtmpaYpuI9/downloaded_packages’
Warning message:
In install.packages("Rcpp") :
  installation of package ‘Rcpp’ had non-zero exit status
> 
> 
@eddelbuettel
Copy link
Member

Please look at issue #538 which I just closed 5 minutes ago.

@eddelbuettel
Copy link
Member

For reference, this is discussed in #512 (with reference to the drat repo), #516, #519, #520 and now #538.

You want these two commits if you do it by hand:

My recommendation, however, is to use the Rcpp drat repo to access the interim release 0.12.6.1 which is just the trusted 0.12.6 plus the fix to make it build on outdated R versions such as R 3.0.* or 3.1.*

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