Skip to content

Enable build_python on windows#11385

Closed
mingzhe09088 wants to merge 27 commits intopytorch:masterfrom
mingzhe09088:windows-python
Closed

Enable build_python on windows#11385
mingzhe09088 wants to merge 27 commits intopytorch:masterfrom
mingzhe09088:windows-python

Conversation

@mingzhe09088
Copy link
Contributor

@mingzhe09088 mingzhe09088 commented Sep 7, 2018

The PR aims to resolve issues related to BUILD_PYTHON and BUILD_TEST after FULL_CAFFE2 is removed on Windows.

@peterjc123
Copy link
Collaborator

These are the symbols that are not well annotated extracted from the build log.

error LNK2019: unresolved external symbol "__declspec(dllimport) public: char const * __cdecl caffe2::Registry<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::unique_ptr<class caffe2::OperatorBase,struct std::default_delete<class caffe2::OperatorBase> >,class caffe2::OperatorDef const &,class caffe2::Workspace *>::HelpMessage(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const "  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl caffe2::Registry<class caffe2::TypeIdentifier,class std::unique_ptr<class caffe2::python::BlobFetcherBase,struct std::default_delete<class caffe2::python::BlobFetcherBase> > >::Registry<class caffe2::TypeIdentifier,class std::unique_ptr<class caffe2::python::BlobFetcherBase,struct std::default_delete<class caffe2::python::BlobFetcherBase> > >(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::unique_ptr<class caffe2::python::BlobFetcherBase,struct std::default_delete<class caffe2::python::BlobFetcherBase> > __cdecl caffe2::Registry<class caffe2::TypeIdentifier,class std::unique_ptr<class caffe2::python::BlobFetcherBase,struct std::default_delete<class caffe2::python::BlobFetcherBase> > >::Create(class caffe2::TypeIdentifier const &)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl caffe2::Registry<enum at::DeviceType,class std::unique_ptr<class caffe2::python::BlobFeederBase,struct std::default_delete<class caffe2::python::BlobFeederBase> > >::Registry<enum at::DeviceType,class std::unique_ptr<class caffe2::python::BlobFeederBase,struct std::default_delete<class caffe2::python::BlobFeederBase> > >(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::unique_ptr<class caffe2::python::BlobFeederBase,struct std::default_delete<class caffe2::python::BlobFeederBase> > __cdecl caffe2::Registry<enum at::DeviceType,class std::unique_ptr<class caffe2::python::BlobFeederBase,struct std::default_delete<class caffe2::python::BlobFeederBase> > >::Create(enum at::DeviceType const &)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > __cdecl caffe2::Registry<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::unique_ptr<class caffe2::db::DB,struct std::default_delete<class caffe2::db::DB> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum caffe2::db::Mode>::Keys(void)"  
error LNK2019: unresolved external symbol "public: __cdecl onnx_torch::ValueInfoProto::ValueInfoProto(void)"  
error LNK2019: unresolved external symbol "public: virtual __cdecl onnx_torch::ValueInfoProto::~ValueInfoProto(void)"  
error LNK2019: unresolved external symbol "private: void __cdecl onnx_torch::ValueInfoProto::InternalSwap(class onnx_torch::ValueInfoProto *)"  
error LNK2019: unresolved external symbol "public: __cdecl onnx_torch::TensorProto::TensorProto(void)"  
error LNK2019: unresolved external symbol "public: virtual __cdecl onnx_torch::TensorProto::~TensorProto(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl caffe2::Registerer<class caffe2::TypeIdentifier,class std::unique_ptr<class caffe2::python::BlobFetcherBase,struct std::default_delete<class caffe2::python::BlobFetcherBase> > >::Registerer<class caffe2::TypeIdentifier,class std::unique_ptr<class caffe2::python::BlobFetcherBase,struct std::default_delete<class caffe2::python::BlobFetcherBase> > >(class caffe2::TypeIdentifier const &,class caffe2::Registry<class caffe2::TypeIdentifier,class std::unique_ptr<class caffe2::python::BlobFetcherBase,struct std::default_delete<class caffe2::python::BlobFetcherBase> > > *,class std::function<class std::unique_ptr<class caffe2::python::BlobFetcherBase,struct std::default_delete<class caffe2::python::BlobFetcherBase> > __cdecl(void)>,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl caffe2::Registerer<enum at::DeviceType,class std::unique_ptr<class caffe2::python::BlobFeederBase,struct std::default_delete<class caffe2::python::BlobFeederBase> > >::Registerer<enum at::DeviceType,class std::unique_ptr<class caffe2::python::BlobFeederBase,struct std::default_delete<class caffe2::python::BlobFeederBase> > >(enum at::DeviceType const &,class caffe2::Registry<enum at::DeviceType,class std::unique_ptr<class caffe2::python::BlobFeederBase,struct std::default_delete<class caffe2::python::BlobFeederBase> > > *,class std::function<class std::unique_ptr<class caffe2::python::BlobFeederBase,struct std::default_delete<class caffe2::python::BlobFeederBase> > __cdecl(void)>,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl caffe2::Registry<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::unique_ptr<class caffe2::GradientMakerBase,struct std::default_delete<class caffe2::GradientMakerBase> >,class caffe2::OperatorDef const &,class std::vector<struct caffe2::GradientWrapper,class std::allocator<struct caffe2::GradientWrapper> > const &>::Has(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: char const * __cdecl caffe2::Registry<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::unique_ptr<class caffe2::GradientMakerBase,struct std::default_delete<class caffe2::GradientMakerBase> >,class caffe2::OperatorDef const &,class std::vector<struct caffe2::GradientWrapper,class std::allocator<struct caffe2::GradientWrapper> > const &>::HelpMessage(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const "  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl caffe2::Registry<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::unique_ptr<class caffe2::OptimizationPass,struct std::default_delete<class caffe2::OptimizationPass> >,struct nom::repr::NNModule *>::Has(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::unique_ptr<class caffe2::OptimizationPass,struct std::default_delete<class caffe2::OptimizationPass> > __cdecl caffe2::Registry<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::unique_ptr<class caffe2::OptimizationPass,struct std::default_delete<class caffe2::OptimizationPass> >,struct nom::repr::NNModule *>::Create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,struct nom::repr::NNModule *)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl caffe2::Registry<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::unique_ptr<class caffe2::WorkspaceOptimizationPass,struct std::default_delete<class caffe2::WorkspaceOptimizationPass> >,struct nom::repr::NNModule *,class caffe2::Workspace *>::Has(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::unique_ptr<class caffe2::WorkspaceOptimizationPass,struct std::default_delete<class caffe2::WorkspaceOptimizationPass> > __cdecl caffe2::Registry<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::unique_ptr<class caffe2::WorkspaceOptimizationPass,struct std::default_delete<class caffe2::WorkspaceOptimizationPass> >,struct nom::repr::NNModule *,class caffe2::Workspace *>::Create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,struct nom::repr::NNModule *,class caffe2::Workspace *)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::unique_ptr<struct caffe2::python::PybindAddition,struct std::default_delete<struct caffe2::python::PybindAddition> > __cdecl caffe2::Registry<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::unique_ptr<struct caffe2::python::PybindAddition,struct std::default_delete<struct caffe2::python::PybindAddition> >,class pybind11::module &>::Create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class pybind11::module &)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > __cdecl caffe2::Registry<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::unique_ptr<struct caffe2::python::PybindAddition,struct std::default_delete<struct caffe2::python::PybindAddition> >,class pybind11::module &>::Keys(void)"  
error LNK2019: unresolved external symbol "const onnx_torch::ValueInfoProto::`vftable'"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl nom::Graph<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::Graph<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl nom::Graph<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::~Graph<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::vector<class nom::Node<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> > *,class std::allocator<class nom::Node<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> > *> > const __cdecl nom::Graph<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::getMutableNodes(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::vector<class nom::Edge<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> > *,class std::allocator<class nom::Edge<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> > *> > const __cdecl nom::Graph<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::getMutableEdges(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl nom::Graph<class pybind11::object>::Graph<class pybind11::object>(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl nom::Graph<class pybind11::object>::~Graph<class pybind11::object>(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: class nom::Node<class pybind11::object> * __cdecl nom::Graph<class pybind11::object>::createNode(class pybind11::object &&)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: class nom::Edge<class pybind11::object> * __cdecl nom::Graph<class pybind11::object>::createEdge(class nom::Node<class pybind11::object> *,class nom::Node<class pybind11::object> *)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::vector<class nom::Node<class pybind11::object> *,class std::allocator<class nom::Node<class pybind11::object> *> > const __cdecl nom::Graph<class pybind11::object>::getMutableNodes(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl nom::Node<class pybind11::object>::Node<class pybind11::object>(class nom::Node<class pybind11::object> &&)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl nom::Node<class pybind11::object>::~Node<class pybind11::object>(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct nom::repr::nn::NNNodeMatchCriteria __cdecl nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria>::getCriteria(void)const "  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl nom::Subgraph<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::Subgraph<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl nom::Subgraph<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::addNode(class nom::Node<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> > *)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl nom::Subgraph<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::~Subgraph<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl nom::Subgraph<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::Subgraph<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >(class nom::Subgraph<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> > const &)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl nom::Subgraph<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::Subgraph<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >(class nom::Subgraph<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> > &&)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl caffe2::Registerer<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::unique_ptr<struct caffe2::python::PybindAddition,struct std::default_delete<struct caffe2::python::PybindAddition> >,class pybind11::module &>::Registerer<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::unique_ptr<struct caffe2::python::PybindAddition,struct std::default_delete<struct caffe2::python::PybindAddition> >,class pybind11::module &>(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class caffe2::Registry<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::unique_ptr<struct caffe2::python::PybindAddition,struct std::default_delete<struct caffe2::python::PybindAddition> >,class pybind11::module &> *,class std::function<class std::unique_ptr<struct caffe2::python::PybindAddition,struct std::default_delete<struct caffe2::python::PybindAddition> > __cdecl(class pybind11::module &)>,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl nom::Graph<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper>::Graph<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper>(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl nom::Graph<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper>::~Graph<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper>(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: class nom::Node<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper> * __cdecl nom::Graph<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper>::createNode(struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper &&)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: class nom::Edge<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper> * __cdecl nom::Graph<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper>::createEdge(class nom::Node<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper> *,class nom::Node<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper> *,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::vector<class nom::Node<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper> *,class std::allocator<class nom::Node<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper> *> > const __cdecl nom::Graph<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper>::getMutableNodes(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl nom::Subgraph<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper>::Subgraph<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper>(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl nom::Subgraph<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper>::addNode(class nom::Node<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper> *)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl nom::Subgraph<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper>::addEdge(class nom::Edge<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper> *)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl nom::Subgraph<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper>::~Subgraph<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper>(void)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl nom::Subgraph<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper>::Subgraph<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper>(class nom::Subgraph<struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::NodeWrapper,struct nom::algorithm::GraphWrapper<class nom::matcher::MatchNode<struct nom::repr::nn::NNNodeMatchCriteria> >::EdgeWrapper> const &)"  
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl caffe2::Registry<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::unique_ptr<struct caffe2::python::PybindAddition,struct std::default_delete<struct caffe2::python::PybindAddition> >,class pybind11::module &>::Registry<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::unique_ptr<struct caffe2::python::PybindAddition,struct std::default_delete<struct caffe2::python::PybindAddition> >,class pybind11::module &>(void)"  

@ezyang
Copy link
Contributor

ezyang commented Sep 12, 2018

@pytorchbot retest this please

@mingzhe09088 mingzhe09088 changed the title [WIP] Enable build_python on windows [WIP] Enable build_python and build_test on windows Sep 12, 2018
@orionr
Copy link
Contributor

orionr commented Sep 13, 2018

Waiting for #11622 to land and then I'll merge again

@orionr
Copy link
Contributor

orionr commented Sep 13, 2018

Actually - I take that back. Updating the submodule here.

@houseroad
Copy link
Member

#11622 is landed :-)

@peterjc123
Copy link
Collaborator

peterjc123 commented Sep 14, 2018

I have skimmed the log. There seems to be only some remaining, like const onnx_torch::ValueInfoProto::~vftable. I guess that we'll need to restructure some of the code, moving the implementation part to the source file. (something like the solution 4 in this post) As for the last linking failure, I think it is probably caused by previous linking errors.

This comment was marked as off-topic.

@mingzhe09088 mingzhe09088 changed the title [WIP] Enable build_python and build_test on windows Enable build_python on windows Sep 17, 2018
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mingzhe09088 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mingzhe09088 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Sep 18, 2018
Summary:
The PR aims to resolve issues related to BUILD_PYTHON and BUILD_TEST after FULL_CAFFE2 is removed on Windows.
Pull Request resolved: pytorch/pytorch#11385

Reviewed By: orionr

Differential Revision: D9884906

Pulled By: mingzhe09088

fbshipit-source-id: fc114c0cbff6223f1ec261161e4caecc1fef5dd6
@ezyang ezyang added the merged label Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants