rdotnet/rClr

Syntax Error ' "(" unexpected ' During Build

mrdevlar opened this issue · 2 comments

Hi, I am encountering a syntax error while building.

* installing *source* package 'rClr' ...
warning: Path to the Mono SDK not found by querying the Windows registry. Mono support will be disabled
R_HOME=C:/PROGRA~1/R/R-32~1.2
note: No VS120COMNTOOLS or VS110COMNTOOLS environment variable. Build will be made with gcc, Mono and xbuild
Created ./src/Makevars
** libs
Warning: this package has a non-empty 'configure.win' file,
so building only the main architecture

Syntax error: "(" unexpected
make: [printarch] Error 2 (ignored)
R_ARCH=/x64
OBJECTS=rClrMono.o
SHLIB_EXT=.dll
CC=gcc -m64
CXX=g++ -m64
**END Variable**
g++ -m64 -std=c++11 -I"C:/PROGRA~1/R/R-32~1.2/include" -DNDEBUG     -I"d:/RCompile/r-compiling/local/local320/include"  -mms-bitfields -mwindows -I"not found/include/mono-2.0" -I"not found/include/glib-2.0" -I"not found/lib/glib-2.0/include" -D MONO_CLR -D MONO_INST   -O2 -Wall  -std=gnu99 -mtune=core2 -c rClr.cpp -o rClrMono.o -lsupc++
cc1plus.exe: error: unrecognized command line option '-std=c++11'
cc1plus.exe: warning: command line option '-std=gnu99' is valid for C/ObjC but not for C++ [enabled by default]
make: *** [rClrMono.o] Error 1
Warning: running command 'make -f "Makevars" -f "C:/PROGRA~1/R/R-32~1.2/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-32~1.2/share/make/winshlib.mk" -f "C:\RETNLSO-NT0002\RIPOD1$\Document/.R/Makevars" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="rClr.dll" WIN=64 TCLBIN=64 ' had status 2
g++ -m64 -std=c++11 -I"C:/PROGRA~1/R/R-32~1.2/include" -DNDEBUG     -I"d:/RCompile/r-compiling/local/local320/include"  -mms-bitfields -mwindows -I"not found/include/mono-2.0" -I"not found/include/glib-2.0" -I"not found/lib/glib-2.0/include" -D MONO_CLR -D MONO_INST   -O2 -Wall  -std=gnu99 -mtune=core2 -c rClr.cpp -o rClrMono.o -lsupc++
cc1plus.exe: error: unrecognized command line option '-std=c++11'
cc1plus.exe: warning: command line option '-std=gnu99' is valid for C/ObjC but not for C++ [enabled by default]
make: *** [rClrMono.o] Error 1
Warning: running command 'make -f "Makevars" -f "C:/PROGRA~1/R/R-32~1.2/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-32~1.2/share/make/winshlib.mk" -f "C:\RETNLSO-NT0002\RIPOD1$\Document/.R/Makevars" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="rClr.dll" WIN=64 TCLBIN=64  symbols.rds' had status 2
ERROR: compilation failed for package 'rClr'
* removing 'T:/rClr.Rcheck/rClr'

Any suggestions as to what might be going on?

jmp75 commented

Running with Mono on Windows has not been actively supported for some time. At some point, the release of Mono for Windows was lagging behind other platforms, and since the vast majority of users will tap into the Microsoft .NET stack on Windows, rClr Mono support on Windows is stale. I cannot allocate time to checking it, so I would advise you use the Microsoft .NET stack. Depending on where things go over in the .NET world in the coming months/years, this may change, but right now I cannot support rClr with Mono on Windows.

Thanks for replying. So how do the build instructions change if I'm only using the .NET stack?
As I have the VS2013 package installed and the build is still returning the exact same error on build.