Skip to content

Instantly share code, notes, and snippets.

@icoxfog417
Created January 22, 2015 04:39
Show Gist options
  • Save icoxfog417/f9ead88d5436933c7b84 to your computer and use it in GitHub Desktop.
Save icoxfog417/f9ead88d5436933c7b84 to your computer and use it in GitHub Desktop.
theano test error'2015/1/22(
Problem occurred during compilation with the command line below:
c:\Users\tie301837\Documents\environments\msys32\usr\bin\g++.exe -shared -g -O3
-fno-math-errno -Wno-unused-label -Wno-unused-variable -Wno-write-strings -share
d -IC:/Users/tie301837/Documents/environments/msys32/mingw32/include -LC:/Users/
tie301837/Documents/environments/Python/Continuum/Miniconda3/envs/deeplearn/libs
-lpython34 -march=haswell -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse
4a -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 -
mrtm -mhle -mrdrnd -mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mx
save -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-pref
etchwt1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-
size=8192 -mtune=haswell -D NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m32 -Ic:\
Users\tie301837\Documents\works\Sarutahiko\recurrent_nn\venv\lib\site-packages\n
umpy\core\include -Ic:\Users\tie301837\Documents\environments\Python\Continuum\M
iniconda3\include -o C:\Users\tie301837\AppData\Local\Theano\compiledir_Windows-
7-6.1.7601-SP1-x86_Family_6_Model_60_Stepping_3_GenuineIntel-3.4.1-32\tmpyqe8ico
e\m3f3682a89754bfea7de9b0f463909245.pyd C:\Users\tie301837\AppData\Local\Theano\
compiledir_Windows-7-6.1.7601-SP1-x86_Family_6_Model_60_Stepping_3_GenuineIntel-
3.4.1-32\tmpyqe8icoe\mod.cpp -Lc:\Users\tie301837\Documents\environments\Python\
Continuum\Miniconda3\libs -Lc:\Users\tie301837\Documents\environments\Python\Con
tinuum\Miniconda3 -lpython34
ERROR (theano.gof.opt): Optimization failure due to: constant_folding
ERROR (theano.gof.opt): TRACEBACK:
ERROR (theano.gof.opt): Traceback (most recent call last):
File "c:\Users\tie301837\Documents\works\Sarutahiko\recurrent_nn\venv\lib\site
-packages\theano\gof\opt.py", line 1490, in process_node
replacements = lopt.transform(node)
File "c:\Users\tie301837\Documents\works\Sarutahiko\recurrent_nn\venv\lib\site
-packages\theano\tensor\opt.py", line 4640, in constant_folding
no_recycling=[])
File "c:\Users\tie301837\Documents\works\Sarutahiko\recurrent_nn\venv\lib\site
-packages\theano\gof\op.py", line 722, in make_thunk
output_storage=node_output_storage)
File "c:\Users\tie301837\Documents\works\Sarutahiko\recurrent_nn\venv\lib\site
-packages\theano\gof\cc.py", line 1043, in make_thunk
keep_lock=keep_lock)
File "c:\Users\tie301837\Documents\works\Sarutahiko\recurrent_nn\venv\lib\site
-packages\theano\gof\cc.py", line 985, in __compile__
keep_lock=keep_lock)
File "c:\Users\tie301837\Documents\works\Sarutahiko\recurrent_nn\venv\lib\site
-packages\theano\gof\cc.py", line 1412, in cthunk_factory
key=key, lnk=self, keep_lock=keep_lock)
File "c:\Users\tie301837\Documents\works\Sarutahiko\recurrent_nn\venv\lib\site
-packages\theano\gof\cmodule.py", line 1056, in module_from_key
module = lnk.compile_cmodule(location)
File "c:\Users\tie301837\Documents\works\Sarutahiko\recurrent_nn\venv\lib\site
-packages\theano\gof\cc.py", line 1324, in compile_cmodule
preargs=preargs)
File "c:\Users\tie301837\Documents\works\Sarutahiko\recurrent_nn\venv\lib\site
-packages\theano\gof\cmodule.py", line 1953, in compile_str
(status, compile_stderr.replace('\n', '. ')))
Exception: ('Compilation failed (return status=1): In file included from c:\\Use
rs\\tie301837\\Documents\\environments\\Python\\Continuum\\Miniconda3\\include/P
ython.h:8:0,. from C:\\Users\\tie301837\\AppData\\Local\\Theano
\\compiledir_Windows-7-6.1.7601-SP1-x86_Family_6_Model_60_Stepping_3_GenuineInte
l-3.4.1-32\\tmpyqe8icoe\\mod.cpp:1:. c:\\Users\\tie301837\\Documents\\environmen
ts\\Python\\Continuum\\Miniconda3\\include/pyconfig.h:301:23: error: expected 窶
・窶・at end of member declaration. # define PY_LONG_LONG __int64.
^. c:\\Users\\tie301837\\Documents\\environments\\Python\\Continuum\\
Miniconda3\\include/pyconfig.h:413:30: note: in expansion of macro 窶榔Y_LONG_LO
NG窶・ #define PY_UINT64_T unsigned PY_LONG_LONG.
^. c:\\Users\\tie301837\\Documents\\environments\\Python\\Continuum\\Miniconda3
\\include/pyhash.h:65:9: note: in expansion of macro 窶榔Y_UINT64_T窶・
PY_UINT64_T k0;. ^. In file included from c:\\Users\\tie301837\\Docume
nts\\environments\\Python\\Continuum\\Miniconda3\\include/Python.h:71:0,.
from C:\\Users\\tie301837\\AppData\\Local\\Theano\\compiledir_Windows
-7-6.1.7601-SP1-x86_Family_6_Model_60_Stepping_3_GenuineIntel-3.4.1-32\\tmpyqe8i
coe\\mod.cpp:1:. c:\\Users\\tie301837\\Documents\\environments\\Python\\Continuu
m\\Miniconda3\\include/pyhash.h:65:21: error: 窶鰐0窶・does not name a type.
PY_UINT64_T k0;. ^. In file included from c:\\Users\\
tie301837\\Documents\\environments\\Python\\Continuum\\Miniconda3\\include/Pytho
n.h:8:0,. from C:\\Users\\tie301837\\AppData\\Local\\Theano\\co
mpiledir_Windows-7-6.1.7601-SP1-x86_Family_6_Model_60_Stepping_3_GenuineIntel-3.
4.1-32\\tmpyqe8icoe\\mod.cpp:1:. c:\\Users\\tie301837\\Documents\\environments\\
Python\\Continuum\\Miniconda3\\include/pyconfig.h:301:23: error: expected 窶・窶
・at end of member declaration. # define PY_LONG_LONG __int64.
^. c:\\Users\\tie301837\\Documents\\environments\\Python\\Continuum\\Mini
conda3\\include/pyconfig.h:413:30: note: in expansion of macro 窶榔Y_LONG_LONG窶
・ #define PY_UINT64_T unsigned PY_LONG_LONG. ^.
c:\\Users\\tie301837\\Documents\\environments\\Python\\Continuum\\Miniconda3\\in
clude/pyhash.h:66:9: note: in expansion of macro 窶榔Y_UINT64_T窶・ PY_
UINT64_T k1;. ^. c:\\Users\\tie301837\\Documents\\environments\\Python\
\Continuum\\Miniconda3\\include/pyconfig.h:301:23: error: redeclaration of 窶・n
signed int <anonymous union>::<anonymous struct>::__int64窶・ # define PY_LONG_
LONG __int64. ^. c:\\Users\\tie301837\\Documents\\environ
ments\\Python\\Continuum\\Miniconda3\\include/pyconfig.h:413:30: note: in expans
ion of macro 窶榔Y_LONG_LONG窶・ #define PY_UINT64_T unsigned PY_LONG_LONG.
^. c:\\Users\\tie301837\\Documents\\environments\\Pyt
hon\\Continuum\\Miniconda3\\include/pyhash.h:66:9: note: in expansion of macro
窶榔Y_UINT64_T窶・ PY_UINT64_T k1;. ^. c:\\Users\\tie301837\\D
ocuments\\environments\\Python\\Continuum\\Miniconda3\\include/pyconfig.h:301:23
: note: previous declaration 窶・nsigned int <anonymous union>::<anonymous struc
t>::__int64窶・ # define PY_LONG_LONG __int64. ^. c:\\Us
ers\\tie301837\\Documents\\environments\\Python\\Continuum\\Miniconda3\\include/
pyconfig.h:413:30: note: in expansion of macro 窶榔Y_LONG_LONG窶・ #define PY_U
INT64_T unsigned PY_LONG_LONG. ^. c:\\Users\\tie30
1837\\Documents\\environments\\Python\\Continuum\\Miniconda3\\include/pyhash.h:6
5:9: note: in expansion of macro 窶榔Y_UINT64_T窶・ PY_UINT64_T k0;.
^. In file included from c:\\Users\\tie301837\\Documents\\environments\\P
ython\\Continuum\\Miniconda3\\include/Python.h:71:0,. from C:\\
Users\\tie301837\\AppData\\Local\\Theano\\compiledir_Windows-7-6.1.7601-SP1-x86_
Family_6_Model_60_Stepping_3_GenuineIntel-3.4.1-32\\tmpyqe8icoe\\mod.cpp:1:. c:\
\Users\\tie301837\\Documents\\environments\\Python\\Continuum\\Miniconda3\\inclu
de/pyhash.h:66:21: error: 窶鰐1窶・does not name a type. PY_UINT64_T k1
;. ^. In file included from c:\\Users\\tie301837\\Documents
\\environments\\Python\\Continuum\\Miniconda3\\include/Python.h:8:0,.
from C:\\Users\\tie301837\\AppData\\Local\\Theano\\compiledir_Windows-7-6
.1.7601-SP1-x86_Family_6_Model_60_Stepping_3_GenuineIntel-3.4.1-32\\tmpyqe8icoe\
\mod.cpp:1:. c:\\Users\\tie301837\\Documents\\environments\\Python\\Continuum\\M
iniconda3\\include/pyconfig.h:301:23: error: 窶論_int64窶・was not declared in t
his scope. # define PY_LONG_LONG __int64. ^. c:\\Users\\
tie301837\\Documents\\environments\\Python\\Continuum\\Miniconda3\\include/longo
bject.h:88:44: note: in expansion of macro 窶榔Y_LONG_LONG窶・ PyAPI_FUNC(PyObj
ect *) PyLong_FromLongLong(PY_LONG_LONG);.
^. In file included from c:\\Users\\tie301837\\Documents\\environments\\P
ython\\Continuum\\Miniconda3\\include/Python.h:50:0,. from C:\\
Users\\tie301837\\AppData\\Local\\Theano\\compiledir_Windows-7-6.1.7601-SP1-x86_
Family_6_Model_60_Stepping_3_GenuineIntel-3.4.1-32\\tmpyqe8icoe\\mod.cpp:1:. c:\
\Users\\tie301837\\Documents\\environments\\Python\\Continuum\\Miniconda3\\inclu
de/pyconfig.h:301:23: error: 窶論_int64窶・does not name a type. # define PY_LO
NG_LONG __int64. ^. c:\\Users\\tie301837\\Documents\\envi
ronments\\Python\\Continuum\\Miniconda3\\include/pyport.h:771:34: note: in defin
ition of macro 窶榔yAPI_FUNC窶・ # define PyAPI_FUNC(RTYPE) RTYPE.
^. c:\\Users\\tie301837\\Documents\\environments\\Py
thon\\Continuum\\Miniconda3\\include/longobject.h:90:12: note: in expansion of m
acro 窶榔Y_LONG_LONG窶・ PyAPI_FUNC(PY_LONG_LONG) PyLong_AsLongLong(PyObject *)
;. ^. In file included from c:\\Users\\tie301837\\Documents\\environ
ments\\Python\\Continuum\\Miniconda3\\include/Python.h:78:0,. f
rom C:\\Users\\tie301837\\AppData\\Local\\Theano\\compiledir_Windows-7-6.1.7601-
SP1-x86_Family_6_Model_60_Stepping_3_GenuineIntel-3.4.1-32\\tmpyqe8icoe\\mod.cpp
:1:. c:\\Users\\tie301837\\Documents\\environments\\Python\\Continuum\\Miniconda
3\\include/longobject.h:91:35: error: expected initializer before 窶榔yLong_AsUn
signedLongLong窶・ PyAPI_FUNC(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLong(
PyObject *);. ^. c:\\Users\\tie301837\\Docume
nts\\environments\\Python\\Continuum\\Miniconda3\\include/longobject.h:92:35: er
ror: expected initializer before 窶榔yLong_AsUnsignedLongLongMask窶・ PyAPI_FUN
C(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLongMask(PyObject *);.
^. In file included from c:\\Users\\tie301837\\Documents
\\environments\\Python\\Continuum\\Miniconda3\\include/Python.h:50:0,.
from C:\\Users\\tie301837\\AppData\\Local\\Theano\\compiledir_Windows-7-
6.1.7601-SP1-x86_Family_6_Model_60_Stepping_3_GenuineIntel-3.4.1-32\\tmpyqe8icoe
\\mod.cpp:1:. c:\\Users\\tie301837\\Documents\\environments\\Python\\Continuum\\
Miniconda3\\include/pyconfig.h:301:23: error: 窶論_int64窶・does not name a type
. # define PY_LONG_LONG __int64. ^. c:\\Users\\tie301837
\\Documents\\environments\\Python\\Continuum\\Miniconda3\\include/pyport.h:771:3
4: note: in definition of macro 窶榔yAPI_FUNC窶・ # define PyAPI_FUNC(RTY
PE) RTYPE. ^. c:\\Users\\tie301837\\Documents\
\environments\\Python\\Continuum\\Miniconda3\\include/longobject.h:93:12: note:
in expansion of macro 窶榔Y_LONG_LONG窶・ PyAPI_FUNC(PY_LONG_LONG) PyLong_AsLon
gLongAndOverflow(PyObject *, int *);. ^. In file included from c:\\U
sers\\tie301837\\Documents\\environments\\Python\\Continuum\\Miniconda3\\include
/Python.h:8:0,. from C:\\Users\\tie301837\\AppData\\Local\\Thea
no\\compiledir_Windows-7-6.1.7601-SP1-x86_Family_6_Model_60_Stepping_3_GenuineIn
tel-3.4.1-32\\tmpyqe8icoe\\mod.cpp:1:. c:\\Users\\tie301837\\Documents\\environm
ents\\Python\\Continuum\\Miniconda3\\include/pyconfig.h:301:23: error: 窶論_int6
4窶・does not name a type. # define PY_LONG_LONG __int64.
^. c:\\Users\\tie301837\\Documents\\works\\Sarutahiko\\recurrent_nn\\venv\\lib
\\site-packages\\numpy\\core\\include/numpy/npy_common.h:263:9: note: in expansi
on of macro 窶榔Y_LONG_LONG窶・ typedef PY_LONG_LONG npy_longlong;. ^.
In file included from c:\\Users\\tie301837\\Documents\\works\\Sarutahiko\\recur
rent_nn\\venv\\lib\\site-packages\\numpy\\core\\include/numpy/ndarraytypes.h:4:0
,. from c:\\Users\\tie301837\\Documents\\works\\Sarutahiko\\rec
urrent_nn\\venv\\lib\\site-packages\\numpy\\core\\include/numpy/ndarrayobject.h:
17,. from c:\\Users\\tie301837\\Documents\\works\\Sarutahiko\\r
ecurrent_nn\\venv\\lib\\site-packages\\numpy\\core\\include/numpy/arrayobject.h:
4,. from C:\\Users\\tie301837\\AppData\\Local\\Theano\\compiled
ir_Windows-7-6.1.7601-SP1-x86_Family_6_Model_60_Stepping_3_GenuineIntel-3.4.1-32
\\tmpyqe8icoe\\mod.cpp:4:. c:\\Users\\tie301837\\Documents\\works\\Sarutahiko\\r
ecurrent_nn\\venv\\lib\\site-packages\\numpy\\core\\include/numpy/npy_common.h:2
64:31: error: expected initializer before 窶蕨py_ulonglong窶・ typedef unsigned
PY_LONG_LONG npy_ulonglong;. ^. In file included
from c:\\Users\\tie301837\\Documents\\works\\Sarutahiko\\recurrent_nn\\venv\\li
b\\site-packages\\numpy\\core\\include/numpy/ndarraytypes.h:4:0,.
from c:\\Users\\tie301837\\Documents\\works\\Sarutahiko\\recurrent_nn\\venv\\
lib\\site-packages\\numpy\\core\\include/numpy/ndarrayobject.h:17,.
from c:\\Users\\tie301837\\Documents\\works\\Sarutahiko\\recurrent_nn\\venv
\\lib\\site-packages\\numpy\\core\\include/numpy/arrayobject.h:4,.
from C:\\Users\\tie301837\\AppData\\Local\\Theano\\compiledir_Windows-7-6.1.
7601-SP1-x86_Family_6_Model_60_Stepping_3_GenuineIntel-3.4.1-32\\tmpyqe8icoe\\mo
d.cpp:4:. c:\\Users\\tie301837\\Documents\\works\\Sarutahiko\\recurrent_nn\\venv
\\lib\\site-packages\\numpy\\core\\include/numpy/npy_common.h:552:17: error: 窶
蕨py_longlong窶・does not name a type. typedef npy_longlong npy_int64;.
^. c:\\Users\\tie301837\\Documents\\works\\Sarutahiko\\recurre
nt_nn\\venv\\lib\\site-packages\\numpy\\core\\include/numpy/npy_common.h:553:17:
error: 窶蕨py_ulonglong窶・does not name a type. typedef npy_ulonglong
npy_uint64;. ^. c:\\Users\\tie301837\\Documents\\works\\Saruta
hiko\\recurrent_nn\\venv\\lib\\site-packages\\numpy\\core\\include/numpy/npy_com
mon.h:1031:9: error: 窶蕨py_int64窶・does not name a type. typedef npy_int64 np
y_timedelta;. ^. c:\\Users\\tie301837\\Documents\\works\\Sarutahiko\\re
current_nn\\venv\\lib\\site-packages\\numpy\\core\\include/numpy/npy_common.h:10
32:9: error: 窶蕨py_int64窶・does not name a type. typedef npy_int64 npy_dateti
me;. ^. In file included from c:\\Users\\tie301837\\Documents\\works\\S
arutahiko\\recurrent_nn\\venv\\lib\\site-packages\\numpy\\core\\include/numpy/nd
arrayobject.h:17:0,. from c:\\Users\\tie301837\\Documents\\work
s\\Sarutahiko\\recurrent_nn\\venv\\lib\\site-packages\\numpy\\core\\include/nump
y/arrayobject.h:4,. from C:\\Users\\tie301837\\AppData\\Local\\
Theano\\compiledir_Windows-7-6.1.7601-SP1-x86_Family_6_Model_60_Stepping_3_Genui
neIntel-3.4.1-32\\tmpyqe8icoe\\mod.cpp:4:. c:\\Users\\tie301837\\Documents\\work
s\\Sarutahiko\\recurrent_nn\\venv\\lib\\site-packages\\numpy\\core\\include/nump
y/ndarraytypes.h:737:9: error: 窶蕨py_int64窶・does not name a type. np
y_int64 year;. ^. c:\\Users\\tie301837\\Documents\\works\\Sarutahiko\\r
ecurrent_nn\\venv\\lib\\site-packages\\numpy\\core\\include/numpy/ndarraytypes.h
:743:9: error: 窶蕨py_int64窶・does not name a type. npy_int64 day;.
^. In file included from C:\\Users\\tie301837\\AppData\\Local\\Theano\\co
mpiledir_Windows-7-6.1.7601-SP1-x86_Family_6_Model_60_Stepping_3_GenuineIntel-3.
4.1-32\\tmpyqe8icoe\\mod.cpp:5:0:. c:\\Users\\tie301837\\Documents\\works\\Sarut
ahiko\\recurrent_nn\\venv\\lib\\site-packages\\numpy\\core\\include/numpy/arrays
calars.h:38:9: error: 窶蕨py_longlong窶・does not name a type. npy_long
long obval;. ^. c:\\Users\\tie301837\\Documents\\works\\Sarutahiko\\rec
urrent_nn\\venv\\lib\\site-packages\\numpy\\core\\include/numpy/arrayscalars.h:6
8:9: error: 窶蕨py_ulonglong窶・does not name a type. npy_ulonglong obv
al;. ^. c:\\Users\\tie301837\\Documents\\works\\Sarutahiko\\recurrent_n
n\\venv\\lib\\site-packages\\numpy\\core\\include/numpy/arrayscalars.h:121:9: er
ror: 窶蕨py_datetime窶・does not name a type. npy_datetime obval;.
^. c:\\Users\\tie301837\\Documents\\works\\Sarutahiko\\recurrent_nn\\venv\\
lib\\site-packages\\numpy\\core\\include/numpy/arrayscalars.h:127:9: error: 窶蕨
py_timedelta窶・does not name a type. npy_timedelta obval;. ^.
', '[DimShuffle{x,x}(TensorConstant{1.0})]')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment