{"action":"opened","issue":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/12001","repository_url":"https://api.github.com/repos/pytorch/pytorch","labels_url":"https://api.github.com/repos/pytorch/pytorch/issues/12001/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/12001/comments","events_url":"https://api.github.com/repos/pytorch/pytorch/issues/12001/events","html_url":"https://github.com/pytorch/pytorch/issues/12001","id":362984390,"node_id":"MDU6SXNzdWUzNjI5ODQzOTA=","number":12001,"title":"Building from source on windows 10 - 67000 warnings and 12 link errors - 6 mpi and 6 other","user":{"login":"terrylyons","id":6383355,"node_id":"MDQ6VXNlcjYzODMzNTU=","avatar_url":"https://avatars2.githubusercontent.com/u/6383355?v=4","gravatar_id":"","url":"https://api.github.com/users/terrylyons","html_url":"https://github.com/terrylyons","followers_url":"https://api.github.com/users/terrylyons/followers","following_url":"https://api.github.com/users/terrylyons/following{/other_user}","gists_url":"https://api.github.com/users/terrylyons/gists{/gist_id}","starred_url":"https://api.github.com/users/terrylyons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrylyons/subscriptions","organizations_url":"https://api.github.com/users/terrylyons/orgs","repos_url":"https://api.github.com/users/terrylyons/repos","events_url":"https://api.github.com/users/terrylyons/events{/privacy}","received_events_url":"https://api.github.com/users/terrylyons/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-23T22:45:41Z","updated_at":"2018-09-23T22:45:41Z","closed_at":null,"author_association":"NONE","body":"Hi, the information you supply, and I followed for building in windows, install anaconda,  and various packages, as per your web site, and then used the short script you suggested. \r\n\r\nFor me at least, although it takes 5 hours!! it finally fails - the error part is pasted below. I had already tweaked the script on your web page as I use cuda 9.0 and the compiler refused to find the toolset for 2017 if I had the 2015 path identified in the environmental variable as you suggest in your script fragment (perhaps you should have an if statement somewhere?). The machine is a heavily loaded development laptop with a k2100m gpu. As this only has compute 3.0 I need to build pytorch. Anyway, I have AVX2 etc. so it is a good thing to do. \r\n\r\nThe laptop has mpi and Boost finds it when I build boost. It has the full intel compilers, All recent versions of visual studio,  mkl etc. Happy to tell more but maybe it is obvious to you what the issues are.\r\n\r\nI am using python setup.py install from the base distribution of anaconda and python 3.6\r\n(I would prefer to say python -m pip wheel xxxx if that were possible). \r\n\r\nI would much prefer to not use anaconda but I am because you say so.\r\n\r\nThanks !\r\n\r\nTerry\r\n\r\n\"C:\\temp\\build_torch\\pytorch\\build\\INSTALL.vcxproj\" (default target) (1) ->\r\n\"C:\\temp\\build_torch\\pytorch\\build\\ALL_BUILD.vcxproj\" (default target) (3) ->\r\n\"C:\\temp\\build_torch\\pytorch\\build\\caffe2\\AlgorithmsTest.vcxproj\" (default target) (4) ->\r\n\"C:\\temp\\build_torch\\pytorch\\build\\caffe2\\caffe2_gpu.vcxproj\" (default target) (21) ->\r\n(Link target) ->\r\n  mpi_ops_gpu.obj : error LNK2019: unresolved external symbol MPI_Comm_size referenced in function \"public: static void\r\n __cdecl caffe2::TypeMeta::_Ctor<class caffe2::MPICommonWorldWrapper>(void *,unsigned __int64)\" (??$_Ctor@VMPICommonWor\r\nldWrapper@caffe2@@@TypeMeta@caffe2@@SAXPEAX_K@Z) [C:\\temp\\build_torch\\pytorch\\build\\caffe2\\caffe2_gpu.vcxproj]\r\n  mpi_ops_gpu.obj : error LNK2019: unresolved external symbol MPI_Comm_rank referenced in function \"public: static void\r\n __cdecl caffe2::TypeMeta::_Ctor<class caffe2::MPICommonWorldWrapper>(void *,unsigned __int64)\" (??$_Ctor@VMPICommonWor\r\nldWrapper@caffe2@@@TypeMeta@caffe2@@SAXPEAX_K@Z) [C:\\temp\\build_torch\\pytorch\\build\\caffe2\\caffe2_gpu.vcxproj]\r\n  mpi_ops_gpu.obj : error LNK2019: unresolved external symbol MPI_Comm_split referenced in function \"public: static voi\r\nd __cdecl caffe2::TypeMeta::_Ctor<class caffe2::MPICommonWorldWrapper>(void *,unsigned __int64)\" (??$_Ctor@VMPICommonWo\r\nrldWrapper@caffe2@@@TypeMeta@caffe2@@SAXPEAX_K@Z) [C:\\temp\\build_torch\\pytorch\\build\\caffe2\\caffe2_gpu.vcxproj]\r\n  mpi_ops_gpu.obj : error LNK2019: unresolved external symbol MPI_Comm_free referenced in function \"public: static void\r\n __cdecl caffe2::TypeMeta::_Dtor<class caffe2::MPICommonWorldWrapper>(void *,unsigned __int64)\" (??$_Dtor@VMPICommonWor\r\nldWrapper@caffe2@@@TypeMeta@caffe2@@SAXPEAX_K@Z) [C:\\temp\\build_torch\\pytorch\\build\\caffe2\\caffe2_gpu.vcxproj]\r\n  mpi_ops_gpu.obj : error LNK2019: unresolved external symbol MPI_Finalized referenced in function \"public: static void\r\n __cdecl caffe2::TypeMeta::_Dtor<class caffe2::MPICommonWorldWrapper>(void *,unsigned __int64)\" (??$_Dtor@VMPICommonWor\r\nldWrapper@caffe2@@@TypeMeta@caffe2@@SAXPEAX_K@Z) [C:\\temp\\build_torch\\pytorch\\build\\caffe2\\caffe2_gpu.vcxproj]\r\n  C:\\temp\\build_torch\\pytorch\\build\\bin\\Release\\caffe2_gpu.dll : fatal error LNK1120: 5 unresolved externals [C:\\temp\\b\r\nuild_torch\\pytorch\\build\\caffe2\\caffe2_gpu.vcxproj]\r\n\r\n\r\n\"C:\\temp\\build_torch\\pytorch\\build\\INSTALL.vcxproj\" (default target) (1) ->\r\n\"C:\\temp\\build_torch\\pytorch\\build\\ALL_BUILD.vcxproj\" (default target) (3) ->\r\n\"C:\\temp\\build_torch\\pytorch\\build\\caffe2\\caffe2_pybind11_state.vcxproj\" (default target) (52) ->\r\n  pybind_state.obj : error LNK2019: unresolved external symbol \"public: __cdecl onnx_torch::ValueInfoProto::ValueInfoPr\r\noto(void)\" (??0ValueInfoProto@onnx_torch@@QEAA@XZ) referenced in function \"public: static void __cdecl std::_Default_al\r\nlocator_traits<class std::allocator<struct std::_List_node<struct std::pair<class std::basic_string<char,struct std::ch\r\nar_traits<char>,class std::allocator<char> > const ,class onnx_torch::ValueInfoProto>,void *> > >::construct<struct std\r\n::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class onnx_torch:\r\n:ValueInfoProto>,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class onnx_tor\r\nch::ValueInfoProto>(class std::allocator<struct std::_List_node<struct std::pair<class std::basic_string<char,struct st\r\nd::char_traits<char>,class std::allocator<char> > const ,class onnx_torch::ValueInfoProto>,void *> > &,struct std::pair\r\n<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class onnx_torch::Value\r\nInfoProto> * const,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &&,class onn\r\nx_torch::ValueInfoProto &&)\" (??$construct@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VV\r\nalueInfoProto@onnx_torch@@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@VValueInfoProto@onnx_torch@@\r\n@?$_Default_allocator_traits@V?$allocator@U?$_List_node@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator\r\n@D@2@@std@@VValueInfoProto@onnx_torch@@@std@@PEAX@std@@@std@@@std@@SAXAEAV?$allocator@U?$_List_node@U?$pair@$$CBV?$basi\r\nc_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VValueInfoProto@onnx_torch@@@std@@PEAX@std@@@1@QEAU?$pair@$$CBV?\r\n$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VValueInfoProto@onnx_torch@@@1@$$QEAV?$basic_string@DU?$cha\r\nr_traits@D@std@@V?$allocator@D@2@@1@$$QEAVValueInfoProto@onnx_torch@@@Z) [C:\\temp\\build_torch\\pytorch\\build\\caffe2\\caff\r\ne2_pybind11_state.vcxproj]\r\n  pybind_state.obj : error LNK2019: unresolved external symbol \"public: virtual __cdecl onnx_torch::ValueInfoProto::~Va\r\nlueInfoProto(void)\" (??1ValueInfoProto@onnx_torch@@UEAA@XZ) referenced in function \"int `public: static void __cdecl st\r\nd::_Default_allocator_traits<class std::allocator<struct std::_List_node<struct std::pair<class std::basic_string<char,\r\nstruct std::char_traits<char>,class std::allocator<char> > const ,class onnx_torch::ValueInfoProto>,void *> > >::constr\r\nuct<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,cla\r\nss onnx_torch::ValueInfoProto>,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,\r\nclass onnx_torch::ValueInfoProto>(class _Default_allocator_traits<class std::allocator<struct std::_List_node<struct st\r\nd::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class onnx_torch\r\n::ValueInfoProto>,void *> > >::allocator<struct std::_List_node<struct std::pair<class std::basic_string<char,struct st\r\nd::char_traits<char>,class std::allocator<char> > const ,class onnx_torch::ValueInfoProto>,void *> > &,struct _Default_\r\nallocator_traits<class std::allocator<struct std::_List_node<struct std::pair<class std::basic_string<char,struct std::\r\nchar_traits<char>,class std::allocator<char> > const ,class onnx_torch::ValueInfoProto>,void *> > >::pair<class std::ba\r\nsic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class onnx_torch::ValueInfoProto> * c\r\nonst,class _Default_allocator_traits<class std::allocator<struct std::_List_node<struct std::pair<class std::basic_stri\r\nng<char,struct std::char_traits<char>,class std::allocator<char> > const ,class onnx_torch::ValueInfoProto>,void *> > >\r\n::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &&,class onnx_torch::ValueInfoProto &&)'\r\n::`1'::dtor$2\" (?dtor$2@?0???$construct@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VValu\r\neInfoProto@onnx_torch@@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@VValueInfoProto@onnx_torch@@@?$\r\n_Default_allocator_traits@V?$allocator@U?$_List_node@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@\r\n2@@std@@VValueInfoProto@onnx_torch@@@std@@PEAX@std@@@std@@@std@@SAXAEAV?$allocator@U?$_List_node@U?$pair@$$CBV?$basic_s\r\ntring@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VValueInfoProto@onnx_torch@@@std@@PEAX@std@@@1@QEAU?$pair@$$CBV?$ba\r\nsic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VValueInfoProto@onnx_torch@@@1@$$QEAV?$basic_string@DU?$char_t\r\nraits@D@std@@V?$allocator@D@2@@1@$$QEAVValueInfoProto@onnx_torch@@@Z@4HA) [C:\\temp\\build_torch\\pytorch\\build\\caffe2\\caf\r\nfe2_pybind11_state.vcxproj]\r\n  pybind_state.obj : error LNK2019: unresolved external symbol \"private: void __cdecl onnx_torch::ValueInfoProto::Inter\r\nnalSwap(class onnx_torch::ValueInfoProto *)\" (?InternalSwap@ValueInfoProto@onnx_torch@@AEAAXPEAV12@@Z) referenced in fu\r\nnction \"public: static void __cdecl std::_Default_allocator_traits<class std::allocator<struct std::_List_node<struct s\r\ntd::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class onnx_torc\r\nh::ValueInfoProto>,void *> > >::construct<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,c\r\nlass std::allocator<char> > const ,class onnx_torch::ValueInfoProto>,class std::basic_string<char,struct std::char_trai\r\nts<char>,class std::allocator<char> >,class onnx_torch::ValueInfoProto>(class std::allocator<struct std::_List_node<str\r\nuct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class onnx\r\n_torch::ValueInfoProto>,void *> > &,struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class s\r\ntd::allocator<char> > const ,class onnx_torch::ValueInfoProto> * const,class std::basic_string<char,struct std::char_tr\r\naits<char>,class std::allocator<char> > &&,class onnx_torch::ValueInfoProto &&)\" (??$construct@U?$pair@$$CBV?$basic_str\r\ning@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VValueInfoProto@onnx_torch@@@std@@V?$basic_string@DU?$char_traits@D@s\r\ntd@@V?$allocator@D@2@@2@VValueInfoProto@onnx_torch@@@?$_Default_allocator_traits@V?$allocator@U?$_List_node@U?$pair@$$C\r\nBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VValueInfoProto@onnx_torch@@@std@@PEAX@std@@@std@@@std@@\r\nSAXAEAV?$allocator@U?$_List_node@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VValueInfoPr\r\noto@onnx_torch@@@std@@PEAX@std@@@1@QEAU?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VValueI\r\nnfoProto@onnx_torch@@@1@$$QEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@$$QEAVValueInfoProto@onnx_torch\r\n@@@Z) [C:\\temp\\build_torch\\pytorch\\build\\caffe2\\caffe2_pybind11_state.vcxproj]\r\n  pybind_state.obj : error LNK2019: unresolved external symbol \"public: __cdecl onnx_torch::TensorProto::TensorProto(vo\r\nid)\" (??0TensorProto@onnx_torch@@QEAA@XZ) referenced in function \"public: class pybind11::bytes __cdecl <lambda_8cbd6b5\r\n3171a514b158d11af40318c6b>::operator()(class caffe2::onnx::Caffe2Backend &,class pybind11::bytes const &,class std::bas\r\nic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const \" (??R<lambda_8cbd6b53171a514b1\r\n58d11af40318c6b>@@QEBA?AVbytes@pybind11@@AEAVCaffe2Backend@onnx@caffe2@@AEBV12@AEBV?$basic_string@DU?$char_traits@D@std\r\n@@V?$allocator@D@2@@std@@@Z) [C:\\temp\\build_torch\\pytorch\\build\\caffe2\\caffe2_pybind11_state.vcxproj]\r\n  pybind_state.obj : error LNK2019: unresolved external symbol \"public: virtual __cdecl onnx_torch::TensorProto::~Tenso\r\nrProto(void)\" (??1TensorProto@onnx_torch@@UEAA@XZ) referenced in function \"public: class pybind11::bytes __cdecl <lambd\r\na_8cbd6b53171a514b158d11af40318c6b>::operator()(class caffe2::onnx::Caffe2Backend &,class pybind11::bytes const &,class\r\n std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const \" (??R<lambda_8cbd6b53\r\n171a514b158d11af40318c6b>@@QEBA?AVbytes@pybind11@@AEAVCaffe2Backend@onnx@caffe2@@AEBV12@AEBV?$basic_string@DU?$char_tra\r\nits@D@std@@V?$allocator@D@2@@std@@@Z) [C:\\temp\\build_torch\\pytorch\\build\\caffe2\\caffe2_pybind11_state.vcxproj]\r\n  pybind_state.obj : error LNK2019: unresolved external symbol \"const onnx_torch::ValueInfoProto::`vftable'\" (??_7Value\r\nInfoProto@onnx_torch@@6B@) referenced in function \"public: static void __cdecl std::_Default_allocator_traits<class std\r\n::allocator<struct std::_List_node<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class st\r\nd::allocator<char> > const ,class onnx_torch::ValueInfoProto>,void *> > >::construct<struct std::pair<class std::basic_\r\nstring<char,struct std::char_traits<char>,class std::allocator<char> > const ,class onnx_torch::ValueInfoProto>,class s\r\ntd::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class onnx_torch::ValueInfoProto>(clas\r\ns std::allocator<struct std::_List_node<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,cla\r\nss std::allocator<char> > const ,class onnx_torch::ValueInfoProto>,void *> > &,struct std::pair<class std::basic_string\r\n<char,struct std::char_traits<char>,class std::allocator<char> > const ,class onnx_torch::ValueInfoProto> * const,class\r\n std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &&,class onnx_torch::ValueInfoProto\r\n&&)\" (??$construct@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VValueInfoProto@onnx_torch\r\n@@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@VValueInfoProto@onnx_torch@@@?$_Default_allocator_tr\r\naits@V?$allocator@U?$_List_node@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VValueInfoPro\r\nto@onnx_torch@@@std@@PEAX@std@@@std@@@std@@SAXAEAV?$allocator@U?$_List_node@U?$pair@$$CBV?$basic_string@DU?$char_traits\r\n@D@std@@V?$allocator@D@2@@std@@VValueInfoProto@onnx_torch@@@std@@PEAX@std@@@1@QEAU?$pair@$$CBV?$basic_string@DU?$char_t\r\nraits@D@std@@V?$allocator@D@2@@std@@VValueInfoProto@onnx_torch@@@1@$$QEAV?$basic_string@DU?$char_traits@D@std@@V?$alloc\r\nator@D@2@@1@$$QEAVValueInfoProto@onnx_torch@@@Z) [C:\\temp\\build_torch\\pytorch\\build\\caffe2\\caffe2_pybind11_state.vcxpro\r\nj]\r\n\r\n    67156 Warning(s)\r\n    12 Error(s)\r\n\r\nTime Elapsed 05:30:12.49\r\n\r\n(base) C:\\temp\\build_torch\\pytorch\\build>IF ERRORLEVEL 1 exit 1\r\nFailed to run 'tools\\build_pytorch_libs.bat --use-cuda --use-nnpack caffe2 libshm_windows'"}}
{"actor":{"display_login":"terrylyons"}}