MAC php7.4.13 使用pecl安装扩展报错

最近安装php7.4,安装成功以后用pecl安装扩展报错

In file included from /usr/local/Cellar/[email protected]/7.4.13_1/include/php/Zend/zend.h:356:
/usr/local/Cellar/[email protected]/7.4.13_1/include/php/Zend/zend_operators.h:523:10: error: 'asm goto' constructs are not supported yet
        __asm__ goto(
                ^
/usr/local/Cellar/[email protected]/7.4.13_1/include/php/Zend/zend_operators.h:586:10: error: 'asm goto' constructs are not supported yet
        __asm__ goto(
                ^
/usr/local/Cellar/[email protected]/7.4.13_1/include/php/Zend/zend_operators.h:656:10: error: 'asm goto' constructs are not supported yet
        __asm__ goto(
                ^
/usr/local/Cellar/[email protected]/7.4.13_1/include/php/Zend/zend_operators.h:766:10: error: 'asm goto' constructs are not supported yet
        __asm__ goto(
                ^
4 errors generated.
make: *** [src/php7/igbinary.lo] Error 1
ERROR: `make' failed12345678910111213141516

修改 /usr/local/Cellar/[email protected]/7.4.13_1/include/php/Zend/zend_operators.h 文件
ZEND_USE_ASM_ARITHMETIC = 0

#if defined(HAVE_ASM_GOTO) && !__has_feature(memory_sanitizer)
#  define ZEND_USE_ASM_ARITHMETIC 0
#else
#  define ZEND_USE_ASM_ARITHMETIC 0
#endif12345

不用管# 两个值都设为0

猜你喜欢

转载自blog.csdn.net/tt745/article/details/113942823