首页
下载
文档
问答社区
视频
捐赠
源代码
AI 助理
赞助商
CRMEB
Apipost
腾讯云
微擎
禅道
51Talk
商业产品
Swoole AI 智能文档翻译器
Swoole-Compiler PHP 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
安装错误 - make: *** [php_swoole_cxx.lo] Error 1
/bin/sh /usr/local/Cellar/swoole-4.4.16/libtool --mode=compile g++ -I. -I/usr/local/Cellar/swoole-4.4.16 -DPHP_ATOM_INC -I/usr/local/Cellar/swoole-4.4.16/include -I/usr/local/Cellar/swoole-4.4.16/main -I/usr/local/Cellar/swoole-4.4.16 -I/usr/local/Cellar/php@7.2/7.2.21/include/php -I/usr/local/Cellar/php@7.2/7.2.21/include/php/main -I/usr/local/Cellar/php@7.2/7.2.21/include/php/TSRM -I/usr/local/Cellar/php@7.2/7.2.21/include/php/Zend -I/usr/local/Cellar/php@7.2/7.2.21/include/php/ext -I/usr/local/Cellar/php@7.2/7.2.21/include/php/ext/date/lib -I/usr/local/Cellar/swoole-4.4.16 -I/usr/local/Cellar/swoole-4.4.16/include -I/usr/local/Cellar/swoole-4.4.16/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -c /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.cc -o php_swoole_cxx.lo mkdir .libs g++ -I. -I/usr/local/Cellar/swoole-4.4.16 -DPHP_ATOM_INC -I/usr/local/Cellar/swoole-4.4.16/include -I/usr/local/Cellar/swoole-4.4.16/main -I/usr/local/Cellar/swoole-4.4.16 -I/usr/local/Cellar/php@7.2/7.2.21/include/php -I/usr/local/Cellar/php@7.2/7.2.21/include/php/main -I/usr/local/Cellar/php@7.2/7.2.21/include/php/TSRM -I/usr/local/Cellar/php@7.2/7.2.21/include/php/Zend -I/usr/local/Cellar/php@7.2/7.2.21/include/php/ext -I/usr/local/Cellar/php@7.2/7.2.21/include/php/ext/date/lib -I/usr/local/Cellar/swoole-4.4.16 -I/usr/local/Cellar/swoole-4.4.16/include -I/usr/local/Cellar/swoole-4.4.16/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -c /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.cc -fno-common -DPIC -o .libs/php_swoole_cxx.o In file included from /usr/include/Availability.h:242:0, from /usr/include/stdlib.h:61, from /usr/local/Cellar/php@7.2/7.2.21/include/php/main/../main/php_config.h:2569, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_config.h:1, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_portability.h:45, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_types.h:27, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend.h:29, from /usr/local/Cellar/php@7.2/7.2.21/include/php/main/php.h:35, from /usr/local/Cellar/swoole-4.4.16/php_swoole.h:25, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.h:19, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.cc:1: /usr/include/AvailabilityInternal.h:33:18: error: missing binary operator before token "(" #if __has_include(<AvailabilityInternalPrivate.h>) ^ In file included from /usr/include/stdlib.h:61:0, from /usr/local/Cellar/php@7.2/7.2.21/include/php/main/../main/php_config.h:2569, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_config.h:1, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_portability.h:45, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_types.h:27, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend.h:29, from /usr/local/Cellar/php@7.2/7.2.21/include/php/main/php.h:35, from /usr/local/Cellar/swoole-4.4.16/php_swoole.h:25, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.h:19, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.cc:1: /usr/include/Availability.h:503:18: error: missing binary operator before token "(" #if __has_include(<AvailabilityProhibitedInternal.h>) ^ In file included from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_types.h:27:0, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend.h:29, from /usr/local/Cellar/php@7.2/7.2.21/include/php/main/php.h:35, from /usr/local/Cellar/swoole-4.4.16/php_swoole.h:25, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.h:19, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.cc:1: /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_operators.h: In function 'void fast_long_increment_function(zval*)': /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_operators.h:446:68: error: '__builtin_saddl_overflow' was not declared in this scope if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), 1, &lresult))) { ^ /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_portability.h:312:52: note: in definition of macro 'UNEXPECTED' # define UNEXPECTED(condition) __builtin_expect(!!(condition), 0) ^ /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_operators.h: In function 'void fast_long_decrement_function(zval*)': /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_operators.h:500:68: error: '__builtin_ssubl_overflow' was not declared in this scope if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), 1, &lresult))) { ^ /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_portability.h:312:52: note: in definition of macro 'UNEXPECTED' # define UNEXPECTED(condition) __builtin_expect(!!(condition), 0) ^ /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_operators.h: In function 'void fast_long_add_function(zval*, zval*, zval*)': /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_operators.h:554:80: error: '__builtin_saddl_overflow' was not declared in this scope if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) { ^ /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_portability.h:312:52: note: in definition of macro 'UNEXPECTED' # define UNEXPECTED(condition) __builtin_expect(!!(condition), 0) ^ /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_operators.h: In function 'void fast_long_sub_function(zval*, zval*, zval*)': /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_operators.h:657:80: error: '__builtin_ssubl_overflow' was not declared in this scope if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) { ^ /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_portability.h:312:52: note: in definition of macro 'UNEXPECTED' # define UNEXPECTED(condition) __builtin_expect(!!(condition), 0) ^ In file included from /usr/include/sys/sysctl.h:83:0, from /usr/local/Cellar/swoole-4.4.16/include/swoole.h:89, from /usr/local/Cellar/swoole-4.4.16/php_swoole.h:53, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.h:19, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.cc:1: /usr/include/sys/ucred.h: At global scope: /usr/include/sys/ucred.h:94:2: error: '_Atomic' does not name a type _Atomic u_long cr_ref; /* reference count */ ^ In file included from /usr/local/Cellar/swoole-4.4.16/php_swoole.h:53:0, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.h:19, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.cc:1: /usr/local/Cellar/swoole-4.4.16/include/swoole.h:94:15: warning: 'orwl_timebase' defined but not used [-Wunused-variable] static double orwl_timebase = 0.0; ^ /usr/local/Cellar/swoole-4.4.16/include/swoole.h:95:17: warning: 'orwl_timestart' defined but not used [-Wunused-variable] static uint64_t orwl_timestart = 0; ^ make: *** [php_swoole_cxx.lo] Error 1
发布于4年前 · 9 次浏览 · 来自
提问
hanfuny
/bin/sh /usr/local/Cellar/swoole-4.4.16/libtool --mode=compile g++ -I. -I/usr/local/Cellar/swoole-4.4.16 -DPHP_ATOM_INC -I/usr/local/Cellar/swoole-4.4.16/include -I/usr/local/Cellar/swoole-4.4.16/main -I/usr/local/Cellar/swoole-4.4.16 -I/usr/local/Cellar/php@7.2/7.2.21/include/php -I/usr/local/Cellar/php@7.2/7.2.21/include/php/main -I/usr/local/Cellar/php@7.2/7.2.21/include/php/TSRM -I/usr/local/Cellar/php@7.2/7.2.21/include/php/Zend -I/usr/local/Cellar/php@7.2/7.2.21/include/php/ext -I/usr/local/Cellar/php@7.2/7.2.21/include/php/ext/date/lib -I/usr/local/Cellar/swoole-4.4.16 -I/usr/local/Cellar/swoole-4.4.16/include -I/usr/local/Cellar/swoole-4.4.16/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -c /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.cc -o php_swoole_cxx.lo mkdir .libs g++ -I. -I/usr/local/Cellar/swoole-4.4.16 -DPHP_ATOM_INC -I/usr/local/Cellar/swoole-4.4.16/include -I/usr/local/Cellar/swoole-4.4.16/main -I/usr/local/Cellar/swoole-4.4.16 -I/usr/local/Cellar/php@7.2/7.2.21/include/php -I/usr/local/Cellar/php@7.2/7.2.21/include/php/main -I/usr/local/Cellar/php@7.2/7.2.21/include/php/TSRM -I/usr/local/Cellar/php@7.2/7.2.21/include/php/Zend -I/usr/local/Cellar/php@7.2/7.2.21/include/php/ext -I/usr/local/Cellar/php@7.2/7.2.21/include/php/ext/date/lib -I/usr/local/Cellar/swoole-4.4.16 -I/usr/local/Cellar/swoole-4.4.16/include -I/usr/local/Cellar/swoole-4.4.16/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -c /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.cc -fno-common -DPIC -o .libs/php_swoole_cxx.o In file included from /usr/include/Availability.h:242:0, from /usr/include/stdlib.h:61, from /usr/local/Cellar/php@7.2/7.2.21/include/php/main/../main/php_config.h:2569, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_config.h:1, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_portability.h:45, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_types.h:27, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend.h:29, from /usr/local/Cellar/php@7.2/7.2.21/include/php/main/php.h:35, from /usr/local/Cellar/swoole-4.4.16/php_swoole.h:25, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.h:19, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.cc:1: /usr/include/AvailabilityInternal.h:33:18: error: missing binary operator before token "(" #if __has_include(<AvailabilityInternalPrivate.h>) ^ In file included from /usr/include/stdlib.h:61:0, from /usr/local/Cellar/php@7.2/7.2.21/include/php/main/../main/php_config.h:2569, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_config.h:1, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_portability.h:45, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_types.h:27, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend.h:29, from /usr/local/Cellar/php@7.2/7.2.21/include/php/main/php.h:35, from /usr/local/Cellar/swoole-4.4.16/php_swoole.h:25, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.h:19, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.cc:1: /usr/include/Availability.h:503:18: error: missing binary operator before token "(" #if __has_include(<AvailabilityProhibitedInternal.h>) ^ In file included from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_types.h:27:0, from /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend.h:29, from /usr/local/Cellar/php@7.2/7.2.21/include/php/main/php.h:35, from /usr/local/Cellar/swoole-4.4.16/php_swoole.h:25, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.h:19, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.cc:1: /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_operators.h: In function 'void fast_long_increment_function(zval*)': /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_operators.h:446:68: error: '__builtin_saddl_overflow' was not declared in this scope if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), 1, &lresult))) { ^ /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_portability.h:312:52: note: in definition of macro 'UNEXPECTED' # define UNEXPECTED(condition) __builtin_expect(!!(condition), 0) ^ /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_operators.h: In function 'void fast_long_decrement_function(zval*)': /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_operators.h:500:68: error: '__builtin_ssubl_overflow' was not declared in this scope if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), 1, &lresult))) { ^ /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_portability.h:312:52: note: in definition of macro 'UNEXPECTED' # define UNEXPECTED(condition) __builtin_expect(!!(condition), 0) ^ /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_operators.h: In function 'void fast_long_add_function(zval*, zval*, zval*)': /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_operators.h:554:80: error: '__builtin_saddl_overflow' was not declared in this scope if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) { ^ /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_portability.h:312:52: note: in definition of macro 'UNEXPECTED' # define UNEXPECTED(condition) __builtin_expect(!!(condition), 0) ^ /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_operators.h: In function 'void fast_long_sub_function(zval*, zval*, zval*)': /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_operators.h:657:80: error: '__builtin_ssubl_overflow' was not declared in this scope if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) { ^ /usr/local/Cellar/php@7.2/7.2.21/include/php/Zend/zend_portability.h:312:52: note: in definition of macro 'UNEXPECTED' # define UNEXPECTED(condition) __builtin_expect(!!(condition), 0) ^ In file included from /usr/include/sys/sysctl.h:83:0, from /usr/local/Cellar/swoole-4.4.16/include/swoole.h:89, from /usr/local/Cellar/swoole-4.4.16/php_swoole.h:53, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.h:19, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.cc:1: /usr/include/sys/ucred.h: At global scope: /usr/include/sys/ucred.h:94:2: error: '_Atomic' does not name a type _Atomic u_long cr_ref; /* reference count */ ^ In file included from /usr/local/Cellar/swoole-4.4.16/php_swoole.h:53:0, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.h:19, from /usr/local/Cellar/swoole-4.4.16/php_swoole_cxx.cc:1: /usr/local/Cellar/swoole-4.4.16/include/swoole.h:94:15: warning: 'orwl_timebase' defined but not used [-Wunused-variable] static double orwl_timebase = 0.0; ^ /usr/local/Cellar/swoole-4.4.16/include/swoole.h:95:17: warning: 'orwl_timestart' defined but not used [-Wunused-variable] static uint64_t orwl_timestart = 0; ^ make: *** [php_swoole_cxx.lo] Error 1
赞
0
分享
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
评论
还没有评论!
微信公众号
热门内容
作者其它话题
- 安装错误 - make: *** [php_swoole_cxx.lo] Error 1
暂无回复的问答
- CodeGalaxy K3s 轻量集群节点之间如何实现负载均衡
- 关于openssl CURL WARNING swSSL_connect: SSL_connect(fd=69) failed. Error: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small[1|394]
- 多个模型如何进行事务异常回退?
- websocket开启wss报错
- 协程tcp服务器如何使用多进程?recv()方法接收信息,打印出来的pid一直是同一个。没用使用到多进程啊。