如何修复“不支持的GNU版本!gcc版本晚于6 ...”

时间:2018-07-23 04:20:27

标签: gcc cuda gnu xgboost

很抱歉这个问题。我已经看到有人问过几次了。实际上,我认为我在How to build CUDA 8 samples with gcc 5?

找到了答案

但是我想确保,如果我实现上述解决方案(将在下面进行描述),则不会改变其他事物的工作方式。老实说,除了谷歌搜索之外,我还不确定GNU到底是什么。

但是,为了提供一些背景知识,我一直试图在以下站点上安装对xgboost的gpu支持:https://xgboost.readthedocs.io/en/latest/build.html

说明很简单,下面将对其进行详细介绍

if (status.equals("update"))
jButton1.setIcon(new ImageIcon("update.png"));

当我到达

git clone --recursive https://github.com/dmlc/xgboost
cd xgboost; make -j4
mkdir build
cd build
cmake .. -DUSE_CUDA=ON
make -j

我知道

make -j

现在我在How to build CUDA 8 samples with gcc 5?找到的解决方案

提到我应该做

mikedoho@RadMD:~/xgboost/build$ make -j
[  4%] Building NVCC (Device) object CMakeFiles/gpuxgboost.dir/src/objective/gpuxgboost_generated_regression_obj_gpu.cu.o
[  4%] Building NVCC (Device) object CMakeFiles/gpuxgboost.dir/src/common/gpuxgboost_generated_host_device_vector.cu.o
[  4%] Building NVCC (Device) object CMakeFiles/gpuxgboost.dir/src/linear/gpuxgboost_generated_updater_gpu_coordinate.cu.o
[  7%] Building NVCC (Device) object CMakeFiles/gpuxgboost.dir/src/tree/gpuxgboost_generated_updater_gpu_hist.cu.o
[  9%] Building NVCC (Device) object CMakeFiles/gpuxgboost.dir/src/predictor/gpuxgboost_generated_gpu_predictor.cu.o
[  9%] Building NVCC (Device) object CMakeFiles/gpuxgboost.dir/src/tree/gpuxgboost_generated_updater_gpu.cu.o
[ 16%] Built target rabit
[ 33%] Built target dmlc
[ 93%] Built target objxgboost
In file included from /usr/include/host_config.h:50:0,
                 from /usr/include/cuda_runtime.h:78,
                 from <command-line>:0:
/usr/include/crt/host_config.h:121:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported!
 #error -- unsupported GNU version! gcc versions later than 6 are not supported!
  ^~~~~
In file included from /usr/include/host_config.h:50:0,
                 from /usr/include/cuda_runtime.h:78,
                 from <command-line>:0:
/usr/include/crt/host_config.h:121:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported!
 #error -- unsupported GNU version! gcc versions later than 6 are not supported!
  ^~~~~
In file included from /usr/include/host_config.h:50:0,
                 from /usr/include/cuda_runtime.h:78,
                 from <command-line>:0:
/usr/include/crt/host_config.h:121:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported!
 #error -- unsupported GNU version! gcc versions later than 6 are not supported!
  ^~~~~
In file included from /usr/include/host_config.h:50:0,
                 from /usr/include/cuda_runtime.h:78,
                 from <command-line>:0:
/usr/include/crt/host_config.h:121:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported!
 #error -- unsupported GNU version! gcc versions later than 6 are not supported!
  ^~~~~
In file included from /usr/include/host_config.h:50:0,
                 from /usr/include/cuda_runtime.h:78,
                 from <command-line>:0:
/usr/include/crt/host_config.h:121:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported!
 #error -- unsupported GNU version! gcc versions later than 6 are not supported!
  ^~~~~
In file included from /usr/include/host_config.h:50:0,
                 from /usr/include/cuda_runtime.h:78,
                 from <command-line>:0:
/usr/include/crt/host_config.h:121:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported!
 #error -- unsupported GNU version! gcc versions later than 6 are not supported!
  ^~~~~
CMake Error at gpuxgboost_generated_host_device_vector.cu.o.Release.cmake:219 (message):
  Error generating
  /home/mikedoho/xgboost/build/CMakeFiles/gpuxgboost.dir/src/common/./gpuxgboost_generated_host_device_vector.cu.o


CMakeFiles/gpuxgboost.dir/build.make:63: recipe for target 'CMakeFiles/gpuxgboost.dir/src/common/gpuxgboost_generated_host_device_vector.cu.o' failed
make[2]: *** [CMakeFiles/gpuxgboost.dir/src/common/gpuxgboost_generated_host_device_vector.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMake Error at gpuxgboost_generated_updater_gpu.cu.o.Release.cmake:219 (message):
  Error generating
  /home/mikedoho/xgboost/build/CMakeFiles/gpuxgboost.dir/src/tree/./gpuxgboost_generated_updater_gpu.cu.o


CMakeFiles/gpuxgboost.dir/build.make:91: recipe for target 'CMakeFiles/gpuxgboost.dir/src/tree/gpuxgboost_generated_updater_gpu.cu.o' failed
make[2]: *** [CMakeFiles/gpuxgboost.dir/src/tree/gpuxgboost_generated_updater_gpu.cu.o] Error 1
CMake Error at gpuxgboost_generated_gpu_predictor.cu.o.Release.cmake:219 (message):
  Error generating
  /home/mikedoho/xgboost/build/CMakeFiles/gpuxgboost.dir/src/predictor/./gpuxgboost_generated_gpu_predictor.cu.o


CMakeFiles/gpuxgboost.dir/build.make:84: recipe for target 'CMakeFiles/gpuxgboost.dir/src/predictor/gpuxgboost_generated_gpu_predictor.cu.o' failed
make[2]: *** [CMakeFiles/gpuxgboost.dir/src/predictor/gpuxgboost_generated_gpu_predictor.cu.o] Error 1
CMake Error at gpuxgboost_generated_updater_gpu_coordinate.cu.o.Release.cmake:219 (message):
  Error generating
  /home/mikedoho/xgboost/build/CMakeFiles/gpuxgboost.dir/src/linear/./gpuxgboost_generated_updater_gpu_coordinate.cu.o


CMakeFiles/gpuxgboost.dir/build.make:70: recipe for target 'CMakeFiles/gpuxgboost.dir/src/linear/gpuxgboost_generated_updater_gpu_coordinate.cu.o' failed
make[2]: *** [CMakeFiles/gpuxgboost.dir/src/linear/gpuxgboost_generated_updater_gpu_coordinate.cu.o] Error 1
CMake Error at gpuxgboost_generated_updater_gpu_hist.cu.o.Release.cmake:219 (message):
  Error generating
  /home/mikedoho/xgboost/build/CMakeFiles/gpuxgboost.dir/src/tree/./gpuxgboost_generated_updater_gpu_hist.cu.o


CMake Error at gpuxgboost_generated_regression_obj_gpu.cu.o.Release.cmake:219 (message):
  Error generating
  /home/mikedoho/xgboost/build/CMakeFiles/gpuxgboost.dir/src/objective/./gpuxgboost_generated_regression_obj_gpu.cu.o


CMakeFiles/gpuxgboost.dir/build.make:98: recipe for target 'CMakeFiles/gpuxgboost.dir/src/tree/gpuxgboost_generated_updater_gpu_hist.cu.o' failed
make[2]: *** [CMakeFiles/gpuxgboost.dir/src/tree/gpuxgboost_generated_updater_gpu_hist.cu.o] Error 1
CMakeFiles/gpuxgboost.dir/build.make:77: recipe for target 'CMakeFiles/gpuxgboost.dir/src/objective/gpuxgboost_generated_regression_obj_gpu.cu.o' failed
make[2]: *** [CMakeFiles/gpuxgboost.dir/src/objective/gpuxgboost_generated_regression_obj_gpu.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/gpuxgboost.dir/all' failed
make[1]: *** [CMakeFiles/gpuxgboost.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

现在我想我必须将gcc-5和g ++-5更改为6,将cuda-8.0更改为cuda-9.1,以使其对我有用,但我想确保这不会影响其他事情,例如tensorflow(我有CUDA的最初原因)。我很抱歉,甚至可能不会影响到这一点,但我想确保。

0 个答案:

没有答案