> library(devtools)
Attaching package: ‘devtools’
The following objects are masked from ‘package:utils’:
?, help
The following object is masked from ‘package:base’:
system.file
> load_all()
Loading CCD
Re-compiling CCD
'/usr/lib/R/bin/R' --vanilla CMD INSTALL '/home/twn/Projects/ohdsi/OHDSI/CCD' \
--library='/tmp/RtmpfjJYpm' --no-R --no-data --no-help --no-demo --no-inst \
--no-docs --no-exec --no-multiarch --no-test-load --preclean
OpenBLAS : Your OS does not support AVX instructions. OpenBLAS is using Nehalem kernels as a fallback, which may give poorer performance.
* installing *source* package 'CCD' ...
** libs
g++ -I/usr/share/R/include -DNDEBUG -I. -Iccd -DR_BUILD -DDOUBLE_PRECISION -I"/home/twn/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/include" -I"/home/twn/R/x86_64-pc-linux-gnu-library/3.0/BH/include" -I"/home/twn/R/x86_64-pc-linux-gnu-library/3.0/RcppEigen/include" -UNDEBUG -Wall -pedantic -g -O0 -fpic -O3 -pipe -g -c RcppCcdInterface.cpp -o RcppCcdInterface.o
In file included from /usr/include/c++/4.8/cstdint:35:0,
from ccd/Types.h:11,
from ccd/CcdInterface.h:23,
from RcppCcdInterface.h:10,
from RcppCcdInterface.cpp:10:
/usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
RcppCcdInterface.cpp:452:2: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
if (*model == nullptr) {
^
In file included from ccd/CcdInterface.h:23:0,
from RcppCcdInterface.h:10,
from RcppCcdInterface.cpp:10:
ccd/Types.h:100:1: warning: scoped enums only available with -std=c++11 or -std=gnu++11 [enabled by default]
enum class ModelType {
^
ccd/Types.h: In function 'bool bsccs::Models::requiresStratumID(bsccs::ModelType)':
ccd/Types.h:114:23: error: 'ModelType' is not a class or namespace
return (modelType == ModelType::CONDITIONAL_LOGISTIC ||
^
ccd/Types.h:115:26: error: 'ModelType' is not a class or namespace
modelType == ModelType::CONDITIONAL_POISSON ||
^
ccd/Types.h:116:26: error: 'ModelType' is not a class or namespace
modelType == ModelType::SELF_CONTROLLED_MODEL);
^
ccd/Types.h: In function 'bool bsccs::Models::requiresCensoredData(bsccs::ModelType)':
ccd/Types.h:120:23: error: 'ModelType' is not a class or namespace
return (modelType == ModelType::COX);
^
ccd/Types.h: In function 'bool bsccs::Models::requiresOffset(bsccs::ModelType)':
ccd/Types.h:124:23: error: 'ModelType' is not a class or namespace
return (modelType == ModelType::SELF_CONTROLLED_MODEL);
^
In file included from RcppCcdInterface.h:11:0,
from RcppCcdInterface.cpp:10:
ccd/priors/JointPrior.h: In member function 'virtual const string bsccs::priors::MixtureJointPrior::getDescription() const':
ccd/priors/JointPrior.h:56:28: error: range-based 'for' loops are not allowed in C++98 mode
for (PriorPtr prior : uniquePriors) {
^
In file included from ccd/CyclicCoordinateDescent.h:13:0,
from RcppCcdInterface.cpp:14:
ccd/engine/AbstractModelSpecifics.h: At global scope:
ccd/engine/AbstractModelSpecifics.h:23:1: warning: scoped enums only available with -std=c++11 or -std=gnu++11 [enabled by default]
enum class ModelType; // forward declaration
^
ccd/engine/AbstractModelSpecifics.h:23:1: warning: elaborated-type-specifier for a scoped enum must not use the 'class' keyword [enabled by default]
RcppCcdInterface.cpp: In function 'Eigen::MatrixXd ccdGetFisherInformation(SEXP, SEXP)':
RcppCcdInterface.cpp:76:11: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
for (auto it = covariates.begin(); it != covariates.end(); ++it) {
^
RcppCcdInterface.cpp:76:16: error: 'it' does not name a type
for (auto it = covariates.begin(); it != covariates.end(); ++it) {
^
RcppCcdInterface.cpp:76:41: error: expected ';' before 'it'
for (auto it = covariates.begin(); it != covariates.end(); ++it) {
^
RcppCcdInterface.cpp:76:41: error: 'it' was not declared in this scope
RcppCcdInterface.cpp: In static member function 'static bsccs::ModelType bsccs::RcppCcdInterface::parseModelType(const string&)':
RcppCcdInterface.cpp:332:40: error: 'bsccs::ModelType' is not a class or namespace
bsccs::ModelType modelType = bsccs::ModelType::LOGISTIC;
^
RcppCcdInterface.cpp:334:23: error: 'bsccs::ModelType' is not a class or namespace
modelType = bsccs::ModelType::SELF_CONTROLLED_MODEL;
^
RcppCcdInterface.cpp:336:23: error: 'bsccs::ModelType' is not a class or namespace
modelType = bsccs::ModelType::CONDITIONAL_POISSON;
^
RcppCcdInterface.cpp:338:23: error: 'bsccs::ModelType' is not a class or namespace
modelType = bsccs::ModelType::CONDITIONAL_LOGISTIC;
^
RcppCcdInterface.cpp:340:23: error: 'bsccs::ModelType' is not a class or namespace
modelType = bsccs::ModelType::LOGISTIC;
^
RcppCcdInterface.cpp:342:23: error: 'bsccs::ModelType' is not a class or namespace
modelType = bsccs::ModelType::NORMAL;
^
RcppCcdInterface.cpp:344:23: error: 'bsccs::ModelType' is not a class or namespace
modelType = bsccs::ModelType::POISSON;
^
RcppCcdInterface.cpp:346:23: error: 'bsccs::ModelType' is not a class or namespace
modelType = bsccs::ModelType::COX;
^
RcppCcdInterface.cpp: In member function 'virtual void bsccs::RcppCcdInterface::initializeModelImpl(bsccs::ModelData**, bsccs::CyclicCoordinateDescent**, bsccs::AbstractModelSpecifics**)':
RcppCcdInterface.cpp:452:16: error: 'nullptr' was not declared in this scope
if (*model == nullptr) {
^
make: *** [RcppCcdInterface.o] Error 1
ERROR: compilation failed for package 'CCD'
* removing '/tmp/RtmpfjJYpm/CCD'
Error: Command failed (1)
Execution halted...
ccd/Types.h: In function<span style="color: #000;" class="
--
You received this message because you are subscribed to the Google Groups "devtools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdevtools+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
CPPFLAGS, CFLAGS etc.:
these should be settable by users (sites) through appropriate personal
(site-wide) Makevars files.
See Customizing package compilation in R Installation and Administration,"...RcppCcdInterface.<span style="co
...