Skip to content

durmod fails to install with dev. Rcpp #1070

@kevinushey

Description

@kevinushey

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’

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions