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.
Eric.
12.5.2015
Dirk Eddelbuettel
2015-Dec-05 15:32 UTC
[Rd] Compile error about using RInside on windows enviroment
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