But if I try to swtich render view, blender refuses and gives me this error on terminal
**> /usr/local/cuda/bin/…/targets/x86_64-linux/include/crt/host_config.h:139:2: virhe: #error – unsupported GNU version! gcc versions later than 10 are not supported! The nvcc flag ‘-allow-unsupported-compiler’ can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
**> 139 | #error – unsupported GNU version! gcc versions later than 10 are not supported! The nvcc flag ‘-allow-unsupported-compiler’ can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
**> | ^~~~~
**> Failed to execute compilation command, see console for details.
**>
**> Refer to the Cycles GPU rendering documentation for possible solutions:
**> GPU Rendering — Blender Manual
I don’t really understand what any of this stuff means. Is there any simple fix for this?
Flatpak version works fine, but if I’m on a distro that has lates blender version in it’s repos I would like to use that first.
Hi, the error message looks like that the GNU Compiler Collection (gcc) versions above 10 are not supported. gcc 10 was used in Fedora 32 and 33. Now Fedora 34 uses version 11. http://gcc.gnu.org/
Searching the web it looks like it is possible to install another gcc version alongside.
#fedora 39 fix for cuda not compileing on blender.
Note I’m using the kde spin of Fedora 39
I’m sure you have already solved it but Also got the same issue on blender with fedora 39 my gcc version is gcc version 13.2.1 20231205 (Red Hat 13.2.1-6) (GCC)
Error I got from blender console was,
#error -- unsupported GNU version! gcc versions later than 12 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
the console command from blender is what I modified and run independently to solve the error,
$ blender
Read prefs: "/home/lorde/.config/blender/4.0/config/userpref.blend"
Read blend: "/home/lorde/Downloads/Blender/BMW_Scene.blend"
CUDA version 12.3 detected, build may succeed but only CUDA 10.1 to 11.4 are officially supported.
Compiling CUDA kernel ...
"/usr/local/cuda/bin/nvcc" -arch=sm_61 --cubin "/usr/share/blender/4.0/scripts/addons/cycles/source/kernel/device/cuda/kernel.cu" -o "/home/lorde/.cache/cycles/kernels/cycles_kernel_sm_61_974B5A61E918B827569DA75294437B0C.cubin" -m64 --ptxas-options="-v" --use_fast_math -DNVCC -I"/usr/share/blender/4.0/scripts/addons/cycles/source" -DWITH_NANOVDB
In file included from /usr/local/cuda/bin/../targets/x86_64-linux/include/cuda_runtime.h:82,
from <command-line>:
/usr/local/cuda/bin/../targets/x86_64-linux/include/crt/host_config.h:143:2: error: #error -- unsupported GNU version! gcc versions later than 12 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
143 | #error -- unsupported GNU version! gcc versions later than 12 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
| ^~~~~
Failed to execute compilation command, see console for details.
Refer to the Cycles GPU rendering documentation for possible solutions:
https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html
Error: Failed to execute compilation command, see console for details.
my fix was taking the command blender runs for nvcc and compile it independently with the proposed changes the restarting it and on rendering I no longer get the cuda issue,
working fix for me
I used gcc13 which may break your system but still worth a shot,