{"action":"created","issue":{"url":"https://api.github.com/repos/torch/cutorch/issues/220","labels_url":"https://api.github.com/repos/torch/cutorch/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/torch/cutorch/issues/220/comments","events_url":"https://api.github.com/repos/torch/cutorch/issues/220/events","html_url":"https://github.com/torch/cutorch/issues/220","id":99578780,"number":220,"title":"Problem Installing Cutorch in MacOS Yosemite","user":{"login":"finiterank","id":2453052,"avatar_url":"https://avatars.githubusercontent.com/u/2453052?v=3","gravatar_id":"","url":"https://api.github.com/users/finiterank","html_url":"https://github.com/finiterank","followers_url":"https://api.github.com/users/finiterank/followers","following_url":"https://api.github.com/users/finiterank/following{/other_user}","gists_url":"https://api.github.com/users/finiterank/gists{/gist_id}","starred_url":"https://api.github.com/users/finiterank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finiterank/subscriptions","organizations_url":"https://api.github.com/users/finiterank/orgs","repos_url":"https://api.github.com/users/finiterank/repos","events_url":"https://api.github.com/users/finiterank/events{/privacy}","received_events_url":"https://api.github.com/users/finiterank/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-07T04:53:02Z","updated_at":"2015-09-30T09:37:39Z","closed_at":null,"body":"I'm getting this error message:\r\n\r\n```\r\njavier$ luarocks install cutorch\r\nInstalling https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec...\r\nUsing https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec... switching to 'build' mode\r\nCloning into 'cutorch'...\r\nremote: Counting objects: 76, done.\r\nremote: Compressing objects: 100% (73/73), done.\r\nremote: Total 76 (delta 8), reused 20 (delta 0), pack-reused 0\r\nReceiving objects: 100% (76/76), 108.97 KiB | 0 bytes/s, done.\r\nResolving deltas: 100% (8/8), done.\r\nChecking connectivity... done.\r\ncmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=\"/Users/javier/src/torch/install/bin/..\" -DCMAKE_INSTALL_PREFIX=\"/Users/javier/src/torch/install/lib/luarocks/rocks/cutorch/scm-1\" && make -j$(getconf _NPROCESSORS_ONLN) install\r\n\r\n-- The C compiler identification is AppleClang 6.0.0.6000057\r\n-- The CXX compiler identification is AppleClang 6.0.0.6000057\r\n-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc\r\n-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Detecting C compile features\r\n-- Detecting C compile features - done\r\n-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++\r\n-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Detecting CXX compile features\r\n-- Detecting CXX compile features - done\r\n-- Found Torch7 in /Users/javier/src/torch/install\r\n-- Looking for include file pthread.h\r\n-- Looking for include file pthread.h - found\r\n-- Looking for pthread_create\r\n-- Looking for pthread_create - found\r\n-- Found Threads: TRUE\r\n-- Found CUDA: /usr/local/cuda (found suitable version \"7.0\", minimum required is \"5.5\")\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: /tmp/luarocks_cutorch-scm-1-6844/cutorch/build\r\n[  8%] Generating TensorMath.c\r\n[  8%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorSort.cu.o\r\n[  8%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o\r\n[  8%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o\r\n[ 10%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o\r\n[ 13%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensor.cu.o\r\n[ 15%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o\r\n[ 17%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorageCopy.cu.o\r\nScanning dependencies of target cutorch_static\r\nIn file included from <built-in>:175:\r\nIn file includeId nf rfoimle included from  <<commbuiltI-ni nf>i:a1ln7ed5  :il\r\nniIcnnleu >df:ei9dl: e\r\nf Irinon mcf l<ubdiuelidel  tfi-rniocnml> u:<d1ec7do5 m:fm\r\nraIonnmd   f/liuilsnere />il:no9c:cl\r\nauIldn/e cdfu idflare/o imin nc<clcluoudmdeme/adcn udfd ralo_imrn ue/n>ut:si9rm:/e\r\nl.Iohnc: a1fl0i/4lc:eu\r\n d/iaun/scirln/ucldloeucdda elf/r/cocumudd aa/_/urisunrnc/tlliuomdceea./lhc/:oc1mu0md4oa:n/\r\n_i/fnuucsnrlc/utldioeoc/nacslu./dhca:u_6dr5au:/n1it0ni:cm lefu.adhte:a/1lc0 o4em:rm\r\nro/onur_s:fr u/'nlscottcriaiolnn/gsc..uhhd':a 6/f5ii:nl1ce0l :un dofeta/ tcfaoolmu mneodrn\r\nr_#ofirun:nc cl'tusidtoern is<n.sgh.:h6t'5r :if1ni0gl:.e h f>na\r\not ta  l f  oe ur nr do\r\nr #:^i\r\nn'cslturdien g<.sht'r ifnigl.eh >n\r\no t   f o u n d\r\n #^i\r\nnclude <string.h>\r\n         ^\r\nIn file included from <built-in>:175:\r\nIn file included from <command line>:9:\r\nIn file included from /usr/local/cuda/include/cuda_runtime.h:104:\r\n/usr/local/cuda/include/common_functions.h:65:10: fatal error: 'string.h' file not found\r\n#include <string.h>\r\n         ^\r\nIn file included from <built-in>:175:\r\nIn file included from <command line>:9:\r\nIn file included from /usr/local/cuda/include/cuda_runtime.h:104:\r\n/usr/local/cuda/include/common_functions.h:65:10: fatal error: 'string.h' file not found\r\n#include <string.h>\r\n         ^\r\nIn file included from <built-in>:175:\r\nIn file included from <command line>:9:\r\nIn file included from /usr/local/cuda/include/cuda_runtime.h:104:\r\n/usr/local/cuda/include/common_functions.h:65:10: fatal error: 'string.h' file not found\r\n#include <string.h>\r\n         ^\r\nIn file included from <built-in>:175:\r\nIn file included from <command line>:9:\r\nIn file included from /usr/local/cuda/include/cuda_runtime.h:104:\r\n/usr/local/cuda/include/common_functions.h:65:10: fatal error: 'string.h' file not found\r\n#include <string.h>\r\n         ^\r\n1 error generated.\r\n1 error generated.\r\n[ 19%] Building C object CMakeFiles/cutorch_static.dir/Storage.c.o\r\nCMake Error at THC_generated_THCStorCagMeaCkoep yE.rcruo.ro .actm aTkHeC:_2g0e7n e(rmaetsesda_gTeH)C:B\r\nl a sE.rcruo.ro .gcemnaekrea:t2i0n7g\r\n( m e/stsmapg/el)u:a\r\nr o cEkrsr_ocru tgoerncehr-astcimn-g1\r\n- 6 8/4t4m/pc/ultuoarrcohc/kbsu_icludt/olricbh/-TsHcCm/-C1M-a6k8e4F4i/lceust/oTrHcCh./dbiuri/l/d.//lTiHbC/_TgHeCn/eCrMaatkeedF_iTlHeCsS/tToHrCa.gedCiorp/y/..c/uT.HoC\r\n_\r\ngener\r\nated_THCBlas.cu.o\r\n\r\n\r\nmake[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorageCopy.cu.o] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\nmake[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o] Error 1\r\n1 error generated.\r\n1 error generated.\r\n1 error generated.\r\n[ 23%] Building C object CMakeFiles/cutorch_static.dir/Tensor.c.o\r\n[ 23%] Building C object CMakeFiles/cutorch_static.dir/init.c.o\r\nCCMMaakkee  EErrrroorr  aatt  TTHHCC__ggeenneerraatteedd__TTHHCCRTeednuscoerA.pcpul.yoU.tcimlask.ec:u2.0o7. c(mmaekses:a2g0e7) :(\r\nm e sEsrargoer) :g\r\ne n eErrartoirn gg\r\ne n e/rtamtpi/nlgu\r\na r o/ctkmsp_/cluutaorrocchk-ss_ccmu-t1o-r6c8h4-4s/ccmu-t1o-r6c8h4/4b/uciultdo/rlcihb//bTuHiCl/dC/Mlaikbe/FTiHlCe/sC/MTaHkCe.Fdiilre/s//.T/HTCH.Cd_igre/n/e.r/aTtHeCd__gTeHnCeTreantseodr_.TcHuC.Roe\r\nd\r\nuceAppl\r\nyUtils.cu.o\r\n\r\n\r\nmake[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensor.cu.o] Error 1\r\nmake[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o] Error 1\r\nCMake Error at THC_generated_THCTensorCopy.cu.o.cmake:207 (message):\r\n  Error generating\r\n  /tmp/luarocks_cutorch-scm-1-6844/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorCopy.cu.o\r\n\r\n\r\nmake[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCT[ 28%] Building C object CMakeFiles/cutorch_static.dir/TensorOperator.c.o\r\nensorCopy.cu.o] Error 1[ 28%] Building C object CMakeFiles/cutorch_static.dir/TensorMath.c.o\r\n\r\n[ 30%] Building C object CMakeFiles/cutorch_static.dir/torch/utils.c.o\r\n1 error generated.\r\nCMake Error at THC_generated_THCStorage.cu.o.cmake:207 (message):\r\n  Error generating\r\n  /tmp/luarocks_cutorch-scm-1-6844/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorage.cu.o\r\n\r\n\r\nmake[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o] Error 1\r\n1 error generated.\r\nCMake Error at THC_generated_THCTensorSort.cu.o.cmake:207 (message):\r\n  Error generating\r\n  /tmp/luarocks_cutorch-scm-1-6844/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorSort.cu.o\r\n\r\n\r\nmake[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorSort.cu.o] Error 1\r\nmake[1]: *** [lib/THC/CMakeFiles/THC.dir/all] Error 2\r\nmake[1]: *** Waiting for unfinished jobs....\r\n[ 32%] Linking C static library libcutorch.a\r\n[ 32%] Built target cutorch_static\r\nmake: *** [all] Error 2\r\n\r\nError: Build error: Failed building.\r\n```\r\n\r\nJust in case, the output of `gcc -v`:\r\n\r\n```\r\nConfigured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1\r\nApple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)\r\nTarget: x86_64-apple-darwin14.1.0\r\nThread model: posix\r\n```\r\n\r\nI already tried updating torch just in case but it didn't make any difference. \r\n\r\nAny help would be greatly appreciated. "},"comment":{"url":"https://api.github.com/repos/torch/cutorch/issues/comments/144339191","html_url":"https://github.com/torch/cutorch/issues/220#issuecomment-144339191","issue_url":"https://api.github.com/repos/torch/cutorch/issues/220","id":144339191,"user":{"login":"Zhen-hao","id":10957195,"avatar_url":"https://avatars.githubusercontent.com/u/10957195?v=3","gravatar_id":"","url":"https://api.github.com/users/Zhen-hao","html_url":"https://github.com/Zhen-hao","followers_url":"https://api.github.com/users/Zhen-hao/followers","following_url":"https://api.github.com/users/Zhen-hao/following{/other_user}","gists_url":"https://api.github.com/users/Zhen-hao/gists{/gist_id}","starred_url":"https://api.github.com/users/Zhen-hao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zhen-hao/subscriptions","organizations_url":"https://api.github.com/users/Zhen-hao/orgs","repos_url":"https://api.github.com/users/Zhen-hao/repos","events_url":"https://api.github.com/users/Zhen-hao/events{/privacy}","received_events_url":"https://api.github.com/users/Zhen-hao/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T09:37:39Z","updated_at":"2015-09-30T09:37:39Z","body":"The problem can be solved by installing Xcode 6.2. The reason is that CUDA doesn't support higher versions of Xcode."}}