the reason:
Because the gcc version that comes with centos is too low, the error is caused. (Specifically caused by a bug in version 4.8)
solve:
Just update to a higher gcc version , the code is as follows:
sudo yum install centos-release-scl
sudo yum install devtoolset-9-gcc*
scl enable devtoolset-9 bash
View version:
gcc -v
Note:
This article refers to a blogger's article, and those who are interested can take a look:
CentOS7 upgrade gcc version to gcc9