最近安装php7.4,安装成功以后用pecl安装扩展报错
In file included from /usr/local/Cellar/php@7.4/7.4.13_1/include/php/Zend/zend.h:356:
/usr/local/Cellar/php@7.4/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/php@7.4/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/php@7.4/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/php@7.4/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' failed
修改 /usr/local/Cellar/php@7.4/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
#endif
不用管# 两个值都设为0 ———————————————— 版权声明:本文为CSDN博主「文森哈特」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/chxuehu/article/details/111624287
|