Installation fails due to undefined symbol: __builtin_add_overflow

Hi, I cannot find a way to fix the install issue.

*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘igraph’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/data3/wsx/R/x86_64-pc-linux-gnu-library/4.2/00LOCK-igraph/00new/igraph/libs/':
  /data3/wsx/R/x86_64-pc-linux-gnu-library/4.2/00LOCK-igraph/00new/igraph/libs/ undefined symbol: __builtin_add_overflow
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/data3/wsx/R/x86_64-pc-linux-gnu-library/4.2/igraph’
Warning in install.packages :
  installation of package ‘igraph’ had non-zero exit status

The downloaded source packages are in

I have fixed the issue with updated CC config in Makevars

CC=/opt/rh/devtoolset-9/root/usr/bin/gcc -fPIC

What compiler were you using when this failed?

And what is your operating system? What Linux distribution, and what specific version?