{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/2027","repository_url":"https://api.github.com/repos/dmlc/mxnet","labels_url":"https://api.github.com/repos/dmlc/mxnet/issues/2027/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/mxnet/issues/2027/comments","events_url":"https://api.github.com/repos/dmlc/mxnet/issues/2027/events","html_url":"https://github.com/dmlc/mxnet/issues/2027","id":152955829,"number":2027,"title":"[lib/libmxnet.so] Error installing mxnet for EI Capitan 10.11.4","user":{"login":"celestesosmart","id":10704372,"avatar_url":"https://avatars.githubusercontent.com/u/10704372?v=3","gravatar_id":"","url":"https://api.github.com/users/celestesosmart","html_url":"https://github.com/celestesosmart","followers_url":"https://api.github.com/users/celestesosmart/followers","following_url":"https://api.github.com/users/celestesosmart/following{/other_user}","gists_url":"https://api.github.com/users/celestesosmart/gists{/gist_id}","starred_url":"https://api.github.com/users/celestesosmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celestesosmart/subscriptions","organizations_url":"https://api.github.com/users/celestesosmart/orgs","repos_url":"https://api.github.com/users/celestesosmart/repos","events_url":"https://api.github.com/users/celestesosmart/events{/privacy}","received_events_url":"https://api.github.com/users/celestesosmart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-04T08:26:28Z","updated_at":"2016-05-09T14:50:43Z","closed_at":null,"body":"My GPU: Intel HD Graphics 4000 + NVIDIA GeForce GT 650M\r\n\r\nI have downgrade my XCode to V6.4 and my clang Version:\r\n```\r\nApple LLVM version 6.1.0 (clang-602.0.51) (based on LLVM 3.6.0svn)\r\nTarget: x86_64-apple-darwin15.4.0\r\nThread model: posix\r\n```\r\n\r\nNow when I try to install Mxnet with either clang or clang-omp, I always get this error:\r\n\r\n```\r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libmxnet.a(mxrtc.o) has no symbols\r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libmxnet.a(cudnn_batch_norm.o) has no symbols\r\nUndefined symbols for architecture x86_64:\r\n      ...\r\n  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake: *** [lib/libmxnet.so] Error 1\r\n```\r\n\r\n\r\nHere is my osx.mk:\r\n\r\n```\r\nexport CC = clang\r\nexport CXX = clang++\r\nexport NVCC = nvcc\r\nDEBUG = 0\r\nADD_LDFLAGS = -L/usr/local/opt/openblas/lib\r\nADD_LDFLAGS += -Xlinker -F/Library/Frameworks -Xlinker -framework -Xlinker CUDA\r\nADD_CFLAGS = -I/usr/local/opt/openblas/include\r\nUSE_CUDA = 1\r\nUSE_CUDA_PATH = /usr/local/cuda\r\nUSE_CUDNN = 1\r\nUSE_NVRTC = 0\r\nUSE_OPENMP = 0\r\nUSE_BLAS = openblas\r\nUSE_INTEL_PATH = NONE\r\n```\r\n\r\nI checked my make version:\r\n```\r\nmake -v\r\nGNU Make 3.81\r\nCopyright (C) 2006  Free Software Foundation, Inc.\r\nThis is free software; see the source for copying conditions.\r\nThere is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\r\nPARTICULAR PURPOSE.\r\n\r\nThis program built for i386-apple-darwin11.3.0\r\n```\r\nIs i386 a problem?"},"comment":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/comments/217886797","html_url":"https://github.com/dmlc/mxnet/issues/2027#issuecomment-217886797","issue_url":"https://api.github.com/repos/dmlc/mxnet/issues/2027","id":217886797,"user":{"login":"celestesosmart","id":10704372,"avatar_url":"https://avatars.githubusercontent.com/u/10704372?v=3","gravatar_id":"","url":"https://api.github.com/users/celestesosmart","html_url":"https://github.com/celestesosmart","followers_url":"https://api.github.com/users/celestesosmart/followers","following_url":"https://api.github.com/users/celestesosmart/following{/other_user}","gists_url":"https://api.github.com/users/celestesosmart/gists{/gist_id}","starred_url":"https://api.github.com/users/celestesosmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celestesosmart/subscriptions","organizations_url":"https://api.github.com/users/celestesosmart/orgs","repos_url":"https://api.github.com/users/celestesosmart/repos","events_url":"https://api.github.com/users/celestesosmart/events{/privacy}","received_events_url":"https://api.github.com/users/celestesosmart/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T14:50:43Z","updated_at":"2016-05-09T14:50:43Z","body":"Hi, thanks for your help. This still doesn't work for me. And here is a full version of error msg.\r\n```\r\nld: symbol(s) not found for architecture x86_64\r\nclang-3.5: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake: *** [lib/libmxnet.so] Error 1\r\nmake: *** Waiting for unfinished jobs....\r\nIn file included from tools/im2rec.cc:22:\r\nIn file included from /usr/local/Cellar/opencv/2.4.12_2/include/opencv2/opencv.hpp:56:\r\n/usr/local/Cellar/opencv/2.4.12_2/include/opencv2/ml/ml.hpp:961:18: warning: 'CvForestTree::train'\r\n      hides overloaded virtual functions [-Woverloaded-virtual]\r\n    virtual bool train( CvDTreeTrainData* trainData, const CvMat* _subsample_idx, CvRTrees* forest );\r\n                 ^\r\n/usr/local/Cellar/opencv/2.4.12_2/include/opencv2/ml/ml.hpp:867:18: note: hidden overloaded virtual\r\n      function 'CvDTree::train' declared here: different number of parameters (2 vs 3)\r\n    virtual bool train( CvMLData* trainData, CvDTreeParams params=CvDTreeParams() );\r\n                 ^\r\n/usr/local/Cellar/opencv/2.4.12_2/include/opencv2/ml/ml.hpp:877:26: note: hidden overloaded virtual\r\n      function 'CvDTree::train' declared here: different number of parameters (8 vs 3)\r\n    CV_WRAP virtual bool train( const cv::Mat& trainData, int tflag,\r\n                         ^\r\n/usr/local/Cellar/opencv/2.4.12_2/include/opencv2/ml/ml.hpp:1149:18: warning: 'CvBoostTree::train'\r\n      hides overloaded virtual functions [-Woverloaded-virtual]\r\n    virtual bool train( CvDTreeTrainData* trainData,\r\n                 ^\r\n/usr/local/Cellar/opencv/2.4.12_2/include/opencv2/ml/ml.hpp:867:18: note: hidden overloaded virtual\r\n      function 'CvDTree::train' declared here: different number of parameters (2 vs 3)\r\n    virtual bool train( CvMLData* trainData, CvDTreeParams params=CvDTreeParams() );\r\n                 ^\r\n/usr/local/Cellar/opencv/2.4.12_2/include/opencv2/ml/ml.hpp:877:26: note: hidden overloaded virtual\r\n      function 'CvDTree::train' declared here: different number of parameters (8 vs 3)\r\n    CV_WRAP virtual bool train( const cv::Mat& trainData, int tflag,\r\n                         ^\r\n2 warnings generated.\r\nUndefined symbols for architecture x86_64:\r\n  \"__ZNKSt13runtime_error4whatEv\", referenced from:\r\n      __ZTVN4dmlc5ErrorE in im2rec-5afd5e.o\r\n      __ZTVN4dmlc5ErrorE in resource.o\r\n      __ZTVN4dmlc10ParamErrorE in resource.o\r\n      __ZTVN4dmlc5ErrorE in c_api.o\r\n      __ZTVN4dmlc5ErrorE in c_predict_api.o\r\n      __ZTVN4dmlc5ErrorE in engine.o\r\n      __ZTVN4dmlc5ErrorE in naive_engine.o\r\n      ...\r\n  \"__ZNKSt9exception4whatEv\", referenced from:\r\n      __ZTVNSt3__117bad_function_callE in c_api.o\r\n      __ZTVNSt3__117bad_function_callE in naive_engine.o\r\n      __ZTVNSt3__117bad_function_callE in threaded_engine.o\r\n      __ZTVNSt3__117bad_function_callE in threaded_engine_perdevice.o\r\n      __ZTVNSt3__117bad_function_callE in threaded_engine_pooled.o\r\n      __ZTVNSt3__117bad_function_callE in image_aug_default.o\r\n      __ZTVNSt3__117bad_function_callE in iter_csv.o\r\n      ...\r\n  \"__ZNSt12length_errorD1Ev\", referenced from:\r\n      __ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv in im2rec-5afd5e.o\r\n      __ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv in im2rec-5afd5e.o\r\n      __ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv in resource.o\r\n      __ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv in resource.o\r\n      __ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv in c_api.o\r\n      __ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv in c_api.o\r\n      __ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv in c_api_error.o\r\n      ...\r\n  \"__ZNSt12out_of_rangeD1Ev\", referenced from:\r\n      __ZNK4dmlc9parameter10FieldEntryIiE10PrintValueERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEEi in resource.o\r\n      __ZNKSt3__120__vector_base_commonILb1EE20__throw_out_of_rangeEv in c_api.o\r\n      __ZNKSt3__120__vector_base_commonILb1EE20__throw_out_of_rangeEv in threaded_engine.o\r\n      __ZNK4dmlc9parameter10FieldEntryIiE10PrintValueERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEEi in threaded_engine_perdevice.o\r\n      __ZN5mxnet6engine13StreamManagerILm16ELm16EE15GetIORunContextERKNS_7ContextE in threaded_engine_pooled.o\r\n      __ZN5mxnet6engine13StreamManagerILm16ELm16EE13GetRunContextERKNS_7ContextE in threaded_engine_pooled.o\r\n      __ZNK4dmlc9parameter10FieldEntryIiE10PrintValueERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEEi in image_aug_default.o\r\n      ...\r\n  \"__ZNSt13runtime_errorD2Ev\", referenced from:\r\n      __ZN4dmlc5ErrorD1Ev in im2rec-5afd5e.o\r\n      __ZN4dmlc5ErrorD0Ev in im2rec-5afd5e.o\r\n      __ZN4dmlc5ErrorD1Ev in resource.o\r\n      __ZN4dmlc5ErrorD0Ev in resource.o\r\n      __ZN4dmlc10ParamErrorD1Ev in resource.o\r\n      __ZN4dmlc10ParamErrorD0Ev in resource.o\r\n      __ZN4dmlc5ErrorD1Ev in c_api.o\r\n      ...\r\n  \"__ZNSt9exceptionD2Ev\", referenced from:\r\n      __ZNSt3__117bad_function_callD1Ev in c_api.o\r\n      __ZNSt3__117bad_function_callD0Ev in c_api.o\r\n      __ZNSt3__117bad_function_callD1Ev in naive_engine.o\r\n      __ZNSt3__117bad_function_callD0Ev in naive_engine.o\r\n      __ZNSt3__117bad_function_callD1Ev in threaded_engine.o\r\n      __ZNSt3__117bad_function_callD0Ev in threaded_engine.o\r\n      __ZNSt3__117bad_function_callD1Ev in threaded_engine_perdevice.o\r\n      ...\r\n  \"__ZSt9terminatev\", referenced from:\r\n      ___clang_call_terminate in im2rec-5afd5e.o\r\n      ___clang_call_terminate in resource.o\r\n      ___clang_call_terminate in c_api.o\r\n      ___clang_call_terminate in c_predict_api.o\r\n      ___clang_call_terminate in engine.o\r\n      ___clang_call_terminate in naive_engine.o\r\n      ___clang_call_terminate in threaded_engine.o\r\n      ...\r\n  \"__ZTISt12length_error\", referenced from:\r\n      __ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv in im2rec-5afd5e.o\r\n      __ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv in im2rec-5afd5e.o\r\n      __ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv in resource.o\r\n      __ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv in resource.o\r\n      __ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv in c_api.o\r\n      __ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv in c_api.o\r\n      __ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv in c_api_error.o\r\n      ...\r\n  \"__ZTISt12out_of_range\", referenced from:\r\n      __ZNK4dmlc9parameter10FieldEntryIiE10PrintValueERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEEi in resource.o\r\n      __ZNKSt3__120__vector_base_commonILb1EE20__throw_out_of_rangeEv in c_api.o\r\n      __ZNKSt3__120__vector_base_commonILb1EE20__throw_out_of_rangeEv in threaded_engine.o\r\n      __ZNK4dmlc9parameter10FieldEntryIiE10PrintValueERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEEi in threaded_engine_perdevice.o\r\n      __ZN5mxnet6engine13StreamManagerILm16ELm16EE15GetIORunContextERKNS_7ContextE in threaded_engine_pooled.o\r\n      __ZN5mxnet6engine13StreamManagerILm16ELm16EE13GetRunContextERKNS_7ContextE in threaded_engine_pooled.o\r\n      __ZNK4dmlc9parameter10FieldEntryIiE10PrintValueERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEEi in image_aug_default.o\r\n      ...\r\n  \"__ZTISt13runtime_error\", referenced from:\r\n      __ZTIN4dmlc5ErrorE in im2rec-5afd5e.o\r\n      __ZTIN4dmlc5ErrorE in resource.o\r\n      __ZTIN4dmlc5ErrorE in c_api.o\r\n      __ZTIN4dmlc5ErrorE in c_predict_api.o\r\n      __ZTIN4dmlc5ErrorE in engine.o\r\n      __ZTIN4dmlc5ErrorE in naive_engine.o\r\n      __ZTIN4dmlc5ErrorE in threaded_engine.o\r\n      ...\r\n  \"__ZTISt9exception\", referenced from:\r\n      __ZTINSt3__117bad_function_callE in c_api.o\r\n      __ZTINSt3__117bad_function_callE in naive_engine.o\r\n      __ZTINSt3__117bad_function_callE in threaded_engine.o\r\n      __ZTINSt3__117bad_function_callE in threaded_engine_perdevice.o\r\n      __ZTINSt3__117bad_function_callE in threaded_engine_pooled.o\r\n      __ZTINSt3__117bad_function_callE in image_aug_default.o\r\n      __ZTINSt3__117bad_function_callE in iter_csv.o\r\n      ...\r\n  \"__ZTVSt12length_error\", referenced from:\r\n      __ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv in im2rec-5afd5e.o\r\n      __ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv in im2rec-5afd5e.o\r\n      __ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv in resource.o\r\n      __ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv in resource.o\r\n      __ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv in c_api.o\r\n      __ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv in c_api.o\r\n      __ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv in c_api_error.o\r\n      ...\r\n  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.\r\n  \"__ZTVSt12out_of_range\", referenced from:\r\n      __ZNK4dmlc9parameter10FieldEntryIiE10PrintValueERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEEi in resource.o\r\n      __ZNKSt3__120__vector_base_commonILb1EE20__throw_out_of_rangeEv in c_api.o\r\n      __ZNKSt3__120__vector_base_commonILb1EE20__throw_out_of_rangeEv in threaded_engine.o\r\n      __ZNK4dmlc9parameter10FieldEntryIiE10PrintValueERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEEi in threaded_engine_perdevice.o\r\n      __ZN5mxnet6engine13StreamManagerILm16ELm16EE15GetIORunContextERKNS_7ContextE in threaded_engine_pooled.o\r\n      __ZN5mxnet6engine13StreamManagerILm16ELm16EE13GetRunContextERKNS_7ContextE in threaded_engine_pooled.o\r\n      __ZNK4dmlc9parameter10FieldEntryIiE10PrintValueERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEEi in image_aug_default.o\r\n      ...\r\n  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.\r\n  \"___kmpc_cancel_barrier\", referenced from:\r\n      _.omp_microtask. in libdmlc.a(data.o)\r\n      _.omp_microtask.13 in libdmlc.a(data.o)\r\n      _.omp_microtask.30 in libdmlc.a(data.o)\r\n      _.omp_microtask.47 in libdmlc.a(data.o)\r\n      _.omp_microtask.48 in libdmlc.a(data.o)\r\n      _.omp_microtask.49 in libdmlc.a(data.o)\r\n  \"___kmpc_fork_call\", referenced from:\r\n      __ZN4dmlc4data18CreateLibSVMParserIjEEPNS_6ParserIT_EERKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEERKNS6_3mapISC_SC_NS6_4lessISC_EENSA_INS6_4pairISD_SC_EEEEEEjj in libdmlc.a(data.o)\r\n      __ZN4dmlc4data18CreateLibSVMParserIyEEPNS_6ParserIT_EERKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEERKNS6_3mapISC_SC_NS6_4lessISC_EENSA_INS6_4pairISD_SC_EEEEEEjj in libdmlc.a(data.o)\r\n      __ZN4dmlc4data9CSVParserIjEC2EPNS_10InputSplitERKNSt3__13mapINS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEESC_NS5_4lessISC_EENSA_INS5_4pairIKSC_SC_EEEEEEi in libdmlc.a(data.o)\r\n      __ZN4dmlc4data14TextParserBaseIjE8FillDataEPNSt3__16vectorINS0_17RowBlockContainerIjEENS3_9allocatorIS6_EEEE in libdmlc.a(data.o)\r\n      __ZN4dmlc4data14TextParserBaseIyE8FillDataEPNSt3__16vectorINS0_17RowBlockContainerIyEENS3_9allocatorIS6_EEEE in libdmlc.a(data.o)\r\n  \"___kmpc_global_thread_num\", referenced from:\r\n      __ZN4dmlc4data14TextParserBaseIjE8FillDataEPNSt3__16vectorINS0_17RowBlockContainerIjEENS3_9allocatorIS6_EEEE in libdmlc.a(data.o)\r\n      __ZN4dmlc4data14TextParserBaseIyE8FillDataEPNSt3__16vectorINS0_17RowBlockContainerIyEENS3_9allocatorIS6_EEEE in libdmlc.a(data.o)\r\n  \"___kmpc_push_num_threads\", referenced from:\r\n      __ZN4dmlc4data14TextParserBaseIjE8FillDataEPNSt3__16vectorINS0_17RowBlockContainerIjEENS3_9allocatorIS6_EEEE in libdmlc.a(data.o)\r\n      __ZN4dmlc4data14TextParserBaseIyE8FillDataEPNSt3__16vectorINS0_17RowBlockContainerIyEENS3_9allocatorIS6_EEEE in libdmlc.a(data.o)\r\n  \"_omp_get_num_procs\", referenced from:\r\n      _.omp_microtask.30 in libdmlc.a(data.o)\r\n      _.omp_microtask.49 in libdmlc.a(data.o)\r\n  \"_omp_get_num_threads\", referenced from:\r\n      _.omp_microtask. in libdmlc.a(data.o)\r\n      _.omp_microtask.47 in libdmlc.a(data.o)\r\n  \"_omp_get_thread_num\", referenced from:\r\n      _.omp_microtask.13 in libdmlc.a(data.o)\r\n      _.omp_microtask.48 in libdmlc.a(data.o)\r\nld: symbol(s) not found for architecture x86_64\r\nclang-3.5: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake: *** [bin/im2rec] Error 1\r\n```"}}