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

Wang, Zhu w@ngz1 @end|ng |rom uth@c@@@edu
Mon Jun 17 23:15:13 CEST 2019


Indeed it is from .R/Makevars. Thanks!

From: Ben Bolker <bbolker using gmail.com>
Sent: Monday, June 17, 2019 4:03 PM
To: Wang, Zhu <wangz1 using uthscsa.edu>
Cc: R-package-devel using r-project.org
Subject: Re: [R-pkg-devel] R CMD check Rcpp_1.0.1.tar.gz error

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<mailto: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<mailto: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