Blender CUDA Unsupported gcc version

Bug #1573798 reported by Jaufré Aligé
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
blender (Ubuntu)
Opinion
Undecided
Unassigned
nvidia-cuda-toolkit (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Ubuntu 16.04
nvidia-364

When I select render with GPU, render is empty.

Here is the output :

CUDA version 7.5 detected, build may succeed but only CUDA 6.5 is officially supported.
Compiling CUDA kernel ...
"/usr/local/cuda/bin/nvcc" -arch=sm_35 -m64 --cubin "/usr/share/blender/scripts/addons/cycles/kernel/kernels/cuda/kernel.cu" -o "/home/psychojau/.config/blender/2.76/cache/cycles_kernel_sm35_A72CB6E937E171946202BA958DC68EB5.cubin" --ptxas-options="-v" --use_fast_math -I"/usr/share/blender/scripts/addons/cycles/kernel" -DNVCC -D__KERNEL_CUDA_VERSION__=75
In file included from /usr/local/cuda/bin/../targets/x86_64-linux/include/cuda_runtime.h:76:0,
                 from <command-line>:0:
/usr/local/cuda/bin/../targets/x86_64-linux/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!
  ^
CUDA kernel compilation failed, see console for details.

Refer to the Cycles GPU rendering documentation for possible solutions:
http://www.blender.org/manual/render/cycles/gpu_rendering.html

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: blender 2.76.b+dfsg0-3build1
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_modeset nvidia
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Apr 22 22:37:15 2016
InstallationDate: Installed on 2016-02-02 (80 days ago)
InstallationMedia: Ubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
SourcePackage: blender
UpgradeStatus: Upgraded to xenial on 2016-04-22 (0 days ago)

Revision history for this message
Jaufré Aligé (jaufre) wrote :
Revision history for this message
Jaufré Aligé (jaufre) wrote :

Ok sorry found : distribution upgrade problem.

Just purge every CUDA packages and install them again.

Revision history for this message
Nazo (lovesyao) wrote :
Changed in blender (Ubuntu):
status: New → Opinion
Revision history for this message
Graham Inggs (ginggs) wrote :

Note the path here:

/usr/local/cuda/bin/../targets/x86_64-linux/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later than 4.9 are not supported!

It looks like nvidia-cuda-toolkit was not installed from the Ubuntu repository, the version from the Ubuntu repository would have the following path:

/usr/include/host_config.h

Changed in nvidia-cuda-toolkit (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.