Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error C1017 when compile on windows #6466

Open
ycui123 opened this issue Jul 16, 2018 · 8 comments
Open

Fatal error C1017 when compile on windows #6466

ycui123 opened this issue Jul 16, 2018 · 8 comments
Labels

Comments

@ycui123
Copy link

ycui123 commented Jul 16, 2018

Issue summary

Fatal error C1017 when compile on windows. Can't compile

Steps to reproduce

Followed the instruction. Failed at scripts\build_win.cmd.

System configuration

  • Operating system: Windows10
  • Compiler: MSVS2015
  • CUDA version (if applicable): 9.0
  • CUDNN version (if applicable): v7
  • BLAS:
  • Python version (if using pycaffe): 3.5
  • MATLAB version (if using matcaffe):

Issue checklist

"E:\caffe\build\ALL_BUILD.vcxproj" (default target) (1) ->
"E:\caffe\build\src\caffe\caffe.vcxproj" (default target) (3) ->
(CustomBuild target) ->
C:/Users/Jack/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include/boost-1_61\boost/config/compiler/nv
cc.hpp(22): fatal error C1017: invalid integer constant expression [E:\caffe\build\src\caffe\caffe.vcxproj]

@zchrissirhcz
Copy link

@ycui123 Hi, did you solve this problem? I'm same here.

@zchrissirhcz
Copy link

@ycui123 @Noiredd see #5994, since cuda7.5 it use __CUDACC_VER_MAJOR__ and __CUDACC_VER_MINOR__. Thus for windows branch, the dependency file C:\Users\chris\.caffe\dependencies\libraries_v140_x64_py27_1.1.0\libraries\include\boost-1_61\boost\config\compiler\nvcc.hpp's last three lines should be removed or commented:

#if !defined(__CUDACC_VER__) || (__CUDACC_VER__ < 70500)
#   define BOOST_NO_CXX11_VARIADIC_TEMPLATES
#endif

@zchrissirhcz
Copy link

For people who met this problem when build caffe with cmake and cuda on windows, you can refer to my Chinese blog for the whole successful steps: Windows下用cmake编译Caffe

@mlosab3
Copy link

mlosab3 commented Aug 25, 2018

@ycui123 - did you try to use ck tool? I managed to build Caffe for Windows with VS 2015 and CUDA 9.0 as described in #5675 .

@zchrissirhcz
Copy link

@mlosab3 I didn't use ck tools, since I was on half way of using willyd's provided dependencies. With some modifications in cmake related config files, I can successfully build the windows branch of caffe, you may refer to my blog.

@mlosab3
Copy link

mlosab3 commented Aug 25, 2018

@zchrissirhcz - my school started using Ck because it detects or installs all required software for windows branch of caffe without the need to modify config files - that's neat. It is also recommended by several conferences where we publish our papers. Check it out at http://www.cknowledge.org

@zchrissirhcz
Copy link

@mlosab3 Thanks for you recommendation on Ck. Actually, I think the official Caffe's windows branch is not that hard to be configured, but forks such as SSD or faster rcnn are difficult, especially on windows. To use the original user's code, I think I still need to use Linux instead of Windows.

@mlosab3
Copy link

mlosab3 commented Aug 26, 2018

@zchrissirhcz - that's right. We were suggested to use ck mainly because we do not have much time and have to concentrate on improving classification for our assignment rather than on installing Caffe. Ck just provided the same "front end" for all students to install Caffe on laptops with different operating systems. But we did not yet look at other forks so I actually do not know how or if they are supported by the ck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants