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

durmod fails to install with dev. Rcpp #1070

Closed
kevinushey opened this issue Apr 15, 2020 · 0 comments · Fixed by #1071
Closed

durmod fails to install with dev. Rcpp #1070

kevinushey opened this issue Apr 15, 2020 · 0 comments · Fixed by #1071

Comments

@kevinushey
Copy link
Contributor

Related to cce9e61.

kevinushey@Kevins-MBP:~/r/pkg
$ R CMD INSTALL --preclean durmod
* installing to library ‘/Users/kevinushey/Library/R/3.6/library’
* installing *source* package ‘durmod’ ...
** using staged installation
** libs
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Users/kevinushey/Library/R/3.6/library/Rcpp/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -I/usr/local/opt/libomp/include -Xpreprocessor -fopenmp    -fPIC  -g -O3 -pipe -Wall -pedantic -fstack-protector-all -c RcppExports.cpp -o RcppExports.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Users/kevinushey/Library/R/3.6/library/Rcpp/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -I/usr/local/opt/libomp/include -Xpreprocessor -fopenmp    -fPIC  -g -O3 -pipe -Wall -pedantic -fstack-protector-all -c cfunctions.cpp -o cfunctions.o
In file included from cfunctions.cpp:6:
In file included from /Users/kevinushey/Library/R/3.6/library/Rcpp/include/Rcpp.h:27:
In file included from /Users/kevinushey/Library/R/3.6/library/Rcpp/include/RcppCommon.h:128:
/Users/kevinushey/Library/R/3.6/library/Rcpp/include/Rcpp/exceptions.h:112:53: warning: all paths through this function will call
      itself [-Winfinite-recursion]
    inline void warning(const std::string& message) {        // #nocov start
                                                    ^
cfunctions.cpp:31:3: error: reference to 'debug' is ambiguous
  debug=dodebug;
  ^
cfunctions.cpp:28:13: note: candidate found by name lookup is 'debug'
static bool debug = false;
            ^
/Users/kevinushey/Library/R/3.6/library/Rcpp/include/Rcpp/macros/macros.h:28:11: note: candidate found by name lookup is
      'Rcpp::debug'
namespace debug {
          ^
1 warning and 1 error generated.
make: *** [cfunctions.o] Error 1
make: *** Waiting for unfinished jobs....
ERROR: compilation failed for package ‘durmod’
* removing ‘/Users/kevinushey/Library/R/3.6/library/durmod’
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

Successfully merging a pull request may close this issue.

1 participant