Basically the error I get is very similar to this: http://stackoverflow.com/questions/10660524/error-building-boost-1-49-0-with-gcc-4-7-0/12124708#12124708
I've fixed it with adding "-D_hypot=hypot" to the cxxflags in ccompile. I'm wondering if you think a similar fix should be included in the theano code, to check for this possibility.
Give your full error. Even if similar, it could give us useful information.
thanks
On Wed, Aug 31, 2016 at 10:00 PM, Andy Jiang [email protected]
wrote:
Basically the error I get is very similar to this:
http://stackoverflow.com/questions/10660524/error-
building-boost-1-49-0-with-gcc-4-7-0/12124708#12124708I've fixed it with adding "-D_hypot=hypot" to the cxxflags in ccompile.
I'm wondering if you think a similar fix should be included in the theano
code, to check for this possibility.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Theano/Theano/issues/4926, or mute the thread
https://github.com/notifications/unsubscribe-auth/AALC-12H3FRCcUNdtRrTOAX_Gdj4qcFmks5qljG0gaJpZM4JyPal
.
`Problem occurred during compilation with the command line below:
"D:\mingw-w64x86_64-6.2.0-posix-seh-rt_v5-rev0\mingw64\bin\g++.exe" -shared -g -O3 -fno-math-errno -Wno-unused-label -Wno-unused-variable -Wno-write-
mx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mno-movbe -maes -mno-sha -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -m
-tbm -mavx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave
avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifm
no-pcommit -mno-mwaitx -mno-clzero -mno-pku --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=20480 -mtune=sandybridge -DNP
I_VERSION -m64 -DMS_WIN64 -I"D:\winpython\WinPython-64bit-2.7.9.4\python-2.7.9.amd64\lib\site-packages\numpy\core\include" -I"D:\winpython\WinPython-6
4\include" -I"d:\winpython\theano\theano\gof" -L"D:\winpython\WinPython-64bit-2.7.9.4\python-2.7.9.amd64\libs" -L"D:\winpython\WinPython-64bit-2.7.9.4
rs\Administrator\AppData\Local\Theano\compiledir_Windows-2008ServerR2-6.1.7601-SP1-Intel64_Family_6_Model_45_Stepping_7_GenuineIntel-2.7.9-64\tmp2j_pu
4d67.pyd C:\Users\Administrator\AppData\Local\Theano\compiledir_Windows-2008ServerR2-6.1.7601-SP1-Intel64_Family_6_Model_45_Stepping_7_GenuineIntel-2.
hon27
In file included from D:/mingw-w64/x86_64-6.2.0-posix-seh-rt_v5-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/6.2.0/include/c++/math.h:36:0,
from D:\winpython\WinPython-64bit-2.7.9.4\python-2.7.9.amd64\include/pyport.h:325,
from D:\winpython\WinPython-64bit-2.7.9.4\python-2.7.9.amd64\include/Python.h:58,
from C:\Users\Administrator\AppData\Local\Theano\compiledir_Windows-2008ServerR2-6.1.7601-SP1-Intel64_Family_6_Model_45_Stepping_7_Ge
mod.cpp:1:
D:/mingw-w64/x86_64-6.2.0-posix-seh-rt_v5-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/6.2.0/include/c++/cmath:1133:11: error: '::hypot' has not been decla
using ::hypot;
^~~~~
Traceback (most recent call last):
File "logistic_sgd.py", line 494, in
sgd_optimization_mnist()
File "logistic_sgd.py", line 333, in sgd_optimization_mnist
y: test_set_y[index * batch_size: (index + 1) * batch_size]
File "d:\winpython\theano\theano\compile\function.py", line 326, in function
output_keys=output_keys)
File "d:\winpython\theano\theano\compile\pfunc.py", line 484, in pfunc
output_keys=output_keys)
File "d:\winpython\theano\theano\compile\function_module.py", line 1789, in orig_function
defaults)
File "d:\winpython\theano\theano\compile\function_module.py", line 1653, in create
input_storage=input_storage_lists, storage_map=storage_map)
File "d:\winpython\theano\theano\gof\link.py", line 699, in make_thunk
storage_map=storage_map)[:3]
File "d:\winpython\theano\theano\gof\vm.py", line 1051, in make_all
no_recycling))
File "d:\winpython\theano\theano\gof\op.py", line 975, in make_thunk
no_recycling)
File "d:\winpython\theano\theano\gof\op.py", line 875, in make_c_thunk
output_storage=node_output_storage)
File "d:\winpython\theano\theano\gof\cc.py", line 1190, in make_thunk
keep_lock=keep_lock)
File "d:\winpython\theano\theano\gof\cc.py", line 1131, in compile
keep_lock=keep_lock)
File "d:\winpython\theano\theano\gof\cc.py", line 1586, in cthunk_factory
key=key, lnk=self, keep_lock=keep_lock)
File "d:\winpython\theano\theano\gof\cmodule.py", line 1145, in module_from_key
module = lnk.compile_cmodule(location)
File "d:\winpython\theano\theano\gof\cc.py", line 1492, in compile_cmodule
preargs=preargs)
File "d:\winpython\theano\theano\gof\cmodule.py", line 2301, in compile_str
(status, compile_stderr.replace('\n', '. ')))
Exception: ('The following error happened while compiling the node', Elemwise{mul,no_inplace}(TensorConstant{600},
hon\WinPython-64bit-2.7.9.4\python-2.7.9.amd64\include/pyport.h:325,\r. from D:\winpython\WinPython-64bit-2.7.9.4\python-2.7.9.
from C:\Users\Administrator\AppData\Local\Theano\compiledir_Windows-2008ServerR2-6.1.7601-SP1-Intel64_Family_6_Model_45_Steppi
p2j_pu8\mod.cpp:1:\r. D:/mingw-w64/x86_64-6.2.0-posix-seh-rt_v5-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/6.2.0/include/c++/cmath:1133:11: error: '::hy
using ::hypot;\r. ^~~\r. ", '[Elemwise{mul,no_inplace}(TensorConstant{600},
Most helpful comment
Thank you! This saved my day! Got the exactly same problem with Theano 1.0.2 and MingW64. Solved by adding THEANO_FLAGS='gcc.cxxflags="-D_hypot=hypot"' to the environment variables.