BVLC / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
34.14k stars 18.67k forks source link

error MSB6006: "cmd.exe" exited with code -1073741515 #6276

Open elhammoumi opened 6 years ago

elhammoumi commented 6 years ago

CustomBuild: Building Custom Rule C:/projects/caffe/src/caffe/CMakeLists.txt CMake does not need to re-run because C:/projects/caffe/build/src/caffe/CMakeFiles/generate.stamp is up-to-date. Running C++/Python protocol buffer compiler on C:/projects/caffe/src/caffe/proto/caffe.proto C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code -1073741515. [C:\projects\caffe\bu ild\src\caffe\caffeproto.vcxproj] Done Building Project "C:\projects\caffe\build\src\caffe\caffeproto.vcxproj" (default targets) -- FAILED.

Done Building Project "C:\projects\caffe\build\src\caffe\caffe.vcxproj" (default targets) -- FAILED.

Done Building Project "C:\projects\caffe\build\ALL_BUILD.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\projects\caffe\build\ALL_BUILD.vcxproj" (default target) (1) -> "C:\projects\caffe\build\src\caffe\caffe.vcxproj" (default target) (3) -> "C:\projects\caffe\build\src\caffe\caffeproto.vcxproj" (default target) (4) -> (CustomBuild target) -> C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code -1073741515. [C:\projects\caffe\ build\src\caffe\caffeproto.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:02.52 ERROR: Build failed

Salem-KHIMOUD commented 6 years ago

hi friend me too i had same error tell me what version of cuda did you use and if you get solution help me thanks good luck

elhammoumi commented 6 years ago

I still did not find a solution to this problem.

Salem-KHIMOUD commented 6 years ago

try this http://www.shaneahmed.com/2017/07/build-caffe-pycaffe-and-matcaffe-on.html for me it worked be sure to use same thing
good luck

richipower commented 6 years ago

hello! i have the same error, do you guys figure it out or any workarounds? or know if that is related to the CUDA version?

fayeinseu commented 6 years ago

hello,I have the same problem。here is my configuration -- General: -- Version : 1.0.0 -- Git : unknown -- System : Windows -- C++ compiler : C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- Release CXX flags : /MD /O2 /Ob2 /DNDEBUG /DWIN32 /D_WINDOWS /W3 /GR /EHsc -- Debug CXX flags : /MDd /Zi /Ob0 /Od /RTC1 /DWIN32 /D_WINDOWS /W3 /GR /EHsc -- Build type : Release

-- BUILD_SHARED_LIBS : 0 -- BUILD_python : 1 -- BUILD_matlab : 1 -- BUILD_docs : -- CPU_ONLY : 0 -- USE_OPENCV : ON -- USE_LEVELDB : ON -- USE_LMDB : ON -- USE_NCCL : 0 -- ALLOW_LMDB_NOLOCK : OFF

-- Dependencies: -- BLAS : Yes (Open) -- Boost : Yes (ver. 1.61) -- glog : Yes -- gflags : Yes -- protobuf : Yes (ver. 3.1.0) -- lmdb : Yes (ver. 0.9.70) -- LevelDB : Yes (ver. 1.18) -- Snappy : Yes (ver. 1.1.1) -- OpenCV : Yes (ver. 3.1.0) -- CUDA : Yes (ver. 9.0)

-- NVIDIA CUDA: -- Target GPU(s) : Auto -- GPU arch(s) : sm_90 -- cuDNN : Yes (ver. 7.1.4)

-- Python: -- Interpreter : D:/app/anaconda/envs/caffe/python.exe (ver. 3.5.4) -- Libraries : D:/app/anaconda/envs/caffe/libs/python35.lib (ver 3.5.4) -- NumPy : D:/app/anaconda/envs/caffe/lib/site-packages/numpy/core/include (ver 1.13.1)

-- Matlab: -- Matlab : Yes (, -- Octave : No

-- Install: -- Install path : D:/caffeprojects/caffe-windows/scripts/build/install

tromgy commented 4 years ago

Late for the game, but I'm pretty sure I know what is causing it. The error code is STATUS_DLL_NOT_FOUND, and it must be arising when the build is trying to run protoc.exe (protobuf compiler). It must be missing some dependencies. Try to locate protoc.exe and run it manually. It will tell you which DLL is missing. The complete protobuf compiler with all its dependencies can be found here.