[Rcpp-devel] FW: Rcpp attributes.cpp issue

Latchezar (Lucho) Dimitrov ldimitro at wakehealth.edu
Mon Apr 20 22:09:57 CEST 2015


Yep, it installs (pretty much as with prev typecasts). In case you are interested in fixing them, below are the warnings for a few anachronisms. They were issued before too.

Thanks,
Latchezar

> install.packages("/Data/transient/temp/R/Rcpp_0.11.5.test.tar.gz",repos=NULL)
* installing *source* package 'Rcpp' ...
file 'src/attributes.cpp' has the wrong MD5 checksum
** libs
CC -m64 -library=stlport4 -I/Data/transient/temp/R/build-patched/include -DNDEBUG -I../inst/include/ -I/opt/include    -KPIC  -O5 -libmil  -c Date.cpp -o Date.o
"../inst/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Using void(*)(void*) to initialize extern "C" void(*)(void*).
"../inst/include/Rcpp/api/meat/Rcpp_eval.h", line 97: Warning (Anachronism): Using void(*)(void*) to initialize extern "C" void(*)(void*).
2 Warning(s) detected.
CC -m64 -library=stlport4 -I/Data/transient/temp/R/build-patched/include -DNDEBUG -I../inst/include/ -I/opt/include    -KPIC  -O5 -libmil  -c Module.cpp -o Module.o
"../inst/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Using void(*)(void*) to initialize extern "C" void(*)(void*).
"../inst/include/Rcpp/api/meat/Rcpp_eval.h", line 97: Warning (Anachronism): Using void(*)(void*) to initialize extern "C" void(*)(void*).
"../inst/include/Rcpp/XPtr.h", line 151: Warning (Anachronism): Using void(*)(SEXPREC*) to initialize extern "C" void(*)(SEXPREC*).
"../inst/include/Rcpp/XPtr.h", line 88:     Where: While instantiating "Rcpp::XPtr<Rcpp::CppFunction, PreserveStorage, &Rcpp::standard_delete_finalizer<Rcpp::CppFunction>>::setDeleteFinalizer()".
"../inst/include/Rcpp/XPtr.h", line 88:     Where: Instantiated from Rcpp::XPtr<Rcpp::CppFunction, PreserveStorage, &Rcpp::standard_delete_finalizer<Rcpp::CppFunction>>::XPtr(Rcpp::CppFunction*, bool, SEXPREC*, SEXPREC*).
"../inst/include/Rcpp/module/Module.h", line 168:     Where: Instantiated from non-template code.
"../inst/include/Rcpp/XPtr.h", line 151: Warning (Anachronism): Using void(*)(SEXPREC*) to initialize extern "C" void(*)(SEXPREC*).
"../inst/include/Rcpp/XPtr.h", line 88:     Where: While instantiating "Rcpp::XPtr<Rcpp::Module, PreserveStorage, &Rcpp::standard_delete_finalizer<Rcpp::Module>>::setDeleteFinalizer()".
"../inst/include/Rcpp/XPtr.h", line 88:     Where: Instantiated from Rcpp::XPtr<Rcpp::Module, PreserveStorage, &Rcpp::standard_delete_finalizer<Rcpp::Module>>::XPtr(Rcpp::Module*, bool, SEXPREC*, SEXPREC*).
"../inst/include/Rcpp/Module.h", line 387:     Where: Instantiated from non-template code.
"../inst/include/Rcpp/XPtr.h", line 151: Warning (Anachronism): Using void(*)(SEXPREC*) to initialize extern "C" void(*)(SEXPREC*).
"../inst/include/Rcpp/XPtr.h", line 88:     Where: While instantiating "Rcpp::XPtr<Rcpp::class_Base, PreserveStorage, &Rcpp::standard_delete_finalizer<Rcpp::class_Base>>::setDeleteFinalizer()".
"../inst/include/Rcpp/XPtr.h", line 88:     Where: Instantiated from Rcpp::XPtr<Rcpp::class_Base, PreserveStorage, &Rcpp::standard_delete_finalizer<Rcpp::class_Base>>::XPtr(Rcpp::class_Base*, bool, SEXPREC*, SEXPREC*).
"../inst/include/Rcpp/Module.h", line 386:     Where: Instantiated from non-template code.
5 Warning(s) detected.
CC -m64 -library=stlport4 -I/Data/transient/temp/R/build-patched/include -DNDEBUG -I../inst/include/ -I/opt/include    -KPIC  -O5 -libmil  -c Rcpp_init.cpp -o Rcpp_init.o
"../inst/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Using void(*)(void*) to initialize extern "C" void(*)(void*).
"../inst/include/Rcpp/api/meat/Rcpp_eval.h", line 97: Warning (Anachronism): Using void(*)(void*) to initialize extern "C" void(*)(void*).
2 Warning(s) detected.
CC -m64 -library=stlport4 -I/Data/transient/temp/R/build-patched/include -DNDEBUG -I../inst/include/ -I/opt/include    -KPIC  -O5 -libmil  -c api.cpp -o api.o
"../inst/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Using void(*)(void*) to initialize extern "C" void(*)(void*).
"../inst/include/Rcpp/api/meat/Rcpp_eval.h", line 97: Warning (Anachronism): Using void(*)(void*) to initialize extern "C" void(*)(void*).
2 Warning(s) detected.
CC -m64 -library=stlport4 -I/Data/transient/temp/R/build-patched/include -DNDEBUG -I../inst/include/ -I/opt/include    -KPIC  -O5 -libmil  -c attributes.cpp -o attributes.o
"../inst/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Using void(*)(void*) to initialize extern "C" void(*)(void*).
"../inst/include/Rcpp/api/meat/Rcpp_eval.h", line 97: Warning (Anachronism): Using void(*)(void*) to initialize extern "C" void(*)(void*).
2 Warning(s) detected.
CC -m64 -library=stlport4 -I/Data/transient/temp/R/build-patched/include -DNDEBUG -I../inst/include/ -I/opt/include    -KPIC  -O5 -libmil  -c barrier.cpp -o barrier.o
CC -m64 -library=stlport4 -G -m64 -o Rcpp.so Date.o Module.o Rcpp_init.o api.o attributes.o barrier.o
installing to /zpool.1/transient/temp/R/build-patched/library/Rcpp/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (Rcpp)
>
 

-----Original Message-----
From: Dirk Eddelbuettel [mailto:edd at debian.org] 
Sent: Monday, April 20, 2015 3:22 PM
To: Latchezar (Lucho) Dimitrov
Cc: Dirk Eddelbuettel; Kevin Ushey; rcpp-devel at lists.r-forge.r-project.org
Subject: RE: [Rcpp-devel] FW: Rcpp attributes.cpp issue


Thanks, I see now.  Could you try std::string::size_type instead of size_t ?

See eg http://stackoverflow.com/questions/1181079/stringsize-type-instead-of-int

I would hate to see us drop generality here just because you happen to work with a peculiar compiler.

Dirk

--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



More information about the Rcpp-devel mailing list