问题是关于版本的特定组合,但更普遍是相关的.
我刚从Kubuntu 12.04升级到14.04.现在,当我想编译CUDA代码(使用CUDA 6.5)时,我得到:
#error -- unsupported GNU version! gcc 4.9 and up are not supported!
Run Code Online (Sandbox Code Playgroud)
我安装了gcc-4.8(和4.7),并尝试使用/usr/local/cuda/bin
此处建议的符号链接解决方案:
但这不起作用.我该怎么办?
在Linux中我试图编译使用-fwritable-strings选项的东西.显然这是一个gcc选项,在较新版本的gcc中不起作用.我在我的系统上安装了gcc-3.4,但我认为新版本仍在使用,因为我仍然得到错误,说它无法识别命令行选项-fwritable-strings.如何才能使用旧版本的gcc?
我正在运行 Arch Linux 并尝试在 Qt 中构建一个项目,但是,Qt 出现以下错误:
/opt/cuda/include/crt/host_config.h:129: 错误:#error -- 不支持的 GNU 版本!不支持 7 之后的 gcc 版本!
我已经尝试过之前在这里找到的 Stack Overflow 帖子中的建议:
我没有使用确切的命令,因为我的 cuda 位于 /opt/cuda/bin/gcc。我对 g++ 执行了相同的命令。但是,终端输出这些文件已经链接。我确实通过转到实际文件并查看其属性来确认这一点。
有人可以建议解决我的问题吗?
在降级我的 GCC 之前,我想知道是否有一种方法可以确定我的机器中的哪些程序/框架或依赖项将被破坏,以及是否有更好的方法来安装 openpose?(例如更改 CMake 中的某些内容)
有没有办法可以解决这个问题,而无需更改我的系统 GCC 版本并可能破坏其他东西?
[10889:10881 0:2009] 09:21:36 Wed Jan 06 [mona@goku:pts/0 +1] ~/research/code/openpose/build
$ make -j`nproc`
[ 12%] Performing configure step for 'openpose_lib'
CMake Warning (dev) at cmake/Misc.cmake:32 (set):
implicitly converting 'BOOLEAN' to 'STRING' type.
Call Stack (most recent call first):
CMakeLists.txt:25 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)
-- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)
-- Found PROTOBUF Compiler: /usr/local/bin/protoc
-- HDF5: …
Run Code Online (Sandbox Code Playgroud) 我刚刚在新的GPU服务器上安装了Debian Stretch(9)和Cuda 8。Stretch不随旧版gcc一起提供,因此我需要使用clang作为主机编译器(nvcc不支持gcc-6)。我可以这样调用nvcc:
nvcc -ccbin clang-3.8
Run Code Online (Sandbox Code Playgroud)
有什么办法可以在整个系统范围内实现-例如在cuda config或环境变量中?
我遵循的步骤:
git clone https://github.com/BVLC/caffe.git
cd caffe
mkdir build
cd build
cmake ..
make all
Run Code Online (Sandbox Code Playgroud)
运行make all
失败,并显示以下错误消息:
[ 2%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile.dir/util/cuda_compile_generated_im2col.cu.o
In file included from /usr/include/cuda_runtime.h:59:0,
from <command-line>:0:
/usr/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 cuda_compile_generated_im2col.cu.o.cmake:207 (message):
Error generating /mydir/caffe/build/src/caffe/CMakeFiles/cuda_compile.dir/util/./cuda_compile_generated_im2col.cu.o
Run Code Online (Sandbox Code Playgroud)
软件版本:
Debian
.gcc …