{"action":"closed","issue":{"url":"https://api.github.com/repos/torch/cutorch/issues/258","labels_url":"https://api.github.com/repos/torch/cutorch/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/torch/cutorch/issues/258/comments","events_url":"https://api.github.com/repos/torch/cutorch/issues/258/events","html_url":"https://github.com/torch/cutorch/issues/258","id":110124873,"number":258,"title":"luarocks install cutorch fails on CentOS","user":{"login":"IrwanBello","id":4421071,"avatar_url":"https://avatars.githubusercontent.com/u/4421071?v=3","gravatar_id":"","url":"https://api.github.com/users/IrwanBello","html_url":"https://github.com/IrwanBello","followers_url":"https://api.github.com/users/IrwanBello/followers","following_url":"https://api.github.com/users/IrwanBello/following{/other_user}","gists_url":"https://api.github.com/users/IrwanBello/gists{/gist_id}","starred_url":"https://api.github.com/users/IrwanBello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IrwanBello/subscriptions","organizations_url":"https://api.github.com/users/IrwanBello/orgs","repos_url":"https://api.github.com/users/IrwanBello/repos","events_url":"https://api.github.com/users/IrwanBello/events{/privacy}","received_events_url":"https://api.github.com/users/IrwanBello/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-06T23:46:07Z","updated_at":"2015-10-08T18:04:49Z","closed_at":"2015-10-08T18:04:49Z","body":"Hi folks,\r\n\r\nI'm having trouble installing cutorch  on CentOS 6.5 with CUDA 6.5 installed.\r\nI installed torch locally with https://github.com/torch/luajit-rocks\r\n\r\nHere's what I get..\r\n\r\n```\r\n.../hlc2$ torch/bin/luarocks install cutorch                                  \r\n\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 'buil\r\nd' mode\r\nInitialized empty Git repository in /tmp/luarocks_cutorch-scm-1-8161/cutorch/.git/\r\nremote: Counting objects: 221, done.\r\nremote: Compressing objects: 100% (160/160), done.\r\nremote: Total 221 (delta 114), reused 112 (delta 52), pack-reused 0\r\nReceiving objects: 100% (221/221), 166.10 KiB, done.\r\nResolving deltas: 100% (114/114), done.\r\ncmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=\"/\r\ndeep/u/ibello/hlc2/torch/bin/..\" -DCMAKE_INSTALL_PREFIX=\"/deep/u/ibello/hlc2/torch/lib/luarocks/rocks/c\r\nutorch/scm-1\" && make -j$(getconf _NPROCESSORS_ONLN) install\r\n\r\n-- The C compiler identification is GNU 4.4.7\r\n-- The CXX compiler identification is GNU 4.4.7\r\n-- Check for working C compiler: /usr/lib64/ccache/cc\r\n-- Check for working C compiler: /usr/lib64/ccache/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: /usr/lib64/ccache/c++\r\n-- Check for working CXX compiler: /usr/lib64/ccache/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 /deep/u/ibello/hlc2/torch\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 - not found\r\n-- Looking for pthread_create in pthreads\r\n-- Looking for pthread_create in pthreads - not found\r\n-- Looking for pthread_create in pthread\r\n-- Looking for pthread_create in pthread - found\r\n-- Found Threads: TRUE  \r\n-- Found CUDA: /usr/local/cuda (found suitable version \"6.5\", 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-8161/cutorch/build\r\n[  2%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o\r\n[  4%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorSort.cu.o\r\n[  6%] Generating TensorMath.c\r\n[  8%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o\r\n[ 10%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o\r\n[ 13%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o\r\n[ 15%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensor.cu.o\r\n[ 17%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorageCopy.cu.o\r\n/usr/bin/ccache: invalid option -- 'E'\r\nUsage:\r\n    ccache [options]\r\n    ccache compiler [compiler options]\r\n    compiler [compiler options]          (via symbolic link)\r\n\r\nOptions:\r\n    -c, --cleanup         delete old files and recalculate size counters\r\n                          (normally not needed as this is done automatically)\r\n    -C, --clear           clear the cache completely\r\n    -F, --max-files=N     set maximum number of files in cache to N (use 0 for\r\n                          no limit)\r\n    -M, --max-size=SIZE   set maximum size of cache to SIZE (use 0 for no\r\n                          limit; available suffixes: G, M and K; default\r\n                          suffix: G)\r\n    -s, --show-stats      show statistics summary\r\n    -z, --zero-stats      zero statistics counters\r\n\r\n    -h, --help            print this help text\r\n    -V, --version         print version and copyright information\r\n\r\nSee also <http://ccache.samba.org>.\r\n/usr/bin/ccache: invalid option -- 'E'\r\nUsage:\r\n    ccache [options]\r\n    ccache compiler [compiler options]\r\n    compiler [compiler options]          (via symbolic link)\r\n\r\nOptions:                                                                                                                                                                                             [137/1882]\r\n    -c, --cleanup         delete old files and recalculate size counters\r\n                          (normally not needed as this is done automatically)\r\n    -C, --clear           clear the cache completely\r\n    -F, --max-files=N     set maximum number of files in cache to N (use 0 for\r\n                          no limit)\r\n    -M, --max-size=SIZE   set maximum size of cache to SIZE (use 0 for no\r\n                          limit; available suffixes: G, M and K; default\r\n                          suffix: G)\r\n    -s, --show-stats      show statistics summary\r\n    -z, --zero-stats      zero statistics counters\r\n\r\n    -h, --help            print this help text\r\n    -V, --version         print version and copyright information\r\n\r\nSee also <http://ccache.samba.org>.\r\nCMake Error at THC_generated_THCBlas.cu.o.cmake:207 (message):\r\n  Error generating\r\n  /tmp/luarocks_cutorch-scm-1-8161/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCBlas.cu\r\n.o\r\n\r\n\r\nCMake Error at THC_generated_THCTensorCopy.cu.o.cmake:207 (message):\r\n  Error generating\r\n  /tmp/luarocks_cutorch-scm-1-8161/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorC\r\nopy.cu.o\r\n\r\n\r\nmake[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\nmake[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o] Error 1\r\nScanning dependencies of target cutorch_static\r\n/usr/bin/ccache: invalid option -- 'E'\r\n\r\n\r\nSee also <http://ccache.samba.org>.\r\nCMake Error at THC_generated_THCStorage.cu.o.cmake:207 (message):\r\n  Error generating\r\n  /tmp/luarocks_cutorch-scm-1-8161/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorage\r\n.cu.o\r\n\r\n\r\nCMake Error at THC_generated_THCReduceApplyUtils.cu.o.cmake:207 (message):\r\n  Error generating\r\n  /tmp/luarocks_cutorch-scm-1-8161/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCReduceA\r\npplyUtils.cu.o\r\n\r\n...\r\n\r\n\r\nmake[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorageCopy.cu.o] Error 1\r\nmake[1]: *** [lib/THC/CMakeFiles/THC.dir/all] Error 2\r\nmake[1]: *** Waiting for unfinished jobs....\r\n[ 19%] Building C object CMakeFiles/cutorch_static.dir/Tensor.c.o\r\n[ 21%] Building C object CMakeFiles/cutorch_static.dir/Storage.c.o\r\n[ 26%] Building C object CMakeFiles/cutorch_static.dir/init.c.o\r\n[ 26%] Building C object CMakeFiles/cutorch_static.dir/torch/utils.c.o\r\n[ 28%] Building C object CMakeFiles/cutorch_static.dir/TensorOperator.c.o\r\n[ 30%] Building C object CMakeFiles/cutorch_static.dir/TensorMath.c.o\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\nLooks like cmake and ccache don't interact well. I've tried looking at the Makefile to identify the issue but I'm no expert.\r\n\r\nAny ideas?\r\n\r\nThx!"}}