[R-pkg-devel] R CMD check Rcpp_1.0.1.tar.gz error

Ben Bolker bbo|ker @end|ng |rom gm@||@com
Mon Jun 17 23:02:57 CEST 2019


This looks like it's caused by the quotation marks around the compiler
flags ("-g ... "), but I couldn't tell you how they got there or how to get
rid of them ...

On Tue, Jun 18, 2019, 6:57 AM Wang, Zhu <wangz1 using uthscsa.edu> wrote:

> Dear all,
>
> For some reason, I couldn't install Rcpp
> https://cran.r-project.org/web/packages/Rcpp/index.html, and R CMD check
> generated the error message below. I also attached Makeconf file referred
> below.
>
> Thanks for your attention.
>
> Zhu Wang
>
> installing *source* package 'Rcpp' ...
>  ** package 'Rcpp' successfully unpacked and MD5 sums checked
>  ** using non-staged installation
>  ** libs
>  g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I../inst/include/
> -fpic  "-g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes
> -Wno-deprecated-declarations -Wno-parentheses" -c Date.cpp -  o Date.o
>  g++: error: unrecognized debug output level ' -O2 -Wall -pedantic
> -mtune=native -Wno-ignored-attributes -Wno-deprecated-declarations
> -Wno-parentheses'
>  /usr/lib/R/etc/Makeconf:176: recipe for target 'Date.o' failed
>  make: *** [Date.o] Error 1
>  ERROR: compilation failed for package 'Rcpp'
>
> sessionInfo()
> ## R version 3.6.0 (2019-04-26)
> ## Platform: x86_64-pc-linux-gnu (64-bit)
> ## Running under: Ubuntu 18.04.2 LTS
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list