Closed
Description
Issue description
Windows build of caffe2 fails. Compiler errors in generated protobuf file caffe2.pb.h:
D:/code/pytorch/build\caffe2/proto/caffe2.pb.h(229): error : member "caffe2::TensorProto_Segment::kIndexInFileMessages" may not be initialized [D:\ code\pytorch\build\caffe2\caffe2_gpu.vcxproj]
The generated header looks OK:
class CAFFE2_API TensorProto_Segment : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:caffe2.TensorProto.Segment) */ {
public:
TensorProto_Segment();
virtual ~TensorProto_Segment();
//// ... snip .... ////
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
0;
}
Master branch git hash 9f21ec7 .
System Info
- PyTorch or Caffe2:
Caffe2 - How you installed PyTorch (conda, pip, source):
Did not install PyTorch, as I am building from source. - Build command you used (if compiling from source):
Opened Developer Command Prompt for VS 2017 (but see below)
Activated Python 2.7 environment
Ran cmake-gui - selected "Visual Studio 14 2015 Win64" generator
Configured Cmake options (mostly use defaults; see below)
Ran scripts\build_windows.bat - OS:
Windows 10 - PyTorch version:
N/A - Python version:
Anaconda 2.7.14 64-bit - CUDA/cuDNN version:
CUDA 9.1 / cuDNN 7.1.3 - GPU models and configuration:
GeForce GTX 980 Ti - 6 GB - GCC version (if compiling from source):
N/A. VS 2017 (but using the included VS 2015 toolchain). - CMake version:
3.10.3 - Versions of any other relevant libraries: