Installation compilation error (on windows)
Issue #261
new
I managed to fix the R version checking problems (at least on my machine; see my pull request), but there where some more errors lurking down the road. Any ideas?
Compilation parameters for rpy2's C components: include_dirs = ['D:/Programy/R-3.1.2/include', 'D:/Programy/R-3.1.2/include/i386'] library_dirs = ['D:/Programy/R-3.1.2/bin/i386'] libraries = ['R', 'm'] extra_link_args = [] running install running bdist_egg running egg_info creating rpy2.egg-info writing requirements to rpy2.egg-info\requires.txt writing rpy2.egg-info\PKG-INFO writing top-level names to rpy2.egg-info\top_level.txt writing dependency_links to rpy2.egg-info\dependency_links.txt writing manifest file 'rpy2.egg-info\SOURCES.txt' R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet" Copyright (C) 2014 The R Foundation for Statistical Computing Platform: i386-w64-mingw32/i386 (32-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under the terms of the GNU General Public License versions 2 or 3. For more information about these matters see http://www.gnu.org/licenses/. R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet" reading manifest file 'rpy2.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'README' anywhere in distribution warning: no previously-included files matching '*patch*' found anywhere in distribution warning: no previously-included files matching '*diff*' found anywhere in distribution warning: no previously-included files matching '.hg' found anywhere in distribution warning: no files found matching 'MANIFEST' warning: no files found matching 'README' warning: no files found matching 'MPL_LICENSE' warning: no files found matching 'GPL_LICENSE' warning: no files found matching 'LGPL_LICENSE' no previously-included directories found matching 'dist' warning: no files found matching 'doc\source\rpy2_logo.png' writing manifest file 'rpy2.egg-info\SOURCES.txt' installing library code to build\bdist.win32\egg running install_lib running build_py creating build creating build\lib.win32-2.7 creating build\lib.win32-2.7\rpy2 copying .\rpy\rpy_classic.py -> build\lib.win32-2.7\rpy2 copying .\rpy\tests.py -> build\lib.win32-2.7\rpy2 copying .\rpy\tests_rpy_classic.py -> build\lib.win32-2.7\rpy2 copying .\rpy\__init__.py -> build\lib.win32-2.7\rpy2 creating build\lib.win32-2.7\rpy2\rlike copying .\rpy\rlike\container.py -> build\lib.win32-2.7\rpy2\rlike copying .\rpy\rlike\functional.py -> build\lib.win32-2.7\rpy2\rlike copying .\rpy\rlike\indexing.py -> build\lib.win32-2.7\rpy2\rlike copying .\rpy\rlike\__init__.py -> build\lib.win32-2.7\rpy2\rlike creating build\lib.win32-2.7\rpy2\rlike\tests copying .\rpy\rlike\tests\test_container.py -> build\lib.win32-2.7\rpy2\rlike\tests copying .\rpy\rlike\tests\test_functional.py -> build\lib.win32-2.7\rpy2\rlike\tests copying .\rpy\rlike\tests\test_indexing.py -> build\lib.win32-2.7\rpy2\rlike\tests copying .\rpy\rlike\tests\__init__.py -> build\lib.win32-2.7\rpy2\rlike\tests creating build\lib.win32-2.7\rpy2\rinterface copying .\rpy\rinterface\__init__.py -> build\lib.win32-2.7\rpy2\rinterface creating build\lib.win32-2.7\rpy2\rinterface\tests copying .\rpy\rinterface\tests\test_Device.py -> build\lib.win32-2.7\rpy2\rinterface\tests copying .\rpy\rinterface\tests\test_EmbeddedR.py -> build\lib.win32-2.7\rpy2\rinterface\tests copying .\rpy\rinterface\tests\test_Sexp.py -> build\lib.win32-2.7\rpy2\rinterface\tests copying .\rpy\rinterface\tests\test_SexpClosure.py -> build\lib.win32-2.7\rpy2\rinterface\tests copying .\rpy\rinterface\tests\test_SexpEnvironment.py -> build\lib.win32-2.7\rpy2\rinterface\tests copying .\rpy\rinterface\tests\test_SexpExtPtr.py -> build\lib.win32-2.7\rpy2\rinterface\tests copying .\rpy\rinterface\tests\test_SexpSymbol.py -> build\lib.win32-2.7\rpy2\rinterface\tests copying .\rpy\rinterface\tests\test_SexpVector.py -> build\lib.win32-2.7\rpy2\rinterface\tests copying .\rpy\rinterface\tests\test_SexpVectorNumeric.py -> build\lib.win32-2.7\rpy2\rinterface\tests copying .\rpy\rinterface\tests\__init__.py -> build\lib.win32-2.7\rpy2\rinterface\tests creating build\lib.win32-2.7\rpy2\robjects copying .\rpy\robjects\constants.py -> build\lib.win32-2.7\rpy2\robjects copying .\rpy\robjects\conversion.py -> build\lib.win32-2.7\rpy2\robjects copying .\rpy\robjects\environments.py -> build\lib.win32-2.7\rpy2\robjects copying .\rpy\robjects\functions.py -> build\lib.win32-2.7\rpy2\robjects copying .\rpy\robjects\help.py -> build\lib.win32-2.7\rpy2\robjects copying .\rpy\robjects\language.py -> build\lib.win32-2.7\rpy2\robjects copying .\rpy\robjects\methods.py -> build\lib.win32-2.7\rpy2\robjects copying .\rpy\robjects\numpy2ri.py -> build\lib.win32-2.7\rpy2\robjects copying .\rpy\robjects\packages.py -> build\lib.win32-2.7\rpy2\robjects copying .\rpy\robjects\packages_utils.py -> build\lib.win32-2.7\rpy2\robjects copying .\rpy\robjects\pandas2ri.py -> build\lib.win32-2.7\rpy2\robjects copying .\rpy\robjects\robject.py -> build\lib.win32-2.7\rpy2\robjects copying .\rpy\robjects\vectors.py -> build\lib.win32-2.7\rpy2\robjects copying .\rpy\robjects\__init__.py -> build\lib.win32-2.7\rpy2\robjects creating build\lib.win32-2.7\rpy2\robjects\tests copying .\rpy\robjects\tests\testArray.py -> build\lib.win32-2.7\rpy2\robjects\tests copying .\rpy\robjects\tests\testDataFrame.py -> build\lib.win32-2.7\rpy2\robjects\tests copying .\rpy\robjects\tests\testEnvironment.py -> build\lib.win32-2.7\rpy2\robjects\tests copying .\rpy\robjects\tests\testFormula.py -> build\lib.win32-2.7\rpy2\robjects\tests copying .\rpy\robjects\tests\testFunction.py -> build\lib.win32-2.7\rpy2\robjects\tests copying .\rpy\robjects\tests\testHelp.py -> build\lib.win32-2.7\rpy2\robjects\tests copying .\rpy\robjects\tests\testLanguage.py -> build\lib.win32-2.7\rpy2\robjects\tests copying .\rpy\robjects\tests\testMethods.py -> build\lib.win32-2.7\rpy2\robjects\tests copying .\rpy\robjects\tests\testNumpyConversions.py -> build\lib.win32-2.7\rpy2\robjects\tests copying .\rpy\robjects\tests\testPackages.py -> build\lib.win32-2.7\rpy2\robjects\tests copying .\rpy\robjects\tests\testPandasConversions.py -> build\lib.win32-2.7\rpy2\robjects\tests copying .\rpy\robjects\tests\testRObject.py -> build\lib.win32-2.7\rpy2\robjects\tests copying .\rpy\robjects\tests\testRobjects.py -> build\lib.win32-2.7\rpy2\robjects\tests copying .\rpy\robjects\tests\testVector.py -> build\lib.win32-2.7\rpy2\robjects\tests copying .\rpy\robjects\tests\__init__.py -> build\lib.win32-2.7\rpy2\robjects\tests creating build\lib.win32-2.7\rpy2\robjects\lib copying .\rpy\robjects\lib\ggplot2.py -> build\lib.win32-2.7\rpy2\robjects\lib copying .\rpy\robjects\lib\grid.py -> build\lib.win32-2.7\rpy2\robjects\lib copying .\rpy\robjects\lib\__init__.py -> build\lib.win32-2.7\rpy2\robjects\lib creating build\lib.win32-2.7\rpy2\robjects\lib\tests copying .\rpy\robjects\lib\tests\test_ggplot2.py -> build\lib.win32-2.7\rpy2\robjects\lib\tests copying .\rpy\robjects\lib\tests\__init__.py -> build\lib.win32-2.7\rpy2\robjects\lib\tests creating build\lib.win32-2.7\rpy2\interactive copying .\rpy\interactive\packages.py -> build\lib.win32-2.7\rpy2\interactive copying .\rpy\interactive\process_revents.py -> build\lib.win32-2.7\rpy2\interactive copying .\rpy\interactive\__init__.py -> build\lib.win32-2.7\rpy2\interactive creating build\lib.win32-2.7\rpy2\interactive\tests copying .\rpy\interactive\tests\__init__.py -> build\lib.win32-2.7\rpy2\interactive\tests creating build\lib.win32-2.7\rpy2\ipython copying .\rpy\ipython\ggplot.py -> build\lib.win32-2.7\rpy2\ipython copying .\rpy\ipython\html.py -> build\lib.win32-2.7\rpy2\ipython copying .\rpy\ipython\rmagic.py -> build\lib.win32-2.7\rpy2\ipython copying .\rpy\ipython\__init__.py -> build\lib.win32-2.7\rpy2\ipython creating build\lib.win32-2.7\rpy2\ipython\tests copying .\rpy\ipython\tests\test_rmagic.py -> build\lib.win32-2.7\rpy2\ipython\tests copying .\rpy\ipython\tests\__init__.py -> build\lib.win32-2.7\rpy2\ipython\tests running build_ext building 'rpy2.rinterface._rinterface' extension creating build\temp.win32-2.7 creating build\temp.win32-2.7\Release creating build\temp.win32-2.7\Release\rpy creating build\temp.win32-2.7\Release\rpy\rinterface D:\Python\Anaconda\Scripts\gcc.bat -mdll -O -Wall -DWin32=1 -I.\rpy\rinterface -ID:/Programy/R-3.1.2/include -ID:/Programy/R-3.1.2/include/i386 -ID:\Python\Anaconda\include -ID:\Python\Anaconda\PC -c .\rpy\rinterface\_rinterface.c -o build\temp.win32-2.7\Release\.\rpy\rinterface\_rinterface.o In file included from .\rpy\rinterface\_rinterface.c:122:0: .\rpy\rinterface\embeddedr.c: In function 'SexpObject_clear': .\rpy\rinterface\embeddedr.c:48:12: warning: unused variable 'res' [-Wunused-variable] In file included from .\rpy\rinterface\_rinterface.c:125:0: .\rpy\rinterface\sexp.c: In function 'Sexp_init': .\rpy\rinterface\sexp.c:738:13: warning: unused variable 'copy' [-Wunused-variable] In file included from .\rpy\rinterface\_rinterface.c:129:0: .\rpy\rinterface\sequence.c: In function 'RPy_SeqToINTSXP': .\rpy\rinterface\sequence.c:1185:8: warning: unknown conversion type character 'z' in format [-Wformat] .\rpy\rinterface\sequence.c:1185:8: warning: too many arguments for format [-Wformat-extra-args] .\rpy\rinterface\sequence.c:1195:6: warning: unknown conversion type character 'z' in format [-Wformat] .\rpy\rinterface\sequence.c:1195:6: warning: too many arguments for format [-Wformat-extra-args] .\rpy\rinterface\sequence.c: In function 'RPy_IterToINTSXP': .\rpy\rinterface\sequence.c:1236:6: warning: unknown conversion type character 'z' in format [-Wformat] .\rpy\rinterface\sequence.c:1236:6: warning: too many arguments for format [-Wformat-extra-args] .\rpy\rinterface\sequence.c:1256:8: warning: unknown conversion type character 'z' in format [-Wformat] .\rpy\rinterface\sequence.c:1256:8: warning: too many arguments for format [-Wformat-extra-args] .\rpy\rinterface\sequence.c:1265:6: warning: unknown conversion type character 'z' in format [-Wformat] .\rpy\rinterface\sequence.c:1265:6: warning: too many arguments for format [-Wformat-extra-args] .\rpy\rinterface\sequence.c: In function 'RPy_SeqToREALSXP': .\rpy\rinterface\sequence.c:1424:6: warning: unknown conversion type character 'z' in format [-Wformat] .\rpy\rinterface\sequence.c:1424:6: warning: too many arguments for format [-Wformat-extra-args] .\rpy\rinterface\sequence.c: In function 'RPy_IterToREALSXP': .\rpy\rinterface\sequence.c:1462:6: warning: unknown conversion type character 'z' in format [-Wformat] .\rpy\rinterface\sequence.c:1462:6: warning: too many arguments for format [-Wformat-extra-args] .\rpy\rinterface\sequence.c:1475:6: warning: unknown conversion type character 'z' in format [-Wformat] .\rpy\rinterface\sequence.c:1475:6: warning: too many arguments for format [-Wformat-extra-args] .\rpy\rinterface\sequence.c: In function 'RPy_SeqToSTRSXP': .\rpy\rinterface\sequence.c:1637:8: warning: unknown conversion type character 'z' in format [-Wformat] .\rpy\rinterface\sequence.c:1637:8: warning: too many arguments for format [-Wformat-extra-args] .\rpy\rinterface\sequence.c:1669:8: warning: unknown conversion type character 'z' in format [-Wformat] .\rpy\rinterface\sequence.c:1669:8: warning: too many arguments for format [-Wformat-extra-args] .\rpy\rinterface\sequence.c: In function 'RPy_SeqToLGLSXP': .\rpy\rinterface\sequence.c:1854:6: warning: unknown conversion type character 'z' in format [-Wformat] .\rpy\rinterface\sequence.c:1854:6: warning: too many arguments for format [-Wformat-extra-args] .\rpy\rinterface\sequence.c: In function 'RPy_SeqToRAWSXP': .\rpy\rinterface\sequence.c:2014:6: warning: unknown conversion type character 'z' in format [-Wformat] .\rpy\rinterface\sequence.c:2014:6: warning: too many arguments for format [-Wformat-extra-args] .\rpy\rinterface\sequence.c:2021:6: warning: unknown conversion type character 'z' in format [-Wformat] .\rpy\rinterface\sequence.c:2021:6: warning: too many arguments for format [-Wformat-extra-args] .\rpy\rinterface\sequence.c: In function 'RPy_SeqToCPLXSXP': .\rpy\rinterface\sequence.c:2161:6: warning: unknown conversion type character 'z' in format [-Wformat] .\rpy\rinterface\sequence.c:2161:6: warning: too many arguments for format [-Wformat-extra-args] .\rpy\rinterface\sequence.c: In function 'RPy_SeqToVECSXP': .\rpy\rinterface\sequence.c:2369:6: warning: unknown conversion type character 'z' in format [-Wformat] .\rpy\rinterface\sequence.c:2369:6: warning: too many arguments for format [-Wformat-extra-args] .\rpy\rinterface\_rinterface.c: In function 'EmbeddedR_CleanUp': .\rpy\rinterface\_rinterface.c:1041:7: warning: implicit declaration of function 'jump_to_toplevel' [-Wimplicit-function-declaration] .\rpy\rinterface\_rinterface.c: In function 'EmbeddedR_init': .\rpy\rinterface\_rinterface.c:1313:19: warning: assignment from incompatible pointer type [enabled by default] .\rpy\rinterface\_rinterface.c:1320:5: error: 'structRstart' has no member named 'ResetConsole' .\rpy\rinterface\_rinterface.c: In function 'newSEXP': .\rpy\rinterface\_rinterface.c:3192:2: warning: unknown conversion type character 'z' in format [-Wformat] .\rpy\rinterface\_rinterface.c:3192:2: warning: too many arguments for format [-Wformat-extra-args] In file included from .\rpy\rinterface\_rinterface.c:129:0: .\rpy\rinterface\_rinterface.c: At top level: .\rpy\rinterface\sequence.c:2174:1: warning: 'ComplexVectorSexp_AsSexp' defined but not used [-Wunused-function] .\rpy\rinterface\_rinterface.c:682:1: warning: 'EmbeddedR_FlushConsole' defined but not used [-Wunused-function] .\rpy\rinterface\_rinterface.c:764:1: warning: 'EmbeddedR_ChooseFile' defined but not used [-Wunused-function] .\rpy\rinterface\_rinterface.c:868:1: warning: 'EmbeddedR_ShowFiles' defined but not used [-Wunused-function] .\rpy\rinterface\_rinterface.c:1007:1: warning: 'EmbeddedR_CleanUp' defined but not used [-Wunused-function] error: command 'D:\\Python\\Anaconda\\Scripts\\gcc.bat' failed with exit status 1
Comments (4)
-
-
I also had this error, but now I am instead getting
[kamera] c:\Users\ahju\Documents\Kamera\rpy2>python setup.py build R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet" Copyright (C) 2014 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under the terms of the GNU General Public License versions 2 or 3. For more information about these matters see http://www.gnu.org/licenses/. R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet" C:\PROGRA~1\R\R-31~1.2\bin\x64\R CMD config --ldflags C:\PROGRA~1\R\R-31~1.2\bin\x64\R CMD config --cppflags Compilation parameters for rpy2's C components: include_dirs = ['C:/PROGRA~1/R/R-31~1.2/include', 'C:/PROGRA~1/R/R-31~1.2/include/x64'] library_dirs = ['C:/PROGRA~1/R/R-31~1.2/bin/x64'] libraries = ['R', 'm'] extra_link_args = ['-m64'] running build running build_py copying .\rpy\__init__.py -> build\lib.win-amd64-3.4\rpy2 running build_ext R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet" Copyright (C) 2014 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under the terms of the GNU General Public License versions 2 or 3. For more information about these matters see http://www.gnu.org/licenses/. R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet" building 'rpy2.rinterface._rinterface' extension c:\appl\Rtools\gcc-4.6.3\bin\gcc.exe -mdll -O -Wall -DWin32=1 -DWin64=1 -DMS_WIN64=1 -I.\rpy\rinterface -IC:/PROGRA~1/R/R-31~1.2/inc lude -IC:/PROGRA~1/R/R-31~1.2/include/x64 -Ic:\appl\Anaconda3\envs\kamera\include -Ic:\appl\Anaconda3\envs\kamera\include -c .\rpy\r interface\_rinterface.c -o build\temp.win-amd64-3.4\Release\.\rpy\rinterface\_rinterface.o -m64 In file included from .\rpy\rinterface\_rinterface.c:122:0: .\rpy\rinterface\/embeddedr.c: In function 'SexpObject_clear': .\rpy\rinterface\/embeddedr.c:48:12: warning: unused variable 'res' [-Wunused-variable] In file included from .\rpy\rinterface\_rinterface.c:125:0: .\rpy\rinterface\/sexp.c: In function 'Sexp_init': .\rpy\rinterface\/sexp.c:738:13: warning: unused variable 'copy' [-Wunused-variable] In file included from .\rpy\rinterface\_rinterface.c:129:0: .\rpy\rinterface\/sequence.c: In function 'VectorSexp_ass_slice': .\rpy\rinterface\/sequence.c:482:11: warning: variable 'len_R' set but not used [-Wunused-but-set-variable] .\rpy\rinterface\_rinterface.c: In function 'EmbeddedR_CleanUp': .\rpy\rinterface\_rinterface.c:953:7: warning: implicit declaration of function 'jump_to_toplevel' [-Wimplicit-function-declaration] .\rpy\rinterface\_rinterface.c: In function 'EmbeddedR_init': .\rpy\rinterface\_rinterface.c:1225:19: warning: assignment from incompatible pointer type [enabled by default] .\rpy\rinterface\_rinterface.c:1227:22: warning: assignment from incompatible pointer type [enabled by default] .\rpy\rinterface\_rinterface.c: In function 'newSEXP': .\rpy\rinterface\_rinterface.c:3101:2: warning: unknown conversion type character 'z' in format [-Wformat] .\rpy\rinterface\_rinterface.c:3101:2: warning: too many arguments for format [-Wformat-extra-args] .\rpy\rinterface\_rinterface.c: At top level: .\rpy\rinterface\/sequence.c:2195:1: warning: 'ComplexVectorSexp_AsSexp' defined but not used [-Wunused-function] .\rpy\rinterface\_rinterface.c:629:1: warning: 'EmbeddedR_FlushConsole' defined but not used [-Wunused-function] .\rpy\rinterface\_rinterface.c:676:1: warning: 'EmbeddedR_ChooseFile' defined but not used [-Wunused-function] .\rpy\rinterface\_rinterface.c:780:1: warning: 'EmbeddedR_ShowFiles' defined but not used [-Wunused-function] .\rpy\rinterface\_rinterface.c:919:1: warning: 'EmbeddedR_CleanUp' defined but not used [-Wunused-function] writing build\temp.win-amd64-3.4\Release\.\rpy\rinterface\_rinterface.def error: don't know how to compile C/C++ code on platform 'nt' with '<distutils.cygwinccompiler.Mingw32CCompiler object at 0x000000000 3412400>' compiler
-
Hi @Laurent Gautier - Sorry if this is discussed elsewhere, but is there a plan to implement the workaround you mentioned above to get past this for Windows users? Thanks!
-
Unfortunately I did not. I currently do not have the resources (time) to work on Windows support. I am willing to review and accept reasonable pull requests though.
- Log in to comment
R's
ResetConsole
is not defined on Windows (according to the error message).A hack would be to conditionally take that code out on Windows, an better fix might be to check if it exists under a different name.