Taewoo Kim
2017-10-06 20:21:27 UTC
Sorry for the noob question
When i import theano in python, i get this strange error (seems to be C++
related). Yes, i have gcc-g++ compiler installed on my cygwin, along with
Visual C++ 2015 Build Tools.
Not even sure what to Google... normally I would try and find my own
answers, but not sure how to copy/paste this error into tiny search box
For the record, I tried conda installing libpython, mingw, No luck
Environment - Anaconda 5 w/python 3.6 on Cygwin / Windows (yes, im lame)
Any suggestions?
00001 #include
00002 #include "theano_mod_helper.h"
00003 #include "structmember.h"
00004 #include
00005
00006 #if PY_VERSION_HEX >= 0x03000000
00007 #include "numpy/npy_3kcompat.h"
00008 #define PyCObject_AsVoidPtr NpyCapsule_AsVoidPtr
00009 #define PyCObject_GetDesc NpyCapsule_GetDesc
00010 #define PyCObject_Check NpyCapsule_Check
00011 #endif
00012
00013 #ifndef Py_TYPE
... (truncating a bunch)
01090
01091 lazylinker_ext_CLazyLinkerType.tp_new = PyType_GenericNew;
01092 if (PyType_Ready(&lazylinker_ext_CLazyLinkerType) < 0)
01093 return RETVAL;
01094 #if defined(NPY_PY3K)
01095 m = PyModule_Create(&moduledef);
01096 #else
01097 m = Py_InitModule3("lazylinker_ext", lazylinker_ext_methods,
01098 "Example module that creates an extension type.");
01099 #endif
01100 Py_INCREF(&lazylinker_ext_CLazyLinkerType);
01101 PyModule_AddObject(m, "CLazyLinker", (PyObject
*)&lazylinker_ext_CLazyLinkerType);
01102
01103 return RETVAL;
01104 }
01105
Problem occurred during compilation with the command line below:
"C:\cygwin64\bin\g++.exe" -shared -g -D_hypot=hypot -march=haswell -mmmx
-mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe
-maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop
-mbmi -mbmi2 -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm
-mno-hle -mrdrnd -mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr
-mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf
-mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq
-mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb
-mno-mwaitx -mno-clzero -mno-pku --param l1-cache-size=32 --param
l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=haswell
-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64
-I"C:\Anaconda3\lib\site-packages\numpy\core\include"
-I"C:\Anaconda3\include" -I"C:\Anaconda3\lib\site-packages\theano\gof"
-L"C:\Anaconda3\libs" -L"C:\Anaconda3" -o
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\lazylinker_ext.pyd
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp
-lpython36
Traceback (most recent call last):
File "C:\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py", line 75,
in
raise ImportError()
ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py", line 92,
in
raise ImportError()
ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Anaconda3\lib\site-packages\theano__init__.py", line 66, in
from theano.compile import (
File "C:\Anaconda3\lib\site-packages\theano\compile__init__.py", line 10,
in
from theano.compile.function_module import *
File "C:\Anaconda3\lib\site-packages\theano\compile\function_module.py",
line 21, in
import theano.compile.mode
File "C:\Anaconda3\lib\site-packages\theano\compile\mode.py", line 10, in
import theano.gof.vm
File "C:\Anaconda3\lib\site-packages\theano\gof\vm.py", line 662, in
from . import lazylinker_c
File "C:\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py", line 127,
in
preargs=args)
File "C:\Anaconda3\lib\site-packages\theano\gof\cmodule.py", line 2316, in
compile_str
(status, compile_stderr.replace('\n', '. ')))
Exception: Compilation failed (return status=1): In file included from
C:\Anaconda3\include/Python.h:50:0,. from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:1:.
C:\Anaconda3\include/pyport.h:686:2: error: #error "LONG_BIT definition
appears wrong for platform (bad gcc/glibc config?).". #error "LONG_BIT
definition appears wrong for platform (bad gcc/glibc config?).". ^~~~~. In
file included from C:\Anaconda3\include/Python.h:133:0,. from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:1:.
C:\Anaconda3\include/fileutils.h:31:5: error: â*int64â does not name a
type. _int64 stsize;. ^~~~~~~. In file included from
/usr/include/sys/stat.h:22:0,. from C:\Anaconda3\include/pyport.h:227,.
from C:\Anaconda3\include/Python.h:50,. from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:1:.
C:\Anaconda3\include/fileutils.h:32:12: error: expected â;â at end of
member declaration. time_t st_atime;. ^.
C:\Anaconda3\include/fileutils.h:32:12: error: expected unqualified-id
before â.â token. time_t st_atime;. ^.
C:\Anaconda3\include/fileutils.h:34:12: error: expected â;â at end of
member declaration. time_t st_mtime;. ^.
C:\Anaconda3\include/fileutils.h:34:12: error: expected unqualified-id
before â.â token. time_t st_mtime;. ^.
C:\Anaconda3\include/fileutils.h:36:12: error: expected â;â at end of
member declaration. time_t st_ctime;. ^.
C:\Anaconda3\include/fileutils.h:36:12: error: expected unqualified-id
before â.â token. time_t st_ctime;. ^. In file included from
C:\Anaconda3\include/Python.h:8:0,. from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:1:.
C:\Anaconda3\include/pyconfig.h:269:23: error: â*int64â does not name a
type. # define PY_LONG_LONG *_int64. ^.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy*common.h:311:9:
note: in expansion of macro âPY_LONG_LONGâ. typedef PY_LONG_LONG
npy_longlong;. ^~~~~~~~~~~~. In file included from
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h:22:0,.
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:7:.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:312:31:
error: expected initializer before ânpy_ulonglongâ. typedef unsigned
PY_LONG_LONG npy_ulonglong;. ^~~~~~~~~~~~~. In file included from
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h:22:0,.
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:7:.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:613:17:
error: ânpy_longlongâ does not name a type. typedef npy_longlong
npy_int64;. ^~~~~~~~~~~~.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:614:17:
error: ânpy_ulonglongâ does not name a type. typedef npy_ulonglong
npy_uint64;. ^~~~~~~~~~~~~.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:1092:9:
error: ânpy_int64â does not name a type. typedef npy_int64 npy_timedelta;.
^~~~~~~~~.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:1093:9:
error: ânpy_int64â does not name a type. typedef npy_int64 npy_datetime;.
^~~~~~~~~. In file included from
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarrayobject.h:18:0,.
from
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h:23,.
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:7:.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:755:9:
error: ânpy_int64â does not name a type. npy_int64 year;. ^~~~~~~~~.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:761:9:
error: ânpy_int64â does not name a type. npy_int64 day;. ^~~~~~~~~. In file
included from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:7:0:.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h: In
function âint npy_PyFile_DupClose2(PyObject*, FILE*, off_t)â:.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h:288:41:
error: âlseekâ was not declared in this scope. if (npy_lseek(fd, orig_pos,
SEEK_SET) == -1) {. ^.
===============================
===============================
In file included from C:\Anaconda3\include/Python.h:50:0,
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:1:
C:\Anaconda3\include/pyport.h:686:2: error: #error "LONG_BIT definition
appears wrong for platform (bad gcc/glibc config?)."
#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc
config?)."
^~~~~
In file included from C:\Anaconda3\include/Python.h:133:0,
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:1:
C:\Anaconda3\include/fileutils.h:31:5: error: â__int64â does not name a type
*_int64 st*size;
^~~~~~~
In file included from /usr/include/sys/stat.h:22:0,
from C:\Anaconda3\include/pyport.h:227,
from C:\Anaconda3\include/Python.h:50,
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:1:
C:\Anaconda3\include/fileutils.h:32:12: error: expected â;â at end of
member declaration
time_t st_atime;
^
C:\Anaconda3\include/fileutils.h:32:12: error: expected unqualified-id
before â.â token
time_t st_atime;
^
C:\Anaconda3\include/fileutils.h:34:12: error: expected â;â at end of
member declaration
time_t st_mtime;
^
C:\Anaconda3\include/fileutils.h:34:12: error: expected unqualified-id
before â.â token
time_t st_mtime;
^
C:\Anaconda3\include/fileutils.h:36:12: error: expected â;â at end of
member declaration
time_t st_ctime;
^
C:\Anaconda3\include/fileutils.h:36:12: error: expected unqualified-id
before â.â token
time_t st_ctime;
^
In file included from C:\Anaconda3\include/Python.h:8:0,
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:1:
C:\Anaconda3\include/pyconfig.h:269:23: error: â__int64â does not name a
type
# define PY_LONG_LONG __int64
^
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:311:9:
note: in expansion of macro âPY_LONG_LONGâ
typedef PY_LONG_LONG npy_longlong;
^~~~~~~~~~~~
In file included from
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h:22:0,
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:7:
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:312:31:
error: expected initializer before ânpy_ulonglongâ
typedef unsigned PY_LONG_LONG npy_ulonglong;
^~~~~~~~~~~~~
In file included from
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h:22:0,
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:7:
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:613:17:
error: ânpy_longlongâ does not name a type
typedef npy_longlong npy_int64;
^~~~~~~~~~~~
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:614:17:
error: ânpy_ulonglongâ does not name a type
typedef npy_ulonglong npy_uint64;
^~~~~~~~~~~~~
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:1092:9:
error: ânpy_int64â does not name a type
typedef npy_int64 npy_timedelta;
^~~~~~~~~
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:1093:9:
error: ânpy_int64â does not name a type
typedef npy_int64 npy_datetime;
^~~~~~~~~
In file included from
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarrayobject.h:18:0,
from
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h:23,
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:7:
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:755:9:
error: ânpy_int64â does not name a type
npy_int64 year;
^~~~~~~~~
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:761:9:
error: ânpy_int64â does not name a type
npy_int64 day;
^~~~~~~~~
In file included from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:7:0:
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h: In
function âint npy_PyFile_DupClose2(PyObject*, FILE*, off_t)â:
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h:288:41:
error: âlseekâ was not declared in this scope
if (npy_lseek(fd, orig_pos, SEEK_SET) == -1) {
^
When i import theano in python, i get this strange error (seems to be C++
related). Yes, i have gcc-g++ compiler installed on my cygwin, along with
Visual C++ 2015 Build Tools.
Not even sure what to Google... normally I would try and find my own
answers, but not sure how to copy/paste this error into tiny search box
For the record, I tried conda installing libpython, mingw, No luck
Environment - Anaconda 5 w/python 3.6 on Cygwin / Windows (yes, im lame)
Any suggestions?
00001 #include
00002 #include "theano_mod_helper.h"
00003 #include "structmember.h"
00004 #include
00005
00006 #if PY_VERSION_HEX >= 0x03000000
00007 #include "numpy/npy_3kcompat.h"
00008 #define PyCObject_AsVoidPtr NpyCapsule_AsVoidPtr
00009 #define PyCObject_GetDesc NpyCapsule_GetDesc
00010 #define PyCObject_Check NpyCapsule_Check
00011 #endif
00012
00013 #ifndef Py_TYPE
... (truncating a bunch)
01090
01091 lazylinker_ext_CLazyLinkerType.tp_new = PyType_GenericNew;
01092 if (PyType_Ready(&lazylinker_ext_CLazyLinkerType) < 0)
01093 return RETVAL;
01094 #if defined(NPY_PY3K)
01095 m = PyModule_Create(&moduledef);
01096 #else
01097 m = Py_InitModule3("lazylinker_ext", lazylinker_ext_methods,
01098 "Example module that creates an extension type.");
01099 #endif
01100 Py_INCREF(&lazylinker_ext_CLazyLinkerType);
01101 PyModule_AddObject(m, "CLazyLinker", (PyObject
*)&lazylinker_ext_CLazyLinkerType);
01102
01103 return RETVAL;
01104 }
01105
Problem occurred during compilation with the command line below:
"C:\cygwin64\bin\g++.exe" -shared -g -D_hypot=hypot -march=haswell -mmmx
-mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe
-maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop
-mbmi -mbmi2 -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm
-mno-hle -mrdrnd -mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr
-mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf
-mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq
-mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb
-mno-mwaitx -mno-clzero -mno-pku --param l1-cache-size=32 --param
l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=haswell
-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64
-I"C:\Anaconda3\lib\site-packages\numpy\core\include"
-I"C:\Anaconda3\include" -I"C:\Anaconda3\lib\site-packages\theano\gof"
-L"C:\Anaconda3\libs" -L"C:\Anaconda3" -o
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\lazylinker_ext.pyd
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp
-lpython36
Traceback (most recent call last):
File "C:\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py", line 75,
in
raise ImportError()
ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py", line 92,
in
raise ImportError()
ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Anaconda3\lib\site-packages\theano__init__.py", line 66, in
from theano.compile import (
File "C:\Anaconda3\lib\site-packages\theano\compile__init__.py", line 10,
in
from theano.compile.function_module import *
File "C:\Anaconda3\lib\site-packages\theano\compile\function_module.py",
line 21, in
import theano.compile.mode
File "C:\Anaconda3\lib\site-packages\theano\compile\mode.py", line 10, in
import theano.gof.vm
File "C:\Anaconda3\lib\site-packages\theano\gof\vm.py", line 662, in
from . import lazylinker_c
File "C:\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py", line 127,
in
preargs=args)
File "C:\Anaconda3\lib\site-packages\theano\gof\cmodule.py", line 2316, in
compile_str
(status, compile_stderr.replace('\n', '. ')))
Exception: Compilation failed (return status=1): In file included from
C:\Anaconda3\include/Python.h:50:0,. from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:1:.
C:\Anaconda3\include/pyport.h:686:2: error: #error "LONG_BIT definition
appears wrong for platform (bad gcc/glibc config?).". #error "LONG_BIT
definition appears wrong for platform (bad gcc/glibc config?).". ^~~~~. In
file included from C:\Anaconda3\include/Python.h:133:0,. from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:1:.
C:\Anaconda3\include/fileutils.h:31:5: error: â*int64â does not name a
type. _int64 stsize;. ^~~~~~~. In file included from
/usr/include/sys/stat.h:22:0,. from C:\Anaconda3\include/pyport.h:227,.
from C:\Anaconda3\include/Python.h:50,. from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:1:.
C:\Anaconda3\include/fileutils.h:32:12: error: expected â;â at end of
member declaration. time_t st_atime;. ^.
C:\Anaconda3\include/fileutils.h:32:12: error: expected unqualified-id
before â.â token. time_t st_atime;. ^.
C:\Anaconda3\include/fileutils.h:34:12: error: expected â;â at end of
member declaration. time_t st_mtime;. ^.
C:\Anaconda3\include/fileutils.h:34:12: error: expected unqualified-id
before â.â token. time_t st_mtime;. ^.
C:\Anaconda3\include/fileutils.h:36:12: error: expected â;â at end of
member declaration. time_t st_ctime;. ^.
C:\Anaconda3\include/fileutils.h:36:12: error: expected unqualified-id
before â.â token. time_t st_ctime;. ^. In file included from
C:\Anaconda3\include/Python.h:8:0,. from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:1:.
C:\Anaconda3\include/pyconfig.h:269:23: error: â*int64â does not name a
type. # define PY_LONG_LONG *_int64. ^.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy*common.h:311:9:
note: in expansion of macro âPY_LONG_LONGâ. typedef PY_LONG_LONG
npy_longlong;. ^~~~~~~~~~~~. In file included from
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h:22:0,.
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:7:.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:312:31:
error: expected initializer before ânpy_ulonglongâ. typedef unsigned
PY_LONG_LONG npy_ulonglong;. ^~~~~~~~~~~~~. In file included from
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h:22:0,.
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:7:.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:613:17:
error: ânpy_longlongâ does not name a type. typedef npy_longlong
npy_int64;. ^~~~~~~~~~~~.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:614:17:
error: ânpy_ulonglongâ does not name a type. typedef npy_ulonglong
npy_uint64;. ^~~~~~~~~~~~~.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:1092:9:
error: ânpy_int64â does not name a type. typedef npy_int64 npy_timedelta;.
^~~~~~~~~.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:1093:9:
error: ânpy_int64â does not name a type. typedef npy_int64 npy_datetime;.
^~~~~~~~~. In file included from
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarrayobject.h:18:0,.
from
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h:23,.
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:7:.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:755:9:
error: ânpy_int64â does not name a type. npy_int64 year;. ^~~~~~~~~.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:761:9:
error: ânpy_int64â does not name a type. npy_int64 day;. ^~~~~~~~~. In file
included from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:7:0:.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h: In
function âint npy_PyFile_DupClose2(PyObject*, FILE*, off_t)â:.
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h:288:41:
error: âlseekâ was not declared in this scope. if (npy_lseek(fd, orig_pos,
SEEK_SET) == -1) {. ^.
===============================
===============================
In file included from C:\Anaconda3\include/Python.h:50:0,
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:1:
C:\Anaconda3\include/pyport.h:686:2: error: #error "LONG_BIT definition
appears wrong for platform (bad gcc/glibc config?)."
#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc
config?)."
^~~~~
In file included from C:\Anaconda3\include/Python.h:133:0,
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:1:
C:\Anaconda3\include/fileutils.h:31:5: error: â__int64â does not name a type
*_int64 st*size;
^~~~~~~
In file included from /usr/include/sys/stat.h:22:0,
from C:\Anaconda3\include/pyport.h:227,
from C:\Anaconda3\include/Python.h:50,
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:1:
C:\Anaconda3\include/fileutils.h:32:12: error: expected â;â at end of
member declaration
time_t st_atime;
^
C:\Anaconda3\include/fileutils.h:32:12: error: expected unqualified-id
before â.â token
time_t st_atime;
^
C:\Anaconda3\include/fileutils.h:34:12: error: expected â;â at end of
member declaration
time_t st_mtime;
^
C:\Anaconda3\include/fileutils.h:34:12: error: expected unqualified-id
before â.â token
time_t st_mtime;
^
C:\Anaconda3\include/fileutils.h:36:12: error: expected â;â at end of
member declaration
time_t st_ctime;
^
C:\Anaconda3\include/fileutils.h:36:12: error: expected unqualified-id
before â.â token
time_t st_ctime;
^
In file included from C:\Anaconda3\include/Python.h:8:0,
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:1:
C:\Anaconda3\include/pyconfig.h:269:23: error: â__int64â does not name a
type
# define PY_LONG_LONG __int64
^
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:311:9:
note: in expansion of macro âPY_LONG_LONGâ
typedef PY_LONG_LONG npy_longlong;
^~~~~~~~~~~~
In file included from
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h:22:0,
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:7:
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:312:31:
error: expected initializer before ânpy_ulonglongâ
typedef unsigned PY_LONG_LONG npy_ulonglong;
^~~~~~~~~~~~~
In file included from
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h:22:0,
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:7:
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:613:17:
error: ânpy_longlongâ does not name a type
typedef npy_longlong npy_int64;
^~~~~~~~~~~~
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:614:17:
error: ânpy_ulonglongâ does not name a type
typedef npy_ulonglong npy_uint64;
^~~~~~~~~~~~~
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:1092:9:
error: ânpy_int64â does not name a type
typedef npy_int64 npy_timedelta;
^~~~~~~~~
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_common.h:1093:9:
error: ânpy_int64â does not name a type
typedef npy_int64 npy_datetime;
^~~~~~~~~
In file included from
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarrayobject.h:18:0,
from
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h:23,
from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:7:
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:755:9:
error: ânpy_int64â does not name a type
npy_int64 year;
^~~~~~~~~
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:761:9:
error: ânpy_int64â does not name a type
npy_int64 day;
^~~~~~~~~
In file included from
C:\Users\T\AppData\Local\Theano\compiledir_Windows-8.1-6.3.9600-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.6.2-64\lazylinker_ext\mod.cpp:7:0:
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h: In
function âint npy_PyFile_DupClose2(PyObject*, FILE*, off_t)â:
C:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_3kcompat.h:288:41:
error: âlseekâ was not declared in this scope
if (npy_lseek(fd, orig_pos, SEEK_SET) == -1) {
^
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.