Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Env var issue on Windows #16

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

Env var issue on Windows #16

jeroen opened this issue Sep 15, 2015 · 2 comments

Comments

@jeroen
Copy link
Contributor

@jeroen 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
Copy link
Owner

@eddelbuettel eddelbuettel commented Sep 15, 2015

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

@jeroen
Copy link
Contributor Author

@jeroen 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.