I just tried to compile llamacpp on Fedora 42 and I’m running into errors.
Is there a way to re-install GCC-13?
from <command-line>:
/usr/local/cuda-12.8/bin/../targets/x86_64-linux/include/crt/host_config.h:143:2:
error: #error – unsupported GNU version! gcc versions later than 14 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 14 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.
| ^~~~~
Basically you need to install the gcc14 package and then do the steps that this package does (slaanesh/cuda-gcc Copr) just with g++14 instead of g++13. Any CUDA toolkit that installs on F42 will work with gcc14.