Problems with CUDA and blender

I installed all nvidia drivers with this autoinstaller (GitHub - t0xic0der/nvidia-auto-installer-for-fedora-linux: A CLI tool which lets you install proprietary NVIDIA drivers and much more easily on Fedora Linux (32 or above and Rawhide)) and it seemed like everyhting went right, since blender could actually see my card and cuda could be enabled from options. I noticed that options for Optix were missing though, but I don’t even know what optix really is so no big deal1addb24501e046031de3989c239df60ddc7d476a.png

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.
https://stackoverflow.com/questions/6622454/cuda-incompatible-with-my-gcc-version

There as well is an FAQ - " How to install multiple versions of GCC"
https://gcc.gnu.org/faq.html

Thanks for your input man. Sadly this stuff is clearly out of my league technically, so I guess I’ll go with the flatpak version since it just works

1 Like