博客列表 >Mac OS Ventura M1上执行`make`时,如果出现`call to undeclared function 'sys_icache_invalidate'`错误

Mac OS Ventura M1上执行`make`时,如果出现`call to undeclared function 'sys_icache_invalidate'`错误

PHP中文网用户-5864116
PHP中文网用户-5864116原创
2023年07月24日 03:44:321015浏览

我正在尝试维护一个使用PHP 5.4.45的旧应用程序。所以我从这里安装了相应PHP版本的源代码。我解压了tar.gz文件夹并执行了…

./configure —with-iconv=/opt/homebrew/opt/libiconv
make
在第一步中,成功地进行了配置。但是,在第二步中,出现了许多警告和错误。在这个错误处,make过程停止了:

/Users/ferguso/Downloads/php-5.4.45/ext/pcre/pcrelib/sljit/sljitNativeARM_64.c:312:2:

error: call to undeclared function ‘sys_icache_invalidate’; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]

    SLJIT_CACHE_FLUSH(code, code_ptr);

/Users/ferguso/Downloads/php-5.4.45/ext/pcre/pcrelib/sljit/sljitConfigInternal.h:301:2:

note: expanded from macro ‘SLJIT_CACHE_FLUSH’

    sys_icache_invalidate((char*)(from), (char*)(to) - (char*)(from))

如何处理这个错误并在我的MacOS Ventura M1 MacBook上安装PHP 5.4.45版本的源代码
weibo.com/ttarticle/p/show?id=2309404926866636013614
weibo.com/ttarticle/p/show?id=2309404926866652790788
weibo.com/ttarticle/p/show?id=2309404926866665635842
weibo.com/ttarticle/p/show?id=2309404926866690801689
weibo.com/ttarticle/p/show?id=2309404926866703384604
weibo.com/ttarticle/p/show?id=2309404926866715705346
weibo.com/ttarticle/p/show?id=2309404926866724093976
weibo.com/ttarticle/p/show?id=2309404926866736939080
weibo.com/ttarticle/p/show?id=2309404926866749521927
weibo.com/ttarticle/p/show?id=2309404926866757910622
weibo.com/ttarticle/p/show?id=2309404926866770493461
weibo.com/ttarticle/p/show?id=2309404926867470942228
weibo.com/ttarticle/p/show?id=2309404926867483525126
weibo.com/ttarticle/p/show?id=2309404926867508428822
weibo.com/ttarticle/p/show?id=2309404926867521273870
weibo.com/ttarticle/p/show?id=2309404926867529662511
weibo.com/ttarticle/p/show?id=2309404926867542245399
weibo.com/ttarticle/p/show?id=2309404926867554566152
weibo.com/ttarticle/p/show?id=2309404926867567149058
weibo.com/ttarticle/p/show?id=2309404926867575537678
weibo.com/ttarticle/p/show?id=2309404926867588382748

声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议