{"action":"opened","issue":{"url":"https://api.github.com/repos/torch/cutorch/issues/540","repository_url":"https://api.github.com/repos/torch/cutorch","labels_url":"https://api.github.com/repos/torch/cutorch/issues/540/labels{/name}","comments_url":"https://api.github.com/repos/torch/cutorch/issues/540/comments","events_url":"https://api.github.com/repos/torch/cutorch/issues/540/events","html_url":"https://github.com/torch/cutorch/issues/540","id":182438240,"number":540,"title":"luarocks install cutorch: cc1: some warnings being treated as errors","user":{"login":"AlecWong","id":13307310,"avatar_url":"https://avatars.githubusercontent.com/u/13307310?v=3","gravatar_id":"","url":"https://api.github.com/users/AlecWong","html_url":"https://github.com/AlecWong","followers_url":"https://api.github.com/users/AlecWong/followers","following_url":"https://api.github.com/users/AlecWong/following{/other_user}","gists_url":"https://api.github.com/users/AlecWong/gists{/gist_id}","starred_url":"https://api.github.com/users/AlecWong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlecWong/subscriptions","organizations_url":"https://api.github.com/users/AlecWong/orgs","repos_url":"https://api.github.com/users/AlecWong/repos","events_url":"https://api.github.com/users/AlecWong/events{/privacy}","received_events_url":"https://api.github.com/users/AlecWong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-12T05:25:47Z","updated_at":"2016-10-12T05:25:47Z","closed_at":null,"body":"```\r\ncmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=\"/home/uname/torch/install/bin/..\" -DCMAKE_INSTALL_PREFIX=\"/home/uname/torch/install/lib/luarocks/rocks/cutorch/scm-1\" && make -j$(getconf _NPROCESSORS_ONLN) install\r\n\r\n-- The C compiler identification is GNU 4.9.2\r\n-- The CXX compiler identification is GNU 4.9.2\r\n-- Check for working C compiler: /usr/bin/cc\r\n-- Check for working C compiler: /usr/bin/cc -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Check for working CXX compiler: /usr/bin/c++\r\n-- Check for working CXX compiler: /usr/bin/c++ -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Found Torch7 in /home/uname/torch/install\r\n-- Found CUDA: /usr/local/cuda-8.0 (found suitable version \"8.0\", minimum required is \"6.5\") \r\n-- MAGMA not found. Compiling without MAGMA support\r\n-- Autodetected CUDA architecture(s): 6.1 6.1\r\n-- got cuda version 8.0\r\n-- Found CUDA with FP16 support, compiling with torch.CudaHalfTensor\r\n-- CUDA_NVCC_FLAGS: -gencode;arch=compute_61,code=sm_61;-DCUDA_HAS_FP16=1\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: /tmp/luarocks_cutorch-scm-1-3950/cutorch/build\r\n[  2%] [  2%] [  3%] [  4%] [  5%] [  7%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCHalf.cu.o\r\nBuilding NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCReduceApplyUtils.cu.o\r\nBuilding NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensor.cu.o\r\nBuilding NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorCopy.cu.o\r\n[  9%] [  9%] [ 10%] [ 11%] [ 13%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorageCopy.cu.o\r\n[ 14%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMathBlas.cu.o\r\nBuilding NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMathPairwise.cu.o\r\nBuilding NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorage.cu.o\r\nBuilding NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCBlas.cu.o\r\nBuilding NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMath.cu.o\r\nBuilding NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMath2.cu.o\r\nBuilding NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMathMagma.cu.o\r\n[ 15%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMathReduce.cu.o\r\n[ 16%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMathScan.cu.o\r\n[ 17%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorIndex.cu.o\r\n[ 19%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorConv.cu.o\r\n[ 20%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorRandom.cu.o\r\n[ 21%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorScatterGather.cu.o\r\n[ 22%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorTopK.cu.o\r\n[ 23%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorSort.cu.o\r\n[ 25%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorTypeUtils.cu.o\r\n[ 26%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorSortByte.cu.o\r\n[ 27%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareTByte.cu.o\r\n[ 28%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathPointwiseByte.cu.o\r\n[ 29%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareByte.cu.o\r\n[ 30%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathReduceByte.cu.o\r\n[ 32%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMaskedByte.cu.o\r\n[ 33%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorSortChar.cu.o\r\n[ 34%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareTChar.cu.o\r\n[ 35%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathPointwiseChar.cu.o\r\n[ 36%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareChar.cu.o\r\n[ 38%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathReduceChar.cu.o\r\n[ 39%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMaskedChar.cu.o\r\n[ 40%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorSortShort.cu.o\r\n[ 41%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareTShort.cu.o\r\n[ 42%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathPointwiseShort.cu.o\r\n[ 44%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareShort.cu.o\r\n[ 45%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathReduceShort.cu.o\r\n[ 46%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMaskedShort.cu.o\r\n[ 47%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorSortInt.cu.o\r\n[ 48%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareTInt.cu.o\r\n[ 50%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathPointwiseInt.cu.o\r\n[ 51%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareInt.cu.o\r\n[ 52%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathReduceInt.cu.o\r\n[ 53%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMaskedInt.cu.o\r\n[ 54%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorSortLong.cu.o\r\n[ 55%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareTLong.cu.o\r\n[ 57%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathPointwiseLong.cu.o\r\n[ 58%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareLong.cu.o\r\n[ 59%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathReduceLong.cu.o\r\n[ 60%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMaskedLong.cu.o\r\n[ 61%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorSortHalf.cu.o\r\n[ 63%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareTHalf.cu.o\r\n[ 64%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathPointwiseHalf.cu.o\r\n[ 65%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareHalf.cu.o\r\n[ 66%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathReduceHalf.cu.o\r\n[ 67%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMaskedHalf.cu.o\r\n[ 69%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorSortFloat.cu.o\r\n[ 70%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareTFloat.cu.o\r\n[ 71%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathPointwiseFloat.cu.o\r\n[ 72%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareFloat.cu.o\r\n[ 73%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathReduceFloat.cu.o\r\n[ 75%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMaskedFloat.cu.o\r\n[ 76%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorSortDouble.cu.o\r\n[ 77%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareTDouble.cu.o\r\n[ 78%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathPointwiseDouble.cu.o\r\n[ 79%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareDouble.cu.o\r\n[ 80%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathReduceDouble.cu.o\r\n[ 82%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMaskedDouble.cu.o\r\nScanning dependencies of target THC\r\n[ 84%] [ 84%] [ 85%] [ 86%] [ 88%] [ 89%] Building C object lib/THC/CMakeFiles/THC.dir/THCGeneral.c.o\r\n[ 90%] Building C object lib/THC/CMakeFiles/THC.dir/THCStorageCopy.c.o\r\n[ 91%] Building C object lib/THC/CMakeFiles/THC.dir/THCTensor.c.o\r\nBuilding CXX object lib/THC/CMakeFiles/THC.dir/THCCachingAllocator.cpp.o\r\nBuilding C object lib/THC/CMakeFiles/THC.dir/THCTensorCopy.c.o\r\nBuilding C object lib/THC/CMakeFiles/THC.dir/THCStorage.c.o\r\nBuilding C object lib/THC/CMakeFiles/THC.dir/THCThreadLocal.c.o\r\nBuilding C object lib/THC/CMakeFiles/THC.dir/THCAllocator.c.o\r\n/tmp/luarocks_cutorch-scm-1-3950/cutorch/lib/THC/THCGeneral.c: In function ‘applyHeapDelta’:\r\n/tmp/luarocks_cutorch-scm-1-3950/cutorch/lib/THC/THCGeneral.c:696:3: error: implicit declaration of function ‘THAtomicAddPtrdiff’ [-Werror=implicit-function-declaration]\r\n   ptrdiff_t newHeapSize = THAtomicAddPtrdiff(&heapSize, state->heapDelta) + state->heapDelta;\r\n   ^\r\ncc1: some warnings being treated as errors\r\nlib/THC/CMakeFiles/THC.dir/build.make:652: recipe for target 'lib/THC/CMakeFiles/THC.dir/THCGeneral.c.o' failed\r\nmake[2]: *** [lib/THC/CMakeFiles/THC.dir/THCGeneral.c.o] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\nCMakeFiles/Makefile2:156: recipe for target 'lib/THC/CMakeFiles/THC.dir/all' failed\r\nmake[1]: *** [lib/THC/CMakeFiles/THC.dir/all] Error 2\r\nMakefile:117: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n\r\nError: Build error: Failed building.\r\n```\r\n\r\nAbove is the error message. Previously, when I try to install cutorch or cunn with CUDA-7.0. It failed.\r\nSo I typed:  export CUDA_PATH=/usr/local/cuda-8.0  and export CUDA_BIN_PATH=/usr/local/cuda-8.0/bin. It still doesn't work.... "}}
{"actor":{"display_login":"AlecWong"}}