[Rd] Compile error about using RInside on windows enviroment

Dirk Eddelbuettel edd at debian.org
Sat Dec 5 16:32:25 CET 2015


On 5 December 2015 at 21:35, 李琥 wrote:
|   I'm going to using RInside on windows enviroment. I installed all tools and packages according to Dirk's instruction.
|    My R installation reside in d:\hli\programfiles\R-3.2.2. There's no problems with folders with spaces.
| 
|     The rtools is installed in d:\hli\programfiles\Rtools and MinGW in d: \hli\programfiles\MinGW.
|     The R_HOME is set to   d:\hli\programfiles\R-3.2.2.
|     I have installed the Rcpp and RInside package in R.
| 
|      When i compile the rinside_sample0.cpp, it gives following error:
| 
| D:\hli\Programfiles\R-3.2.2\library\RInside\examples\standard>make -f Makefile.w
| in rinside_sample0
| g++ -m32 -ID:/hli/Programfiles/R-3.2.2/include -ID:/hli/Programfiles/R-3.2.2/inc
| lude/i386 -ID:/hli/Programfiles/R-3.2.2/library/Rcpp/include -ID:/hli/Programfil
| es/R-3.2.2/library/RInside/include -O2 -Wall -mtune=core2 -Wall  -s  rinside_sam
                                               ^^^^^^^^^^^^
                                               
| ple0.cpp    -LD:/hli/Programfiles/R-3.2.2/bin/i386 -lR -lm -LD:/hli/Programfiles
| /R-3.2.2/bin/i386 -lRblas -LD:/hli/Programfiles/R-3.2.2/bin/i386 -lRlapack "D:/h
| li/Programfiles/R-3.2.2/library/RInside/lib/i386/libRInside.a"  -o rinside_sampl
| e0
| rinside_sample0.cpp:1: error: bad value (core2) for -mtune= switch
| make: *** [rinside_sample0] Error 1
| 
|     Dose anyone know how to fix this error? Thanks.

Something somewhere (maybe $RHOME/etc/Makeconf, maybe your environment, maybe
something else) sets -mtune=core2 yet the compiler tells you he doesn't like
it.

You need to find and remove that setting.

Dirk

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



More information about the R-devel mailing list