Hi, i have both gcc 12 and gcc 13 installed (gcc 13 is default).
when i tried to emerge sci-libs/cholmod-3.0.14 with USE=cuda, it fails with:
"/opt/cuda/bin/../targets/x86_64-linux/include/crt/host_config.h:132: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."
Using /etc/portage/package.env and set cholmod to use gcc-12 (according to this: viewtopic-t-1159911-highlight-.html) - doesn't help, though the same works with other packages.
But after switching to gcc 12 with gcc-config - sci-libs/cholmod builds without any issue.
So what can be missing here for this to work?
# cat /etc/portage/env/gcc-12.conf
CC=/usr/bin/gcc-12
CXX=/usr/bin/g++-12

