当前位置:论坛首页 > Linux面板 > 求助

【已完成】IBM云主机上s390x框架安装php-7.3.32失败

发表在 Linux面板2022-3-31 18:39 [复制链接] 29 20436

发表于 2022-4-1 08:44:50 | 显示全部楼层
编译到最后就出错
使用道具 举报 回复 支持 反对
发表于 2022-4-1 08:47:48 | 显示全部楼层
/bin/sh /root/php-7.4.28/libtool --silent --preserve-dup-deps --mode=compile cc -DHAVE_CONFIG_H -I/root/php-7.4.28/ext/pcre/pcre2lib -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/pcre/ -I/root/php-7.4.28/ext/pcre/ -DPHP_ATOM_INC -I/root/php-7.4.28/include -I/root/php-7.4.28/main -I/root/php-7.4.28 -I/root/php-7.4.28/ext/date/lib -I/usr/include/libxml2 -I/usr/include/s390x-linux-gnu -I/root/php-7.4.28/ext/mbstring/libmbfl -I/root/php-7.4.28/ext/mbstring/libmbfl/mbfl -I/root/php-7.4.28/TSRM -I/root/php-7.4.28/Zend    -I/usr/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS   -c /root/php-7.4.28/ext/pcre/pcre2lib/pcre2_jit_compile.c -o ext/pcre/pcre2lib/pcre2_jit_compile.lo
/root/php-7.4.28/ext/pcre/pcre2lib/pcre2_jit_compile.c:82:2: error: #error Unsupported architecture
   82 | #error Unsupported architecture
      |  ^~~~~
/root/php-7.4.28/ext/pcre/pcre2lib/pcre2_jit_compile.c: In function ‘php_pcre2_jit_compile’:
/root/php-7.4.28/ext/pcre/pcre2lib/pcre2_jit_compile.c:14123:15: warning: implicit declaration of function ‘SLJIT_MALLOC_EXEC’; did you mean ‘SLJIT_MALLOC’? [-Wimplicit-function-declaration]
14123 |   void *ptr = SLJIT_MALLOC_EXEC(32);
      |               ^~~~~~~~~~~~~~~~~
      |               SLJIT_MALLOC
/root/php-7.4.28/ext/pcre/pcre2lib/pcre2_jit_compile.c:14123:15: warning: initialization of ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/root/php-7.4.28/ext/pcre/pcre2lib/pcre2_jit_compile.c:14129:5: warning: implicit declaration of function ‘SLJIT_FREE_EXEC’; did you mean ‘SLJIT_FREE’? [-Wimplicit-function-declaration]
14129 |     SLJIT_FREE_EXEC(((sljit_u8*)(ptr)) + SLJIT_EXEC_OFFSET(ptr));
      |     ^~~~~~~~~~~~~~~
      |     SLJIT_FREE
/root/php-7.4.28/ext/pcre/pcre2lib/pcre2_jit_compile.c:14129:42: warning: implicit declaration of function ‘SLJIT_EXEC_OFFSET’; did you mean ‘SLJIT_FUNC_OFFSET’? [-Wimplicit-function-declaration]
14129 |     SLJIT_FREE_EXEC(((sljit_u8*)(ptr)) + SLJIT_EXEC_OFFSET(ptr));
      |                                          ^~~~~~~~~~~~~~~~~
      |                                          SLJIT_FUNC_OFFSET
In file included from /root/php-7.4.28/ext/pcre/pcre2lib/pcre2_jit_compile.c:14175:
/root/php-7.4.28/ext/pcre/pcre2lib/pcre2_jit_misc.c: In function ‘php_pcre2_jit_free_unused_memory’:
/root/php-7.4.28/ext/pcre/pcre2lib/pcre2_jit_misc.c:113:1: warning: implicit declaration of function ‘sljit_free_unused_memory_exec’; did you mean ‘pcre2_jit_free_unused_memory_32’? [-Wimplicit-function-declaration]
  113 | sljit_free_unused_memory_exec();
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      | pcre2_jit_free_unused_memory_32
In file included from /root/php-7.4.28/ext/pcre/pcre2lib/sljit/sljitLir.c:27,
                 from /root/php-7.4.28/ext/pcre/pcre2lib/pcre2_jit_compile.c:79:
/root/php-7.4.28/ext/pcre/pcre2lib/pcre2_jit_compile.c: At top level:
/root/php-7.4.28/ext/pcre/pcre2lib/sljit/sljitLir.h:1516:36: warning: ‘sljit_get_float_register_index’ declared ‘static’ but never defined [-Wunused-function]
1516 | SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_get_float_register_index(sljit_s32 reg);
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:760: ext/pcre/pcre2lib/pcre2_jit_compile.lo] Error 1
使用道具 举报 回复 支持 反对
发表于 2022-4-1 09:34:31 | 显示全部楼层
使用道具 举报 回复 支持 反对
发表于 2022-4-1 09:36:27 | 显示全部楼层
使用道具 举报 回复 支持 反对
发表于 2022-4-1 09:37:03 | 显示全部楼层
本帖最后由 宝塔用户_roqdjb 于 2022-4-1 10:04 编辑

使用道具 举报 回复 支持 反对
发表于 2022-4-1 11:02:19 | 显示全部楼层
放弃吧,pcre2 不支持这个架构,或者你移除掉这个扩展。还有,这是 php 的问题,别老是在这边问,官方都替你急。明明不是宝塔的问题却还来宝塔问。
使用道具 举报 回复 支持 反对
发表于 2022-4-2 21:13:58 | 显示全部楼层
您好,建议您放弃。为了最好的兼容性,新服务器,建议参考此图选择操作系统版本 QQ截图20220225160013.png
使用道具 举报 回复 支持 反对
发表于 2022-8-20 20:22:03 | 显示全部楼层

我有源码,你可以把编译参数放出来吗
我有5.6 ,8.1 ,7.2,的源码
使用道具 举报 回复 支持 反对
发表于 2022-8-20 20:23:54 | 显示全部楼层
堡塔技术阿宏 发表于 2022-4-2 21:13
您好,建议您放弃。为了最好的兼容性,新服务器,建议参考此图选择操作系统版本
...

我有s390x的php源码,你可以把编译参数放出来吗
我有5.6 ,8.1 ,7.2,的源码
使用道具 举报 回复 支持 反对
发表于 2022-8-20 20:24:32 | 显示全部楼层
Xeath 发表于 2022-4-1 11:02
放弃吧,pcre2 不支持这个架构,或者你移除掉这个扩展。还有,这是 php 的问题,别老是在这边问,官方都替 ...

我有s390x的php源码,你可以把编译参数放出来吗
我有5.6 ,8.1 ,7.2,的源码
使用道具 举报 回复 支持 反对
发表于 2022-8-20 20:26:31 | 显示全部楼层
堡塔技术阿宏 发表于 2022-4-2 21:13
您好,建议您放弃。为了最好的兼容性,新服务器,建议参考此图选择操作系统版本
...

我有s390x的php源码,你可以把编译参数放出来吗
我有5.6 ,8.1 ,7.2,的源码
使用道具 举报 回复 支持 反对
发表于 2022-8-20 20:27:05 | 显示全部楼层
堡塔安全赤井秀一 发表于 2022-3-31 19:17
你好,建议更换x86_64架构,s390x暂时还不考虑兼容

我有s390x的php源码,你可以把编译参数放出来吗
我有5.6 ,8.1 ,7.2,的源码
使用道具 举报 回复 支持 反对
发表于 2022-8-20 20:27:59 | 显示全部楼层
堡塔安全赤井秀一 发表于 2022-3-31 20:13
编译到/www/server/php/74就可以使用,这个是脚本,你可以看看参数

我有s390x的php源码,你可以把编译参数放出来吗
我有5.6 ,8.1 ,7.2,的源码
使用道具 举报 回复 支持 反对
发表于 2022-8-23 19:14:45 | 显示全部楼层
宝塔用户_xawuqi 发表于 2022-8-20 20:27
我有s390x的php源码,你可以把编译参数放出来吗
我有5.6 ,8.1 ,7.2,的源码 ...

可以的,你把源码发我
使用道具 举报 回复 支持 反对
发表于 2022-8-23 19:15:19 | 显示全部楼层
宝塔用户_xawuqi 发表于 2022-8-20 20:27
我有s390x的php源码,你可以把编译参数放出来吗
我有5.6 ,8.1 ,7.2,的源码 ...

884244419@qq.com
使用道具 举报 回复 支持 反对
12
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表