Cutorch and GCC problem

291 views
Skip to first unread message

Riddhiman Dasgupta

unread,
Apr 24, 2015, 3:57:18 PM4/24/15
to tor...@googlegroups.com
I keep getting this error when trying to install cutorch after having my own local Torch distro following the usual instructions. How should I proceed?

torch$ ./install/bin/luarocks install cutorch
Cloning into 'cutorch'...
remote: Counting objects: 122, done.
remote: Compressing objects: 100% (90/90), done.
remote: Total 122 (delta 51), reused 71 (delta 27), pack-reused 0
Receiving objects: 100% (122/122), 102.47 KiB, done.
Resolving deltas: 100% (51/51), done.
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/sanchit/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/sanchit/torch/install/lib/luarocks/rocks/cutorch/scm-1" && make -j$(getconf _NPROCESSORS_ONLN) install

-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/local/bin/cc
-- Check for working C compiler: /usr/local/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/g++
-- Check for working CXX compiler: /usr/local/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Torch7 in /home/sanchit/torch/install
-- Found CUDA: /usr/local/cuda-6.5 (found suitable version "6.5", minimum required is "5.5") 
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_cutorch-scm-1-2115/cutorch/build
[  3%] [  9%] [  9%] [ 12%] [ 15%] [ 18%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCReduceApplyUtils.cu.o
Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorSort.cu.o
Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCBlas.cu.o
Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorage.cu.o
[ 21%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorageCopy.cu.o
Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensor.cu.o
Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorCopy.cu.o
[ 24%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMath2.cu.o
In file included from /usr/local/cuda-6.5/include/cuda_runtime.h:59:0,
                 from <command-line>:0:
/usr/local/cuda-6.5/include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.9 and up are not supported!
 #error -- unsupported GNU version! gcc 4.9 and up are not supported!
  ^
In file included from /usr/local/cuda-6.5/include/cuda_runtime.h:59:0,
                 from <command-line>:0:
/usr/local/cuda-6.5/include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.9 and up are not supported!
 #error -- unsupported GNU version! gcc 4.9 and up are not supported!
  ^
In file included from /usr/local/cuda-6.5/include/cuda_runtime.h:59:0,
                 from <command-line>:0:
/usr/local/cuda-6.5/include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.9 and up are not supported!
 #error -- unsupported GNU version! gcc 4.9 and up are not supported!
  ^
In file included from /usr/local/cuda-6.5/include/cuda_runtime.h:59:0,
                 from <command-line>:0:
/usr/local/cuda-6.5/include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.9 and up are not supported!
 #error -- unsupported GNU version! gcc 4.9 and up are not supported!
  ^
In file included from /usr/local/cuda-6.5/include/cuda_runtime.h:59:0,
                 from <command-line>:0:
/usr/local/cuda-6.5/include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.9 and up are not supported!
 #error -- unsupported GNU version! gcc 4.9 and up are not supported!
  ^
In file included from /usr/local/cuda-6.5/include/cuda_runtime.h:59:0,
                 from <command-line>:0:
/usr/local/cuda-6.5/include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.9 and up are not supported!
 #error -- unsupported GNU version! gcc 4.9 and up are not supported!
  ^
In file included from /usr/local/cuda-6.5/include/cuda_runtime.h:59:0,
                 from <command-line>:0:
/usr/local/cuda-6.5/include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.9 and up are not supported!
 #error -- unsupported GNU version! gcc 4.9 and up are not supported!
  ^
In file included from /usr/local/cuda-6.5/include/cuda_runtime.h:59:0,
                 from <command-line>:0:
/usr/local/cuda-6.5/include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.9 and up are not supported!
 #error -- unsupported GNU version! gcc 4.9 and up are not supported!
  ^
CMake Error at THC_generated_THCBlas.cu.o.cmake:206 (message):
  Error generating
  /tmp/luarocks_cutorch-scm-1-2115/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCBlas.cu.o


make[2]: *** [lib/THC/CMakeFiles/THC.dir/./THC_generated_THCBlas.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMake Error at THC_generated_THCStorageCopy.cu.o.cmake:206 (message):
  Error generating
  /tmp/luarocks_cutorch-scm-1-2115/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorageCopy.cu.o


make[2]: *** [lib/THC/CMakeFiles/THC.dir/./THC_generated_THCStorageCopy.cu.o] Error 1
CMake Error at THC_generated_THCReduceApplyUtils.cu.o.cmake:206 (message):
  Error generating
  /tmp/luarocks_cutorch-scm-1-2115/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCReduceApplyUtils.cu.o


make[2]: *** [lib/THC/CMakeFiles/THC.dir/./THC_generated_THCReduceApplyUtils.cu.o] Error 1
CMake Error at THC_generated_THCStorage.cu.o.cmake:206 (message):
  Error generating
  /tmp/luarocks_cutorch-scm-1-2115/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorage.cu.o


make[2]: *** [lib/THC/CMakeFiles/THC.dir/./THC_generated_THCStorage.cu.o] Error 1
CMake Error at THC_generated_THCTensorCopy.cu.o.cmake:206 (message):
  Error generating
  /tmp/luarocks_cutorch-scm-1-2115/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorCopy.cu.o


make[2]: *** [lib/THC/CMakeFiles/THC.dir/./THC_generated_THCTensorCopy.cu.o] Error 1
CMake Error at THC_generated_THCTensor.cu.o.cmake:206 (message):
  Error generating
  /tmp/luarocks_cutorch-scm-1-2115/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensor.cu.o


make[2]: *** [lib/THC/CMakeFiles/THC.dir/./THC_generated_THCTensor.cu.o] Error 1
CMake Error at THC_generated_THCTensorMath2.cu.o.cmake:206 (message):
  Error generating
  /tmp/luarocks_cutorch-scm-1-2115/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMath2.cu.o


make[2]: *** [lib/THC/CMakeFiles/THC.dir/./THC_generated_THCTensorMath2.cu.o] Error 1
CMake Error at THC_generated_THCTensorSort.cu.o.cmake:206 (message):
  Error generating
  /tmp/luarocks_cutorch-scm-1-2115/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorSort.cu.o


make[2]: *** [lib/THC/CMakeFiles/THC.dir/./THC_generated_THCTensorSort.cu.o] Error 1
make[1]: *** [lib/THC/CMakeFiles/THC.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building.


soumith

unread,
Apr 24, 2015, 5:17:12 PM4/24/15
to torch7 on behalf of Riddhiman Dasgupta
Either upgrade your CUDA to 7.0 or downgrade your gcc temporarily to 4.8/4.7 (using CC and CXX env variables.)

--
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+un...@googlegroups.com.
To post to this group, send email to tor...@googlegroups.com.
Visit this group at http://groups.google.com/group/torch7.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages