Open jeremymarino opened 8 years ago
What version of gcc do you have? (gcc -v) 5.2.1 ? If so try to downgrade to 4.9/4.8 and try again.
Yes. 5.2.1 20151010. I'll try that. Thank you.
On Tue, Mar 29, 2016 at 6:55 AM, Jakub notifications@github.com wrote:
What version of gcc do you have? (gcc -v)
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/jcjohnson/neural-style/issues/194#issuecomment-202904800
Did that work?
CUDA installed fine, followed directions on nvidia site. Only issue is with cunn.
the output of
luarocks install cunn
:Installing https://raw.githubusercontent.com/torch/rocks/master/cunn-scm-1.rockspec... Using https://raw.githubusercontent.com/torch/rocks/master/cunn-scm-1.rockspec... switching to 'build' mode
Missing dependencies for cunn: cutorch >= 1.0
Using https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec... switching to 'build' mode Cloning into 'cutorch'... remote: Counting objects: 107, done. remote: Compressing objects: 100% (102/102), done. remote: Total 107 (delta 9), reused 40 (delta 3), pack-reused 0 Receiving objects: 100% (107/107), 161.61 KiB | 0 bytes/s, done. Resolving deltas: 100% (9/9), done. Checking connectivity... done. cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/usr/local/bin/.." -DCMAKE_INSTALL_PREFIX="/usr/local/lib/luarocks/rocks/cutorch/scm-1" && make -j$(getconf _NPROCESSORS_ONLN) install
-- The C compiler identification is GNU 5.2.1 -- The CXX compiler identification is GNU 5.2.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Torch7 in /usr/local -- Found CUDA: /usr/local/cuda (found suitable version "7.5", minimum required is "6.5") -- MAGMA not found. Compiling without MAGMA support -- Automatic GPU detection failed. Building for all known architectures. -- Compiling for CUDA architecture: 2.0 2.1(2.0) 3.0 3.5 5.0 5.2 -- Configuring done -- Generating done -- Build files have been written to: /tmp/luarocks_cutorch-scm-1-3274/cutorch/build [ 2%] [ 5%] [ 7%] [ 10%] [ 13%] [ 15%] 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_THCTensor.cu.o Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorage.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_THCStorageCopy.cu.o Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o In file included from /usr/local/cuda/include/cuda_runtime.h:76:0, from:0:
/usr/local/cuda/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
^ In file included from /usr/local/cuda/include/cuda_runtime.h:76:0, from:0:
/usr/local/cuda/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
^ In file included from /usr/local/cuda/include/cuda_runtime.h:76:0, from:0:
/usr/local/cuda/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
^ In file included from /usr/local/cuda/include/cuda_runtime.h:76:0, from:0:
/usr/local/cuda/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
^ In file included from /usr/local/cuda/include/cuda_runtime.h:76:0, from:0:
/usr/local/cuda/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
^ In file included from /usr/local/cuda/include/cuda_runtime.h:76:0, from:0:
/usr/local/cuda/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
^ CMake Error at THC_generated_THCTensor.cu.o.cmake:206 (message): Error generating /tmp/luarocks_cutorch-scm-1-3274/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensor.cu.o
lib/THC/CMakeFiles/THC.dir/build.make:87: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensor.cu.o' failed make[2]: * [lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensor.cu.o] Error 1 make[2]: * Waiting for unfinished jobs.... CMake Error at THC_generated_THCBlas.cu.o.cmake:206 (message): Error generating /tmp/luarocks_cutorch-scm-1-3274/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCBlas.cu.o
lib/THC/CMakeFiles/THC.dir/build.make:63: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o' failed make[2]: *\ [lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o] Error 1 CMake Error at THC_generated_THCStorageCopy.cu.o.cmake:206 (message): Error generating /tmp/luarocks_cutorch-scm-1-3274/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorageCopy.cu.o
lib/THC/CMakeFiles/THC.dir/build.make:79: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorageCopy.cu.o' failed 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-3274/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCReduceApplyUtils.cu.o
lib/THC/CMakeFiles/THC.dir/build.make:55: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o' failed make[2]: *\ [lib/THC/CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o] Error 1 CMake Error at THC_generated_THCHalf.cu.o.cmake:206 (message): Error generating /tmp/luarocks_cutorch-scm-1-3274/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCHalf.cu.o
lib/THC/CMakeFiles/THC.dir/build.make:247: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o' failed make[2]: *\ [lib/THC/CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o] Error 1 CMake Error at THC_generated_THCStorage.cu.o.cmake:206 (message): Error generating /tmp/luarocks_cutorch-scm-1-3274/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorage.cu.o
lib/THC/CMakeFiles/THC.dir/build.make:71: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o' failed make[2]: * [lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o] Error 1 CMakeFiles/Makefile2:156: recipe for target 'lib/THC/CMakeFiles/THC.dir/all' failed make[1]: * [lib/THC/CMakeFiles/THC.dir/all] Error 2 Makefile:116: recipe for target 'all' failed make: *\ [all] Error 2
Error: Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec - Build error: Failed building.
luarocks install cutorch
returns this:Installing https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec... Using https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec... switching to 'build' mode Cloning into 'cutorch'... remote: Counting objects: 107, done. remote: Compressing objects: 100% (102/102), done. remote: Total 107 (delta 9), reused 40 (delta 3), pack-reused 0 Receiving objects: 100% (107/107), 161.61 KiB | 0 bytes/s, done. Resolving deltas: 100% (9/9), done. Checking connectivity... done. cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/usr/local/bin/.." -DCMAKE_INSTALL_PREFIX="/usr/local/lib/luarocks/rocks/cutorch/scm-1" && make -j$(getconf _NPROCESSORS_ONLN) install
-- The C compiler identification is GNU 5.2.1 -- The CXX compiler identification is GNU 5.2.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Torch7 in /usr/local -- Found CUDA: /usr/local/cuda (found suitable version "7.5", minimum required is "6.5") -- MAGMA not found. Compiling without MAGMA support -- Automatic GPU detection failed. Building for all known architectures. -- Compiling for CUDA architecture: 2.0 2.1(2.0) 3.0 3.5 5.0 5.2 -- Configuring done -- Generating done -- Build files have been written to: /tmp/luarocks_cutorch-scm-1-7182/cutorch/build [ 2%] [ 5%] [ 7%] [ 10%] 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_THCHalf.cu.o [ 13%] [ 15%] 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_THCStorage.cu.o 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_THCBlas.cu.o In file included from /usr/local/cuda/include/cuda_runtime.h:76:0, from:0:
/usr/local/cuda/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
^ In file included from /usr/local/cuda/include/cuda_runtime.h:76:0, from:0:
/usr/local/cuda/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
^ In file included from /usr/local/cuda/include/cuda_runtime.h:76:0, from:0:
/usr/local/cuda/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
^ In file included from /usr/local/cuda/include/cuda_runtime.h:76:0, from:0:
/usr/local/cuda/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
^ In file included from /usr/local/cuda/include/cuda_runtime.h:76:0, from:0:
/usr/local/cuda/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
^ In file included from /usr/local/cuda/include/cuda_runtime.h:76:0, from:0:
/usr/local/cuda/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
error -- unsupported GNU version! gcc versions later than 4.9 are not supported!
^ CMake Error at THC_generated_THCBlas.cu.o.cmake:206 (message): Error generating /tmp/luarocks_cutorch-scm-1-7182/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCBlas.cu.o
lib/THC/CMakeFiles/THC.dir/build.make:63: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o' failed 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_THCReduceApplyUtils.cu.o.cmake:206 (message): Error generating /tmp/luarocks_cutorch-scm-1-7182/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCReduceApplyUtils.cu.o
lib/THC/CMakeFiles/THC.dir/build.make:55: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o' failed make[2]: *\ [lib/THC/CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o] Error 1 CMake Error at THC_generated_THCTensor.cu.o.cmake:206 (message): Error generating /tmp/luarocks_cutorch-scm-1-7182/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensor.cu.o
lib/THC/CMakeFiles/THC.dir/build.make:87: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensor.cu.o' failed make[2]: *\ [lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensor.cu.o] Error 1 CMake Error at THC_generated_THCStorageCopy.cu.o.cmake:206 (message): Error generating /tmp/luarocks_cutorch-scm-1-7182/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorageCopy.cu.o
lib/THC/CMakeFiles/THC.dir/build.make:79: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorageCopy.cu.o' failed make[2]: *\ [lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorageCopy.cu.o] Error 1 CMake Error at THC_generated_THCStorage.cu.o.cmake:206 (message): Error generating /tmp/luarocks_cutorch-scm-1-7182/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorage.cu.o
lib/THC/CMakeFiles/THC.dir/build.make:71: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o' failed make[2]: *\ [lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o] Error 1 CMake Error at THC_generated_THCHalf.cu.o.cmake:206 (message): Error generating /tmp/luarocks_cutorch-scm-1-7182/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCHalf.cu.o
lib/THC/CMakeFiles/THC.dir/build.make:247: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o' failed make[2]: * [lib/THC/CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o] Error 1 CMakeFiles/Makefile2:156: recipe for target 'lib/THC/CMakeFiles/THC.dir/all' failed make[1]: * [lib/THC/CMakeFiles/THC.dir/all] Error 2 Makefile:116: recipe for target 'all' failed make: *\ [all] Error 2
Error: Build error: Failed building.
Is it an issue with Torch itself? I installed it using
curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-all | bash
Thank you in advance.