{"action":"created","issue":{"url":"https://api.github.com/repos/01org/caffe/issues/97","repository_url":"https://api.github.com/repos/01org/caffe","labels_url":"https://api.github.com/repos/01org/caffe/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/01org/caffe/issues/97/comments","events_url":"https://api.github.com/repos/01org/caffe/issues/97/events","html_url":"https://github.com/01org/caffe/issues/97","id":280711107,"number":97,"title":"Error when building debug version","user":{"login":"bxk-sonavex","id":19493436,"avatar_url":"https://avatars1.githubusercontent.com/u/19493436?v=4","gravatar_id":"","url":"https://api.github.com/users/bxk-sonavex","html_url":"https://github.com/bxk-sonavex","followers_url":"https://api.github.com/users/bxk-sonavex/followers","following_url":"https://api.github.com/users/bxk-sonavex/following{/other_user}","gists_url":"https://api.github.com/users/bxk-sonavex/gists{/gist_id}","starred_url":"https://api.github.com/users/bxk-sonavex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bxk-sonavex/subscriptions","organizations_url":"https://api.github.com/users/bxk-sonavex/orgs","repos_url":"https://api.github.com/users/bxk-sonavex/repos","events_url":"https://api.github.com/users/bxk-sonavex/events{/privacy}","received_events_url":"https://api.github.com/users/bxk-sonavex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-09T11:18:29Z","updated_at":"2017-12-12T09:15:03Z","closed_at":null,"author_association":"NONE","body":"I got the following error when building a debug version, using the `build_win.cmd`.  Briefly, the error was `cl : Command line error D8016: '/O1' and '/RTC1' command-line options are incompatible [C:\\DL\\clCaffe\\build\\src\\caffe\\caffe.vcxproj]`.  \r\n\r\nThe release version was built successfully.  I am using the latest code in the repo, VS 2015 on Intel NUC with iGPU.  Looks this should be a minor fix but I don't know where I should modify.\r\n\r\n```\r\n  C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\x86_amd64\\CL.exe /c /IC:\\DL\\clCaffe\\src /IC:\\DL\\clCaffe\\PUBLIC /I\"C:\\DL\\clCaff\r\n  e\\build\\libraries\\include\\boost-1_61\" /IC:\\DL\\clCaffe\\build\\libraries\\include /IC:\\DL\\clCaffe\\build\\include /IC:\\DL\\clCaffe\\PRIVATE /IC:\\\r\n  Intel\\OpenCL\\sdk\\include /IC:\\DL\\viennacl /IC:\\DL\\isaac\\include\\external /IC:\\DL\\clCaffe\\build\\libraries\\include\\opencv /I\"C:\\Users\\NUC-S\r\n  onavex\\Anaconda3\\envs\\py35\\include\" /I\"C:\\Users\\NUC-Sonavex\\Anaconda3\\envs\\py35\\lib\\site-packages\\numpy\\core\\include\" /IC:\\DL\\clCaffe\\inc\r\n  lude /IC:\\DL\\clCaffe\\build /IC:\\DL\\clCaffe\\build\\libraries\\Include /Zi /nologo /W3 /WX- /MP /O1 /Ob0 /D WIN32 /D _WINDOWS /D USE_LMDB /D\r\n  USE_LEVELDB /D USE_GREENTEA /D VIENNACL_WITH_OPENCL /D USE_LIBDNN /D USE_INTEL_SPATIAL /D USE_CLBLAS /D HAS_HALF_SUPPORT /D USE_OPENCV /D\r\n   USE_OpenBLAS /D WITH_PYTHON_LAYER /D CAFFE_BUILDING_STATIC_LIB /D CMAKE_WINDOWS_BUILD /D BOOST_ALL_NO_LIB /D \"CAFFE_VERSION=1.0.0-rc5\" /\r\n  D BOOST_NO_CXX11_TEMPLATE_ALIASES /D USE_HDF5 /D GLOG_NO_ABBREVIATED_SEVERITIES /D \"GOOGLE_GLOG_DLL_DECL=__declspec(dllimport)\" /D \"GOOGL\r\n  E_GLOG_DLL_DECL_FOR_UNITTESTS=__declspec(dllimport)\" /D H5_BUILT_AS_DYNAMIC_LIB=1 /D \"CMAKE_INTDIR=\\\"Debug\\\"\" /D _MBCS /Gm- /EHsc /RTC1 /\r\n  MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo\"caffe.dir\\Debug\\\\\" /Fd\"caffe.dir\\Debug\\caffe.pdb\" /Gd /TP /errorReport:qu\r\n  eue C:\\DL\\clCaffe\\build\\src\\caffe\\conv_layer_spatial_pretuned_data.cpp\r\ncl : Command line error D8016: '/O1' and '/RTC1' command-line options are incompatible [C:\\DL\\clCaffe\\build\\src\\caffe\\caffe.vcxproj]\r\nDone Building Project \"C:\\DL\\clCaffe\\build\\src\\caffe\\caffe.vcxproj\" (default targets) -- FAILED.\r\n\r\nDone Building Project \"C:\\DL\\clCaffe\\build\\ALL_BUILD.vcxproj\" (default targets) -- FAILED.\r\n\r\n\r\nBuild FAILED.\r\n\r\n... \r\n\r\n\"C:\\DL\\clCaffe\\build\\ALL_BUILD.vcxproj\" (default target) (1) ->\r\n\"C:\\DL\\clCaffe\\build\\src\\caffe\\caffe.vcxproj\" (default target) (3) ->\r\n(ClCompile target) ->\r\n  cl : Command line error D8016: '/O1' and '/RTC1' command-line options are incompatible [C:\\DL\\clCaffe\\build\\src\\caffe\\caffe.vcxproj]\r\n\r\n    97 Warning(s)\r\n    1 Error(s)\r\n```\r\n\r\nI searched the error and found that\r\n>   Run-time error checks are a way for you to find problems in your running code; for more information, see How to: Use Native Run-Time Checks.\r\n>\r\n>    If you compile your program at the command line using any of the /RTC compiler options, any pragma optimize instructions in your code will silently fail. This is because run-time error checks are not valid in a release (optimized) build.\r\n>\r\n>    You should use /RTC for development builds; /RTC should not be used for a retail build. /RTC cannot be used with compiler optimizations (/O Options (Optimize Code)). A program image built with /RTC will be slightly larger and slightly slower than an image built with /Od (up to 5 percent slower than an /Od build).\r\n"},"comment":{"url":"https://api.github.com/repos/01org/caffe/issues/comments/350991114","html_url":"https://github.com/01org/caffe/issues/97#issuecomment-350991114","issue_url":"https://api.github.com/repos/01org/caffe/issues/97","id":350991114,"user":{"login":"gongzg","id":782918,"avatar_url":"https://avatars0.githubusercontent.com/u/782918?v=4","gravatar_id":"","url":"https://api.github.com/users/gongzg","html_url":"https://github.com/gongzg","followers_url":"https://api.github.com/users/gongzg/followers","following_url":"https://api.github.com/users/gongzg/following{/other_user}","gists_url":"https://api.github.com/users/gongzg/gists{/gist_id}","starred_url":"https://api.github.com/users/gongzg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gongzg/subscriptions","organizations_url":"https://api.github.com/users/gongzg/orgs","repos_url":"https://api.github.com/users/gongzg/repos","events_url":"https://api.github.com/users/gongzg/events{/privacy}","received_events_url":"https://api.github.com/users/gongzg/received_events","type":"User","site_admin":false},"created_at":"2017-12-12T09:15:03Z","updated_at":"2017-12-12T09:15:03Z","author_association":"NONE","body":"just pushed the fix. Please check it again."}}
{"actor":{"display_login":"gongzg"}}