Env var issue on Windows #16

Closed
jeroen opened this Issue Sep 15, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@jeroen
Contributor

jeroen commented Sep 15, 2015

Odd issue on Windows. Usually RInside builds fine, but when I run cmd checkon my build server it fails because the auto generated RInsideEnvVars.h contains linebreaks (example). Any guess to what's going wrong here?

* installing *source* package 'RInside' ...
** package 'RInside' successfully unpacked and MD5 sums checked
** libs
C:/PROGRA~1/R/R-EXPE~1/bin/x64/Rscript.exe tools/RInsideAutoloads.r > RInsideAutoloads.h
C:/PROGRA~1/R/R-EXPE~1/bin/x64/Rscript.exe tools/RInsideEnvVars.r   > RInsideEnvVars.h
C:/Rtools/mingw64/bin/g++  -I"C:/PROGRA~1/R/R-EXPE~1/include" -DNDEBUG -I. -I../inst/include/   -I"D:/rcpp_lib/Rcpp/include" -I"C:/Rbuild/R-devel-win64/extsoft/include"     -O2 -Wall  -mtune=core2 -c MemBuf.cpp -o MemBuf.o
C:/Rtools/mingw64/bin/g++  -I"C:/PROGRA~1/R/R-EXPE~1/include" -DNDEBUG -I. -I../inst/include/   -I"D:/rcpp_lib/Rcpp/include" -I"C:/Rbuild/R-devel-win64/extsoft/include"     -O2 -Wall  -mtune=core2 -c RInside.cpp -o RInside.o
In file included from RInside.cpp:118:0:
RInsideEnvVars.h:9:21: warning: missing terminating " character
         "R_ENVIRON","
",
                     ^
RInsideEnvVars.h:9:9: error: missing terminating " character
         "R_ENVIRON","
",
         ^
RInsideEnvVars.h:10:1: warning: missing terminating " character
         "R_ENVIRON_USER","
",
 ^
RInsideEnvVars.h:10:1: error: missing terminating " character
RInsideEnvVars.h:11:26: warning: missing terminating " character
         "R_GZIPCMD","gzip",
                          ^
RInsideEnvVars.h:11:9: error: missing terminating " character
         "R_GZIPCMD","gzip",
         ^
RInsideEnvVars.h:12:1: warning: missing terminating " character
         "R_HOME","C:/PROGRA~1/R/R-EXPE~1",
 ^
RInsideEnvVars.h:12:1: error: missing terminating " character
In file included from RInside.cpp:118:0:
RInsideEnvVars.h:28:21: warning: missing terminating " character
         "R_UNZIPCMD","unzip",
                     ^
RInsideEnvVars.h:28:9: error: missing terminating " character
         "R_UNZIPCMD","unzip",
         ^
RInsideEnvVars.h:29:1: warning: missing terminating " character
         "R_USER","C:/Users/Jeroen/Documents",
 ^
RInsideEnvVars.h:29:1: error: missing terminating " character
make: *** [RInside.o] Error 1
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-EXPE~1/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-EXPE~1/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="RInside.dll" WIN=64 TCLBIN=64 OBJECTS="MemBuf.o RInside.o"' had status 2
C:/Rtools/mingw64/bin/g++  -I"C:/PROGRA~1/R/R-EXPE~1/include" -DNDEBUG -I. -I../inst/include/   -I"D:/rcpp_lib/Rcpp/include" -I"C:/Rbuild/R-devel-win64/extsoft/include"     -O2 -Wall  -mtune=core2 -c RInside.cpp -o RInside.o
In file included from RInside.cpp:118:0:
RInsideEnvVars.h:9:21: warning: missing terminating " character
         "R_ENVIRON","
",
                     ^
RInsideEnvVars.h:9:9: error: missing terminating " character
         "R_ENVIRON","
",
         ^
RInsideEnvVars.h:10:1: warning: missing terminating " character
         "R_ENVIRON_USER","
",
 ^
RInsideEnvVars.h:10:1: error: missing terminating " character
RInsideEnvVars.h:11:26: warning: missing terminating " character
         "R_GZIPCMD","gzip",
                          ^
RInsideEnvVars.h:11:9: error: missing terminating " character
         "R_GZIPCMD","gzip",
         ^
RInsideEnvVars.h:12:1: warning: missing terminating " character
         "R_HOME","C:/PROGRA~1/R/R-EXPE~1",
 ^
RInsideEnvVars.h:12:1: error: missing terminating " character
In file included from RInside.cpp:118:0:
RInsideEnvVars.h:28:21: warning: missing terminating " character
         "R_UNZIPCMD","unzip",
                     ^
RInsideEnvVars.h:28:9: error: missing terminating " character
         "R_UNZIPCMD","unzip",
         ^
RInsideEnvVars.h:29:1: warning: missing terminating " character
         "R_USER","C:/Users/Jeroen/Documents",
 ^
RInsideEnvVars.h:29:1: error: missing terminating " character
make: *** [RInside.o] Error 1
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-EXPE~1/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-EXPE~1/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="RInside.dll" WIN=64 TCLBIN=64 OBJECTS="MemBuf.o RInside.o" symbols.rds' had status 2
ERROR: compilation failed for package 'RInside'
* removing 'D:/rcpp_check/RInside.Rcheck/RInside'
@eddelbuettel

This comment has been minimized.

Show comment
Hide comment
@eddelbuettel

eddelbuettel Sep 15, 2015

Owner

No idea. That has worked just fine for seven or eight years. Can you poke around?

Owner

eddelbuettel commented Sep 15, 2015

No idea. That has worked just fine for seven or eight years. Can you poke around?

@jeroen

This comment has been minimized.

Show comment
Hide comment
@jeroen

jeroen Sep 15, 2015

Contributor

Fixed @ #17 .

Contributor

jeroen commented Sep 15, 2015

Fixed @ #17 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment