{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/192","labels_url":"https://api.github.com/repos/dmlc/mxnet/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/mxnet/issues/192/comments","events_url":"https://api.github.com/repos/dmlc/mxnet/issues/192/events","html_url":"https://github.com/dmlc/mxnet/issues/192","id":109017609,"number":192,"title":"Build fail with Mac OS X (Yosemite, gcc 4.9 from homebrew with openMP, open CV, Blas)","user":{"login":"phunterlau","id":1690881,"avatar_url":"https://avatars.githubusercontent.com/u/1690881?v=3","gravatar_id":"","url":"https://api.github.com/users/phunterlau","html_url":"https://github.com/phunterlau","followers_url":"https://api.github.com/users/phunterlau/followers","following_url":"https://api.github.com/users/phunterlau/following{/other_user}","gists_url":"https://api.github.com/users/phunterlau/gists{/gist_id}","starred_url":"https://api.github.com/users/phunterlau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phunterlau/subscriptions","organizations_url":"https://api.github.com/users/phunterlau/orgs","repos_url":"https://api.github.com/users/phunterlau/repos","events_url":"https://api.github.com/users/phunterlau/events{/privacy}","received_events_url":"https://api.github.com/users/phunterlau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-30T05:35:05Z","updated_at":"2015-10-09T06:54:06Z","closed_at":null,"body":"After following the build instruction by checking out the latest mxnet recursively, and installing c++, open cv, open blas, make gives this error on `isnan` in the ndarray_function from mshadow (latest mxnet commit 61558808118aa6099065dc494e3afde0125f0ea0 ):\r\n\r\n```\r\ng++ -std=c++0x -DMSHADOW_FORCE_STREAM -Wall -O3 -I./mshadow/ -I./dmlc-core/include -fPIC -Iinclude -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMXNET_USE_OPENCV=1 -fopenmp  -MM -MT build/ndarray/ndarray.o src/ndarray/ndarray.cc >build/ndarray/ndarray.d\r\ng++ -std=c++0x -c -DMSHADOW_FORCE_STREAM -Wall -O3 -I./mshadow/ -I./dmlc-core/include -fPIC -Iinclude -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMXNET_USE_OPENCV=1 -fopenmp  -c src/ndarray/ndarray.cc -o build/ndarray/ndarray.o\r\nIn file included from src/ndarray/ndarray.cc:13:0:\r\nsrc/ndarray/./ndarray_function.h: In static member function 'static mxnet::real_t mxnet::ndarray::Clip::mshadow_op::Map(mxnet::real_t, mxnet::real_t)':\r\nsrc/ndarray/./ndarray_function.h:43:18: error: 'isnan' was not declared in this scope\r\n       if (isnan(a)) return 0.0f;\r\n                  ^\r\nsrc/ndarray/./ndarray_function.h:43:18: note: suggested alternative:\r\nIn file included from /usr/local/Cellar/gcc49/4.9.3/include/c++/4.9.3/random:38:0,\r\n                 from /usr/local/Cellar/gcc49/4.9.3/include/c++/4.9.3/bits/stl_algo.h:66,\r\n                 from /usr/local/Cellar/gcc49/4.9.3/include/c++/4.9.3/algorithm:62,\r\n                 from ./dmlc-core/include/dmlc/./parameter.h:18,\r\n                 from ./dmlc-core/include/dmlc/registry.h:14,\r\n                 from src/ndarray/ndarray.cc:8:\r\n/usr/local/Cellar/gcc49/4.9.3/include/c++/4.9.3/cmath:632:5: note:   'std::isnan'\r\n     isnan(_Tp __x)\r\n     ^\r\nIn file included from src/ndarray/ndarray.cc:8:0:\r\nsrc/ndarray/ndarray.cc: At global scope:\r\n./dmlc-core/include/dmlc/registry.h:194:22: warning: 'mxnet::__make_NDArrayFunctionReg__set_value__' defined but not used [-Wunused-variable]\r\n   static EntryType & __make_ ## EntryTypeName ## _ ## Name ## __ =      \\\r\n                      ^\r\ninclude/mxnet/ndarray.h:580:3: note: in expansion of macro 'DMLC_REGISTRY_REGISTER'\r\n   DMLC_REGISTRY_REGISTER(::mxnet::NDArrayFunctionReg, NDArrayFunctionReg, name)\r\n   ^\r\nsrc/ndarray/ndarray.cc:508:1: note: in expansion of macro 'MXNET_REGISTER_NDARRAY_FUN'\r\n MXNET_REGISTER_NDARRAY_FUN(_set_value).set_function(SetValueOp);\r\n ^\r\n```\r\n\r\nCan you suggest some fix so I can test on my mac? Thanks."},"comment":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/comments/146772306","html_url":"https://github.com/dmlc/mxnet/issues/192#issuecomment-146772306","issue_url":"https://api.github.com/repos/dmlc/mxnet/issues/192","id":146772306,"user":{"login":"antinucleon","id":1258974,"avatar_url":"https://avatars.githubusercontent.com/u/1258974?v=3","gravatar_id":"","url":"https://api.github.com/users/antinucleon","html_url":"https://github.com/antinucleon","followers_url":"https://api.github.com/users/antinucleon/followers","following_url":"https://api.github.com/users/antinucleon/following{/other_user}","gists_url":"https://api.github.com/users/antinucleon/gists{/gist_id}","starred_url":"https://api.github.com/users/antinucleon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antinucleon/subscriptions","organizations_url":"https://api.github.com/users/antinucleon/orgs","repos_url":"https://api.github.com/users/antinucleon/repos","events_url":"https://api.github.com/users/antinucleon/events{/privacy}","received_events_url":"https://api.github.com/users/antinucleon/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T06:54:06Z","updated_at":"2015-10-09T06:54:06Z","body":"I removed isnan already\nOn Fri, Oct 9, 2015 at 00:51 Mu Li <notifications@github.com> wrote:\n\n> that happens before. Can we auto pick the right isnan based on the device?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/dmlc/mxnet/issues/192#issuecomment-146772034>.\n>\n"}}