× 警告!旧版文档已经暂停维护,请查看新版文档。点击前往新版文档

'__builtin_saddl_overflow' was not declared in this scope

~~~ error: '__builtin_saddl_overflow' was not declared in this scope if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), 1, &lresult))) {

note: in definition of macro 'UNEXPECTED' # define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)


这是一个已知的问题 - 问题是CentOS上的默认gcc缺少必需的定义,即使在升级gcc之后,PECL也会找到旧的编译器。要安装驱动程序,必须首先通过安装devtoolset集合来升级gcc,如下所示: ~~~shell sudo yum install centos-release-scl sudo yum install devtoolset-7 scl enable devtoolset-7 bash