php: Upgrade to 8.1.0
PATCH 1/1 php: Upgrade to 8.1.0
From: Mingli Yu <[email protected]>
Rebase 2 patches to new version and enable openssl PACKAGECONFIG as OpenSSL 3.0 is now supported in the new version [1].
[1] https://github.com/php/php-src/commit/7b34db0659dda933b1146a0ff249f25acca1d669
---
...ext-opcache-config.m4-enable-opcache.patch | 50 +++++++++++--------
.../0011-use-qemuwrapper-for-minilua.patch | 33 +++++++++---
.../php/{php_8.0.12.bb => php_8.1.0.bb} | 4 +-
3 files changed, 57 insertions(+), 30 deletions(-)
rename meta-oe/recipes-devtools/php/{php_8.0.12.bb => php_8.1.0.bb} (98%)meta-oe/recipes-devtools/php/php/0001-ext-opcache-config.m4-enable-opcache.patch +30 -20
@@ -1,6 +1,6 @@ -From 8cabcf1043953a0fe48107204a2212609b8e6516 Mon Sep 17 00:00:00 2001 -From: Claude Bing <[email protected]> -Date: Tue, 9 Nov 2021 12:59:15 -0500 +From ca9b419f2c146061f73ee045cb0a069c18b40cd0 Mon Sep 17 00:00:00 2001 +From: Mingli Yu <[email protected]> +Date: Wed, 15 Dec 2021 14:00:08 +0800 Subject: [PATCH 01/11] ext/opcache/config.m4: enable opcache We can't use AC_TRY_RUN to run programs in a cross compile
@@ -17,15 +17,18 @@ Signed-off-by: Changqing Li <[email protected]> update patch to version 8.0.12 fix issue linking with librt Signed-off-by: Claude Bing <[email protected]> + +update patch to version 8.1.0 +Signed-off-by: Mingli Yu <[email protected]> --- - ext/opcache/config.m4 | 197 ++---------------------------------------- - 1 file changed, 8 insertions(+), 189 deletions(-) + ext/opcache/config.m4 | 204 ++---------------------------------------- + 1 file changed, 8 insertions(+), 196 deletions(-) diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 -index 5492fd920c..95158ccfd9 100644 +index 2a83fa2..9471b5d 100644 --- a/ext/opcache/config.m4 +++ b/ext/opcache/config.m4 -@@ -101,202 +101,21 @@ if test "$PHP_OPCACHE" != "no"; then +@@ -108,209 +108,21 @@ if test "$PHP_OPCACHE" != "no"; then AC_CHECK_FUNCS([mprotect]) AC_MSG_CHECKING(for sysvipc shared memory support)
@@ -93,9 +96,10 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_ipc=yes],[have_shm_ipc=no],[have_shm_ipc=no]) +- if test "$have_shm_ipc" = "yes"; then - AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) -- have_shm_ipc=yes],[have_shm_ipc=no],[have_shm_ipc=no]) +- fi + AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) + have_shm_ipc=yes AC_MSG_RESULT([$have_shm_ipc])
@@ -147,9 +151,19 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_mmap_anon=yes],[have_shm_mmap_anon=no],[ +- case $host_alias in +- *linux*) +- have_shm_mmap_anon=yes +- ;; +- *) +- have_shm_mmap_anon=no +- ;; +- esac +-]) +- if test "$have_shm_mmap_anon" = "yes"; then - AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) -- have_shm_mmap_anon=yes],[have_shm_mmap_anon=no],[have_shm_mmap_anon=no]) +- fi + AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) + have_shm_mmap_anon=yes AC_MSG_RESULT([$have_shm_mmap_anon])
@@ -219,16 +233,12 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_mmap_posix=yes],[have_shm_mmap_posix=no],[have_shm_mmap_posix=no]) +- if test "$have_shm_mmap_posix" = "yes"; then - AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) -- AC_MSG_RESULT([yes]) -- have_shm_mmap_posix=yes - PHP_CHECK_LIBRARY(rt, shm_unlink, [PHP_ADD_LIBRARY(rt,1,OPCACHE_SHARED_LIBADD)]) -- ],[ -- AC_MSG_RESULT([no]) -- ],[ -- AC_MSG_RESULT([no]) -- ]) +- fi +- AC_MSG_RESULT([$have_shm_mmap_posix]) + AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) + AC_MSG_RESULT([yes]) + have_shm_mmap_posix=yes
@@ -237,5 +247,5 @@ index 5492fd920c..95158ccfd9 100644 PHP_NEW_EXTENSION(opcache, ZendAccelerator.c \ -- -2.25.1 +2.17.1
meta-oe/recipes-devtools/php/php/0011-use-qemuwrapper-for-minilua.patch +25 -8
@@ -1,11 +1,28 @@ ---- a/ext/opcache/jit/Makefile.frag 2021-10-19 06:34:32.000000000 -0400 -+++ b/ext/opcache/jit/Makefile.frag 2021-11-15 15:10:41.437289836 -0500 -@@ -3,7 +3,7 @@ $(builddir)/minilua: $(srcdir)/jit/dynas - $(CC) $(srcdir)/jit/dynasm/minilua.c -lm -o $@ +From 0f7b9264c5130b3ca0a20d326fb13ca8fc0a9969 Mon Sep 17 00:00:00 2001 +From: Mingli Yu <[email protected]> +Date: Wed, 15 Dec 2021 14:43:45 +0800 +Subject: [PATCH] use qemuwrapper for minilua + +update to 8.1.0 + +Signed-off-by: Mingli Yu <[email protected]> +--- + ext/opcache/jit/Makefile.frag | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ext/opcache/jit/Makefile.frag b/ext/opcache/jit/Makefile.frag +index 98c5cda..fb0e6f0 100644 +--- a/ext/opcache/jit/Makefile.frag ++++ b/ext/opcache/jit/Makefile.frag +@@ -3,7 +3,7 @@ $(builddir)/minilua: $(srcdir)/jit/dynasm/minilua.c + $(BUILD_CC) $(srcdir)/jit/dynasm/minilua.c -lm -o $@ - $(builddir)/jit/zend_jit_x86.c: $(srcdir)/jit/zend_jit_x86.dasc $(srcdir)/jit/dynasm/*.lua $(builddir)/minilua -- $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_x86.dasc -+ $(top_srcdir)/qemuwrapper $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_x86.dasc + $(builddir)/jit/zend_jit_$(DASM_ARCH).c: $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc $(srcdir)/jit/dynasm/*.lua $(builddir)/minilua +- $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc ++ $(top_srcdir)/qemuwrapper $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc $(builddir)/jit/zend_jit.lo: \ - $(builddir)/jit/zend_jit_x86.c \ + $(builddir)/jit/zend_jit_$(DASM_ARCH).c \ +-- +2.17.1 +
meta-oe/recipes-devtools/php/php_8.1.0.bb renamed from meta-oe/recipes-devtools/php/php_8.0.12.bb +2 -2
@@ -33,7 +33,7 @@ SRC_URI:append:class-target = " \ " S = "${WORKDIR}/php-${PV}" -SRC_URI[sha256sum] = "b4886db1df322dc8fb128d8b34ae7e94f6fc682ecb29ff4f5a591d4de9feadbf" +SRC_URI[sha256sum] = "0725ed2baea125496a898455d501a77460218b2a0cfad773fa9322f491b82b61" inherit autotools pkgconfig python3native gettext qemu
@@ -77,7 +77,7 @@ EXTRA_OECONF:class-native = " \ ${COMMON_EXTRA_OECONF} \ " -PACKAGECONFIG ??= "mysql sqlite3 imap opcache \ +PACKAGECONFIG ??= "mysql sqlite3 imap opcache openssl \ ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 pam', d)} \ " PACKAGECONFIG:class-native = ""
Signature · 1 line
2.17.1
Fails on x86_64
| /home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/php-8.1.0/qemuwrapper:
line 2: 21613 Segmentation fault (core dumped) PSEUDO_UNLOAD=1
qemu-x86_64 -r 3.2.0 -cpu core2duo -L/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/recipe-sysroot
-E LD_LIBRARY_PATH=/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/recipe-sysroot/usr/lib:/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/recipe-sysroot/lib "$@"
| make: *** [Makefile:383: ext/opcache/jit/zend_jit_x86.c] Error 139
see
https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/1797
Quoted 194 lines · Mingli
From: Mingli Yu <[email protected]>
Rebase 2 patches to new version and enable openssl PACKAGECONFIG as OpenSSL 3.0 is now supported in the new version [1].
[1] https://github.com/php/php-src/commit/7b34db0659dda933b1146a0ff249f25acca1d669
Signed-off-by Mingli Yu <[email protected]>--- ...ext-opcache-config.m4-enable-opcache.patch | 50 +++++++++++-------- .../0011-use-qemuwrapper-for-minilua.patch | 33 +++++++++--- .../php/{php_8.0.12.bb => php_8.1.0.bb} | 4 +- 3 files changed, 57 insertions(+), 30 deletions(-) rename meta-oe/recipes-devtools/php/{php_8.0.12.bb => php_8.1.0.bb} (98%)meta-oe/recipes-devtools/php/php/0001-ext-opcache-config.m4-enable-opcache.patch +30
-20@@ -1,6 +1,6 @@ -From 8cabcf1043953a0fe48107204a2212609b8e6516 Mon Sep 17 00:00:00 2001 -From: Claude Bing <[email protected]> -Date: Tue, 9 Nov 2021 12:59:15 -0500 +From ca9b419f2c146061f73ee045cb0a069c18b40cd0 Mon Sep 17 00:00:00 2001 +From: Mingli Yu <[email protected]> +Date: Wed, 15 Dec 2021 14:00:08 +0800 Subject: [PATCH 01/11] ext/opcache/config.m4: enable opcache We can't use AC_TRY_RUN to run programs in a cross compile@@ -17,15 +17,18 @@ Signed-off-by: Changqing Li <[email protected]> update patch to version 8.0.12 fix issue linking with librt Signed-off-by: Claude Bing <[email protected]> + +update patch to version 8.1.0 +Signed-off-by: Mingli Yu <[email protected]> --- - ext/opcache/config.m4 | 197 ++---------------------------------------- - 1 file changed, 8 insertions(+), 189 deletions(-) + ext/opcache/config.m4 | 204 ++---------------------------------------- + 1 file changed, 8 insertions(+), 196 deletions(-) diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 -index 5492fd920c..95158ccfd9 100644 +index 2a83fa2..9471b5d 100644 --- a/ext/opcache/config.m4 +++ b/ext/opcache/config.m4 -@@ -101,202 +101,21 @@ if test "$PHP_OPCACHE" != "no"; then +@@ -108,209 +108,21 @@ if test "$PHP_OPCACHE" != "no"; then AC_CHECK_FUNCS([mprotect]) AC_MSG_CHECKING(for sysvipc shared memory support)@@ -93,9 +96,10 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_ipc=yes],[have_shm_ipc=no],[have_shm_ipc=no]) +- if test "$have_shm_ipc" = "yes"; then - AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) -- have_shm_ipc=yes],[have_shm_ipc=no],[have_shm_ipc=no]) +- fi + AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) + have_shm_ipc=yes AC_MSG_RESULT([$have_shm_ipc])@@ -147,9 +151,19 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_mmap_anon=yes],[have_shm_mmap_anon=no],[ +- case $host_alias in +- *linux*) +- have_shm_mmap_anon=yes +- ;; +- *) +- have_shm_mmap_anon=no +- ;; +- esac +-]) +- if test "$have_shm_mmap_anon" = "yes"; then - AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) -- have_shm_mmap_anon=yes],[have_shm_mmap_anon=no],[have_shm_mmap_anon=no]) +- fi + AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) + have_shm_mmap_anon=yes AC_MSG_RESULT([$have_shm_mmap_anon])@@ -219,16 +233,12 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_mmap_posix=yes],[have_shm_mmap_posix=no],[have_shm_mmap_posix=no]) +- if test "$have_shm_mmap_posix" = "yes"; then - AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) -- AC_MSG_RESULT([yes]) -- have_shm_mmap_posix=yes - PHP_CHECK_LIBRARY(rt, shm_unlink, [PHP_ADD_LIBRARY(rt,1,OPCACHE_SHARED_LIBADD)]) -- ],[ -- AC_MSG_RESULT([no]) -- ],[ -- AC_MSG_RESULT([no]) -- ]) +- fi +- AC_MSG_RESULT([$have_shm_mmap_posix]) + AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) + AC_MSG_RESULT([yes]) + have_shm_mmap_posix=yes@@ -237,5 +247,5 @@ index 5492fd920c..95158ccfd9 100644 PHP_NEW_EXTENSION(opcache, ZendAccelerator.c \ -- -2.25.1 +2.17.1meta-oe/recipes-devtools/php/php/0011-use-qemuwrapper-for-minilua.patch +25
-8@@ -1,11 +1,28 @@ ---- a/ext/opcache/jit/Makefile.frag 2021-10-19 06:34:32.000000000 -0400 -+++ b/ext/opcache/jit/Makefile.frag 2021-11-15 15:10:41.437289836 -0500 -@@ -3,7 +3,7 @@ $(builddir)/minilua: $(srcdir)/jit/dynas - $(CC) $(srcdir)/jit/dynasm/minilua.c -lm -o $@ +From 0f7b9264c5130b3ca0a20d326fb13ca8fc0a9969 Mon Sep 17 00:00:00 2001 +From: Mingli Yu <[email protected]> +Date: Wed, 15 Dec 2021 14:43:45 +0800 +Subject: [PATCH] use qemuwrapper for minilua + +update to 8.1.0 + +Signed-off-by: Mingli Yu <[email protected]> +--- + ext/opcache/jit/Makefile.frag | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ext/opcache/jit/Makefile.frag b/ext/opcache/jit/Makefile.frag +index 98c5cda..fb0e6f0 100644 +--- a/ext/opcache/jit/Makefile.frag ++++ b/ext/opcache/jit/Makefile.frag +@@ -3,7 +3,7 @@ $(builddir)/minilua: $(srcdir)/jit/dynasm/minilua.c + $(BUILD_CC) $(srcdir)/jit/dynasm/minilua.c -lm -o $@ - $(builddir)/jit/zend_jit_x86.c: $(srcdir)/jit/zend_jit_x86.dasc $(srcdir)/jit/dynasm/*.lua $(builddir)/minilua -- $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_x86.dasc -+ $(top_srcdir)/qemuwrapper $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_x86.dasc + $(builddir)/jit/zend_jit_$(DASM_ARCH).c: $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc $(srcdir)/jit/dynasm/*.lua $(builddir)/minilua +- $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc ++ $(top_srcdir)/qemuwrapper $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc $(builddir)/jit/zend_jit.lo: \ - $(builddir)/jit/zend_jit_x86.c \ + $(builddir)/jit/zend_jit_$(DASM_ARCH).c \ +-- +2.17.1 +meta-oe/recipes-devtools/php/php_8.1.0.bb renamed from meta-oe/recipes-devtools/php/php_8.0.12.bb +2
-3@@ -33,7 +33,7 @@ SRC_URI:append:class-target = " \ " S = "${WORKDIR}/php-${PV}" -SRC_URI[sha256sum] = "b4886db1df322dc8fb128d8b34ae7e94f6fc682ecb29ff4f5a591d4de9feadbf" +SRC_URI[sha256sum] = "0725ed2baea125496a898455d501a77460218b2a0cfad773fa9322f491b82b61" inherit autotools pkgconfig python3native gettext qemu@@ -77,7 +77,7 @@ EXTRA_OECONF:class-native = " \ ${COMMON_EXTRA_OECONF} \ " -PACKAGECONFIG ??= "mysql sqlite3 imap opcache \ +PACKAGECONFIG ??= "mysql sqlite3 imap opcache openssl \ ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 pam', d)} \ " PACKAGECONFIG:class-native = "" --2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#94363): https://lists.openembedded.org/g/openembedded-devel/message/94363
Mute This Topic: https://lists.openembedded.org/mt/87739886/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 11 lines · Khem Raj
[Please note: This e-mail is from an EXTERNAL e-mail address]
Fails on
x86_64|
/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/php-8.1.0/qemuwrapper:
line 2: 21613 Segmentation fault (core dumped) PSEUDO_UNLOAD=1
qemu-x86_64 -r 3.2.0 -cpu core2duo -L/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/recipe-sysroot
-E LD_LIBRARY_PATH=/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/recipe-sysroot/usr/lib:/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/recipe-sysroot/lib "$@"
| make: *** [Makefile:383:ext/opcache/jit/zend_jit_x86.c] Error 139
I didn't reproduce the issue locally, anyway I will look into this.
Thanks,
Quoted 199 lines
see
https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/1797Quoted 194 lines · Mingli
From: Mingli Yu <[email protected]>
Rebase 2 patches to new version and enable openssl PACKAGECONFIG as OpenSSL 3.0 is now supported in the new version [1].
[1] https://github.com/php/php-src/commit/7b34db0659dda933b1146a0ff249f25acca1d669
Signed-off-by Mingli Yu <[email protected]>--- ...ext-opcache-config.m4-enable-opcache.patch | 50 +++++++++++-------- .../0011-use-qemuwrapper-for-minilua.patch | 33 +++++++++--- .../php/{php_8.0.12.bb => php_8.1.0.bb} | 4 +- 3 files changed, 57 insertions(+), 30 deletions(-)rename meta-oe/recipes-devtools/php/{php_8.0.12.bb => php_8.1.0.bb} (98%)
meta-oe/recipes-devtools/php/php/0001-ext-opcache-config.m4-enable-opcache.patch +30
-20@@ -1,6 +1,6 @@ -From 8cabcf1043953a0fe48107204a2212609b8e6516 Mon Sep 17 00:00:00 2001 -From: Claude Bing <[email protected]> -Date: Tue, 9 Nov 2021 12:59:15 -0500 +From ca9b419f2c146061f73ee045cb0a069c18b40cd0 Mon Sep 17 00:00:00 2001 +From: Mingli Yu <[email protected]> +Date: Wed, 15 Dec 2021 14:00:08 +0800 Subject: [PATCH 01/11] ext/opcache/config.m4: enable opcache We can't use AC_TRY_RUN to run programs in a cross compile@@ -17,15 +17,18 @@ Signed-off-by: Changqing Li <[email protected]> update patch to version 8.0.12 fix issue linking with librt Signed-off-by: Claude Bing <[email protected]> + +update patch to version 8.1.0 +Signed-off-by: Mingli Yu <[email protected]> --- - ext/opcache/config.m4 | 197 ++---------------------------------------- - 1 file changed, 8 insertions(+), 189 deletions(-) + ext/opcache/config.m4 | 204 ++---------------------------------------- + 1 file changed, 8 insertions(+), 196 deletions(-) diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 -index 5492fd920c..95158ccfd9 100644 +index 2a83fa2..9471b5d 100644 --- a/ext/opcache/config.m4 +++ b/ext/opcache/config.m4 -@@ -101,202 +101,21 @@ if test "$PHP_OPCACHE" != "no"; then +@@ -108,209 +108,21 @@ if test "$PHP_OPCACHE" != "no"; then AC_CHECK_FUNCS([mprotect]) AC_MSG_CHECKING(for sysvipc shared memory support)@@ -93,9 +96,10 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_ipc=yes],[have_shm_ipc=no],[have_shm_ipc=no]) +- if test "$have_shm_ipc" = "yes"; then - AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) -- have_shm_ipc=yes],[have_shm_ipc=no],[have_shm_ipc=no]) +- fi + AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) + have_shm_ipc=yes AC_MSG_RESULT([$have_shm_ipc])@@ -147,9 +151,19 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_mmap_anon=yes],[have_shm_mmap_anon=no],[ +- case $host_alias in +- *linux*) +- have_shm_mmap_anon=yes +- ;; +- *) +- have_shm_mmap_anon=no +- ;; +- esac +-]) +- if test "$have_shm_mmap_anon" = "yes"; then - AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) -- have_shm_mmap_anon=yes],[have_shm_mmap_anon=no],[have_shm_mmap_anon=no]) +- fi + AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) + have_shm_mmap_anon=yes AC_MSG_RESULT([$have_shm_mmap_anon])@@ -219,16 +233,12 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_mmap_posix=yes],[have_shm_mmap_posix=no],[have_shm_mmap_posix=no]) +- if test "$have_shm_mmap_posix" = "yes"; then - AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) -- AC_MSG_RESULT([yes]) -- have_shm_mmap_posix=yes - PHP_CHECK_LIBRARY(rt, shm_unlink, [PHP_ADD_LIBRARY(rt,1,OPCACHE_SHARED_LIBADD)]) -- ],[ -- AC_MSG_RESULT([no]) -- ],[ -- AC_MSG_RESULT([no]) -- ]) +- fi +- AC_MSG_RESULT([$have_shm_mmap_posix]) + AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) + AC_MSG_RESULT([yes]) + have_shm_mmap_posix=yes@@ -237,5 +247,5 @@ index 5492fd920c..95158ccfd9 100644 PHP_NEW_EXTENSION(opcache, ZendAccelerator.c \ -- -2.25.1 +2.17.1meta-oe/recipes-devtools/php/php/0011-use-qemuwrapper-for-minilua.patch +25
-8@@ -1,11 +1,28 @@ ---- a/ext/opcache/jit/Makefile.frag 2021-10-19 06:34:32.000000000 -0400 -+++ b/ext/opcache/jit/Makefile.frag 2021-11-15 15:10:41.437289836 -0500 -@@ -3,7 +3,7 @@ $(builddir)/minilua: $(srcdir)/jit/dynas - $(CC) $(srcdir)/jit/dynasm/minilua.c -lm -o $@ +From 0f7b9264c5130b3ca0a20d326fb13ca8fc0a9969 Mon Sep 17 00:00:00 2001 +From: Mingli Yu <[email protected]> +Date: Wed, 15 Dec 2021 14:43:45 +0800 +Subject: [PATCH] use qemuwrapper for minilua + +update to 8.1.0 + +Signed-off-by: Mingli Yu <[email protected]> +--- + ext/opcache/jit/Makefile.frag | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ext/opcache/jit/Makefile.frag b/ext/opcache/jit/Makefile.frag +index 98c5cda..fb0e6f0 100644 +--- a/ext/opcache/jit/Makefile.frag ++++ b/ext/opcache/jit/Makefile.frag +@@ -3,7 +3,7 @@ $(builddir)/minilua: $(srcdir)/jit/dynasm/minilua.c + $(BUILD_CC) $(srcdir)/jit/dynasm/minilua.c -lm -o $@ - $(builddir)/jit/zend_jit_x86.c: $(srcdir)/jit/zend_jit_x86.dasc $(srcdir)/jit/dynasm/*.lua $(builddir)/minilua -- $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_x86.dasc -+ $(top_srcdir)/qemuwrapper $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_x86.dasc + $(builddir)/jit/zend_jit_$(DASM_ARCH).c: $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc $(srcdir)/jit/dynasm/*.lua $(builddir)/minilua +- $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc ++ $(top_srcdir)/qemuwrapper $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc $(builddir)/jit/zend_jit.lo: \ - $(builddir)/jit/zend_jit_x86.c \ + $(builddir)/jit/zend_jit_$(DASM_ARCH).c \ +-- +2.17.1 +meta-oe/recipes-devtools/php/php_8.1.0.bb renamed from meta-oe/recipes-devtools/php/php_8.0.12.bb +2
-3@@ -33,7 +33,7 @@ SRC_URI:append:class-target = " \ " S = "${WORKDIR}/php-${PV}" -SRC_URI[sha256sum] = "b4886db1df322dc8fb128d8b34ae7e94f6fc682ecb29ff4f5a591d4de9feadbf" +SRC_URI[sha256sum] = "0725ed2baea125496a898455d501a77460218b2a0cfad773fa9322f491b82b61" inherit autotools pkgconfig python3native gettext qemu@@ -77,7 +77,7 @@ EXTRA_OECONF:class-native = " \ ${COMMON_EXTRA_OECONF} \ " -PACKAGECONFIG ??= "mysql sqlite3 imap opcache \ +PACKAGECONFIG ??= "mysql sqlite3 imap opcache openssl \ ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 pam', d)} \ " PACKAGECONFIG:class-native = "" --2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#94363): https://lists.openembedded.org/g/openembedded-devel/message/94363
Mute This Topic: https://lists.openembedded.org/mt/87739886/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 16 lines · Mingli
Quoted 11 lines · Khem Raj
[Please note: This e-mail is from an EXTERNAL e-mail address]
Fails on
x86_64|
/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/php-8.1.0/qemuwrapper:
line 2: 21613 Segmentation fault (core dumped) PSEUDO_UNLOAD=1
qemu-x86_64 -r 3.2.0 -cpu core2duo -L/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/recipe-sysroot
-E LD_LIBRARY_PATH=/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/recipe-sysroot/usr/lib:/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/recipe-sysroot/lib "$@"
| make: *** [Makefile:383:ext/opcache/jit/zend_jit_x86.c] Error 139
Quoted 1 line
I didn't reproduce the issue locally, anyway I will look into this.
I can see it fail on all different kind of builders and architectures here is musl+qemuarm64 on ubuntu 18.04
https://errors.yoctoproject.org/Errors/Details/619373/
TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/php/8.1.0-r0/php-8.1.0/qemuwrapper ext/opcache/minilua TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/php/8.1.0-r0/php-8.1.0/ext/opcache/jit/dynasm/dynasm.lua
-D ARM64=1 -o ext/opcache/jit/zend_jit_arm64.c
TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/php/8.1.0-r0/php-8.1.0/ext/opcache/jit/zend_jit_arm64.dasc
qemu-aarch64: ext/opcache/minilua: Invalid ELF image for this architecture
Makefile:383: recipe for target 'ext/opcache/jit/zend_jit_arm64.c' failed
make: *** [ext/opcache/jit/zend_jit_arm64.c] Error 255
make: *** Waiting for unfinished jobs....
ERROR: oe_runmake failed
Quoted 202 lines
Thanks,
Quoted 199 lines
see
https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/1797Quoted 194 lines · Mingli
From: Mingli Yu <[email protected]>
Rebase 2 patches to new version and enable openssl PACKAGECONFIG as OpenSSL 3.0 is now supported in the new version [1].
[1] https://github.com/php/php-src/commit/7b34db0659dda933b1146a0ff249f25acca1d669
Signed-off-by Mingli Yu <[email protected]>--- ...ext-opcache-config.m4-enable-opcache.patch | 50 +++++++++++-------- .../0011-use-qemuwrapper-for-minilua.patch | 33 +++++++++--- .../php/{php_8.0.12.bb => php_8.1.0.bb} | 4 +- 3 files changed, 57 insertions(+), 30 deletions(-)rename meta-oe/recipes-devtools/php/{php_8.0.12.bb => php_8.1.0.bb} (98%)
meta-oe/recipes-devtools/php/php/0001-ext-opcache-config.m4-enable-opcache.patch +30
-20@@ -1,6 +1,6 @@ -From 8cabcf1043953a0fe48107204a2212609b8e6516 Mon Sep 17 00:00:00 2001 -From: Claude Bing <[email protected]> -Date: Tue, 9 Nov 2021 12:59:15 -0500 +From ca9b419f2c146061f73ee045cb0a069c18b40cd0 Mon Sep 17 00:00:00 2001 +From: Mingli Yu <[email protected]> +Date: Wed, 15 Dec 2021 14:00:08 +0800 Subject: [PATCH 01/11] ext/opcache/config.m4: enable opcache We can't use AC_TRY_RUN to run programs in a cross compile@@ -17,15 +17,18 @@ Signed-off-by: Changqing Li <[email protected]> update patch to version 8.0.12 fix issue linking with librt Signed-off-by: Claude Bing <[email protected]> + +update patch to version 8.1.0 +Signed-off-by: Mingli Yu <[email protected]> --- - ext/opcache/config.m4 | 197 ++---------------------------------------- - 1 file changed, 8 insertions(+), 189 deletions(-) + ext/opcache/config.m4 | 204 ++---------------------------------------- + 1 file changed, 8 insertions(+), 196 deletions(-) diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 -index 5492fd920c..95158ccfd9 100644 +index 2a83fa2..9471b5d 100644 --- a/ext/opcache/config.m4 +++ b/ext/opcache/config.m4 -@@ -101,202 +101,21 @@ if test "$PHP_OPCACHE" != "no"; then +@@ -108,209 +108,21 @@ if test "$PHP_OPCACHE" != "no"; then AC_CHECK_FUNCS([mprotect]) AC_MSG_CHECKING(for sysvipc shared memory support)@@ -93,9 +96,10 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_ipc=yes],[have_shm_ipc=no],[have_shm_ipc=no]) +- if test "$have_shm_ipc" = "yes"; then - AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) -- have_shm_ipc=yes],[have_shm_ipc=no],[have_shm_ipc=no]) +- fi + AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) + have_shm_ipc=yes AC_MSG_RESULT([$have_shm_ipc])@@ -147,9 +151,19 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_mmap_anon=yes],[have_shm_mmap_anon=no],[ +- case $host_alias in +- *linux*) +- have_shm_mmap_anon=yes +- ;; +- *) +- have_shm_mmap_anon=no +- ;; +- esac +-]) +- if test "$have_shm_mmap_anon" = "yes"; then - AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) -- have_shm_mmap_anon=yes],[have_shm_mmap_anon=no],[have_shm_mmap_anon=no]) +- fi + AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) + have_shm_mmap_anon=yes AC_MSG_RESULT([$have_shm_mmap_anon])@@ -219,16 +233,12 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_mmap_posix=yes],[have_shm_mmap_posix=no],[have_shm_mmap_posix=no]) +- if test "$have_shm_mmap_posix" = "yes"; then - AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) -- AC_MSG_RESULT([yes]) -- have_shm_mmap_posix=yes - PHP_CHECK_LIBRARY(rt, shm_unlink, [PHP_ADD_LIBRARY(rt,1,OPCACHE_SHARED_LIBADD)]) -- ],[ -- AC_MSG_RESULT([no]) -- ],[ -- AC_MSG_RESULT([no]) -- ]) +- fi +- AC_MSG_RESULT([$have_shm_mmap_posix]) + AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) + AC_MSG_RESULT([yes]) + have_shm_mmap_posix=yes@@ -237,5 +247,5 @@ index 5492fd920c..95158ccfd9 100644 PHP_NEW_EXTENSION(opcache, ZendAccelerator.c \ -- -2.25.1 +2.17.1meta-oe/recipes-devtools/php/php/0011-use-qemuwrapper-for-minilua.patch +25
-8@@ -1,11 +1,28 @@ ---- a/ext/opcache/jit/Makefile.frag 2021-10-19 06:34:32.000000000 -0400 -+++ b/ext/opcache/jit/Makefile.frag 2021-11-15 15:10:41.437289836 -0500 -@@ -3,7 +3,7 @@ $(builddir)/minilua: $(srcdir)/jit/dynas - $(CC) $(srcdir)/jit/dynasm/minilua.c -lm -o $@ +From 0f7b9264c5130b3ca0a20d326fb13ca8fc0a9969 Mon Sep 17 00:00:00 2001 +From: Mingli Yu <[email protected]> +Date: Wed, 15 Dec 2021 14:43:45 +0800 +Subject: [PATCH] use qemuwrapper for minilua + +update to 8.1.0 + +Signed-off-by: Mingli Yu <[email protected]> +--- + ext/opcache/jit/Makefile.frag | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ext/opcache/jit/Makefile.frag b/ext/opcache/jit/Makefile.frag +index 98c5cda..fb0e6f0 100644 +--- a/ext/opcache/jit/Makefile.frag ++++ b/ext/opcache/jit/Makefile.frag +@@ -3,7 +3,7 @@ $(builddir)/minilua: $(srcdir)/jit/dynasm/minilua.c + $(BUILD_CC) $(srcdir)/jit/dynasm/minilua.c -lm -o $@ - $(builddir)/jit/zend_jit_x86.c: $(srcdir)/jit/zend_jit_x86.dasc $(srcdir)/jit/dynasm/*.lua $(builddir)/minilua -- $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_x86.dasc -+ $(top_srcdir)/qemuwrapper $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_x86.dasc + $(builddir)/jit/zend_jit_$(DASM_ARCH).c: $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc $(srcdir)/jit/dynasm/*.lua $(builddir)/minilua +- $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc ++ $(top_srcdir)/qemuwrapper $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc $(builddir)/jit/zend_jit.lo: \ - $(builddir)/jit/zend_jit_x86.c \ + $(builddir)/jit/zend_jit_$(DASM_ARCH).c \ +-- +2.17.1 +meta-oe/recipes-devtools/php/php_8.1.0.bb renamed from meta-oe/recipes-devtools/php/php_8.0.12.bb +2
-3@@ -33,7 +33,7 @@ SRC_URI:append:class-target = " \ " S = "${WORKDIR}/php-${PV}" -SRC_URI[sha256sum] = "b4886db1df322dc8fb128d8b34ae7e94f6fc682ecb29ff4f5a591d4de9feadbf" +SRC_URI[sha256sum] = "0725ed2baea125496a898455d501a77460218b2a0cfad773fa9322f491b82b61" inherit autotools pkgconfig python3native gettext qemu@@ -77,7 +77,7 @@ EXTRA_OECONF:class-native = " \ ${COMMON_EXTRA_OECONF} \ " -PACKAGECONFIG ??= "mysql sqlite3 imap opcache \ +PACKAGECONFIG ??= "mysql sqlite3 imap opcache openssl \ ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 pam', d)} \ " PACKAGECONFIG:class-native = "" --2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#94363): https://lists.openembedded.org/g/openembedded-devel/message/94363
Mute This Topic: https://lists.openembedded.org/mt/87739886/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 26 lines · Khem Raj
[Please note: This e-mail is from an EXTERNAL e-mail address]
Quoted 16 lines · Mingli
Quoted 11 lines · Khem Raj
[Please note: This e-mail is from an EXTERNAL e-mail address]
Fails on
x86_64|
/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/php-8.1.0/qemuwrapper:
line 2: 21613 Segmentation fault (core dumped) PSEUDO_UNLOAD=1
qemu-x86_64 -r 3.2.0 -cpu core2duo -L/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/recipe-sysroot
-E LD_LIBRARY_PATH=/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/recipe-sysroot/usr/lib:/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/recipe-sysroot/lib "$@"
| make: *** [Makefile:383:ext/opcache/jit/zend_jit_x86.c] Error 139Quoted 1 line
I didn't reproduce the issue locally, anyway I will look into this.
I can see it fail on all different kind of builders and architectures here is musl+qemuarm64 on ubuntu 18.04
Quoted 10 lines
TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/php/8.1.0-r0/php-8.1.0/qemuwrapper ext/opcache/minilua TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/php/8.1.0-r0/php-8.1.0/ext/opcache/jit/dynasm/dynasm.lua
-D ARM64=1 -oext/opcache/jit/zend_jit_arm64.c
TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/php/8.1.0-r0/php-8.1.0/ext/opcache/jit/zend_jit_arm64.dasc
qemu-aarch64: ext/opcache/minilua: Invalid ELF image for this architecture
Makefile:383: recipe for target 'ext/opcache/jit/zend_jit_arm64.c' failed
make: *** [ext/opcache/jit/zend_jit_arm64.c] Error 255
make: *** Waiting for unfinished jobs....
ERROR:oe_runmakefailed
Hi Khem,
I can reproduce the issue you mentioned on qemuarm64, but cannot reproduce the failure on x86_64.
For arm64, it's because the jit support added for arm64 in php 8.1.0 as https://github.com/php/php-src/commit/0de9494464f17379db73817458db047eab378238, but it seems the previous fix https://git.openembedded.org/meta-openembedded/commit/?id=265bab83c9acbfa97117103dd5c35bbd8a9814d6 only works on x86.
As a workaround, could we just pass "--disable-opcache-jit" to disable jit support right now and turn it on if someone need it or find out the solution?
Thanks,
Quoted 204 lines
Quoted 204 lines
Thanks,
Quoted 199 lines
see
https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/1797Quoted 194 lines · Mingli
From: Mingli Yu <[email protected]>
Rebase 2 patches to new version and enable openssl PACKAGECONFIG as OpenSSL 3.0 is now supported in the new version [1].
[1] https://github.com/php/php-src/commit/7b34db0659dda933b1146a0ff249f25acca1d669
Signed-off-by Mingli Yu <[email protected]>--- ...ext-opcache-config.m4-enable-opcache.patch | 50 +++++++++++-------- .../0011-use-qemuwrapper-for-minilua.patch | 33 +++++++++--- .../php/{php_8.0.12.bb => php_8.1.0.bb} | 4 +- 3 files changed, 57 insertions(+), 30 deletions(-)rename meta-oe/recipes-devtools/php/{php_8.0.12.bb => php_8.1.0.bb} (98%)
meta-oe/recipes-devtools/php/php/0001-ext-opcache-config.m4-enable-opcache.patch +30
-20@@ -1,6 +1,6 @@ -From 8cabcf1043953a0fe48107204a2212609b8e6516 Mon Sep 17 00:00:00 2001 -From: Claude Bing <[email protected]> -Date: Tue, 9 Nov 2021 12:59:15 -0500 +From ca9b419f2c146061f73ee045cb0a069c18b40cd0 Mon Sep 17 00:00:00 2001 +From: Mingli Yu <[email protected]> +Date: Wed, 15 Dec 2021 14:00:08 +0800 Subject: [PATCH 01/11] ext/opcache/config.m4: enable opcache We can't use AC_TRY_RUN to run programs in a cross compile@@ -17,15 +17,18 @@ Signed-off-by: Changqing Li <[email protected]> update patch to version 8.0.12 fix issue linking with librt Signed-off-by: Claude Bing <[email protected]> + +update patch to version 8.1.0 +Signed-off-by: Mingli Yu <[email protected]> --- - ext/opcache/config.m4 | 197 ++---------------------------------------- - 1 file changed, 8 insertions(+), 189 deletions(-) + ext/opcache/config.m4 | 204 ++---------------------------------------- + 1 file changed, 8 insertions(+), 196 deletions(-) diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 -index 5492fd920c..95158ccfd9 100644 +index 2a83fa2..9471b5d 100644 --- a/ext/opcache/config.m4 +++ b/ext/opcache/config.m4 -@@ -101,202 +101,21 @@ if test "$PHP_OPCACHE" != "no"; then +@@ -108,209 +108,21 @@ if test "$PHP_OPCACHE" != "no"; then AC_CHECK_FUNCS([mprotect]) AC_MSG_CHECKING(for sysvipc shared memory support)@@ -93,9 +96,10 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_ipc=yes],[have_shm_ipc=no],[have_shm_ipc=no]) +- if test "$have_shm_ipc" = "yes"; then - AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) -- have_shm_ipc=yes],[have_shm_ipc=no],[have_shm_ipc=no]) +- fi + AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) + have_shm_ipc=yes AC_MSG_RESULT([$have_shm_ipc])@@ -147,9 +151,19 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_mmap_anon=yes],[have_shm_mmap_anon=no],[ +- case $host_alias in +- *linux*) +- have_shm_mmap_anon=yes +- ;; +- *) +- have_shm_mmap_anon=no +- ;; +- esac +-]) +- if test "$have_shm_mmap_anon" = "yes"; then - AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) -- have_shm_mmap_anon=yes],[have_shm_mmap_anon=no],[have_shm_mmap_anon=no]) +- fi + AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) + have_shm_mmap_anon=yes AC_MSG_RESULT([$have_shm_mmap_anon])@@ -219,16 +233,12 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_mmap_posix=yes],[have_shm_mmap_posix=no],[have_shm_mmap_posix=no]) +- if test "$have_shm_mmap_posix" = "yes"; then - AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) -- AC_MSG_RESULT([yes]) -- have_shm_mmap_posix=yes - PHP_CHECK_LIBRARY(rt, shm_unlink, [PHP_ADD_LIBRARY(rt,1,OPCACHE_SHARED_LIBADD)]) -- ],[ -- AC_MSG_RESULT([no]) -- ],[ -- AC_MSG_RESULT([no]) -- ]) +- fi +- AC_MSG_RESULT([$have_shm_mmap_posix]) + AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) + AC_MSG_RESULT([yes]) + have_shm_mmap_posix=yes@@ -237,5 +247,5 @@ index 5492fd920c..95158ccfd9 100644 PHP_NEW_EXTENSION(opcache, ZendAccelerator.c \ -- -2.25.1 +2.17.1meta-oe/recipes-devtools/php/php/0011-use-qemuwrapper-for-minilua.patch +25
-8@@ -1,11 +1,28 @@ ---- a/ext/opcache/jit/Makefile.frag 2021-10-19 06:34:32.000000000 -0400 -+++ b/ext/opcache/jit/Makefile.frag 2021-11-15 15:10:41.437289836 -0500 -@@ -3,7 +3,7 @@ $(builddir)/minilua: $(srcdir)/jit/dynas - $(CC) $(srcdir)/jit/dynasm/minilua.c -lm -o $@ +From 0f7b9264c5130b3ca0a20d326fb13ca8fc0a9969 Mon Sep 17 00:00:00 2001 +From: Mingli Yu <[email protected]> +Date: Wed, 15 Dec 2021 14:43:45 +0800 +Subject: [PATCH] use qemuwrapper for minilua + +update to 8.1.0 + +Signed-off-by: Mingli Yu <[email protected]> +--- + ext/opcache/jit/Makefile.frag | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ext/opcache/jit/Makefile.frag b/ext/opcache/jit/Makefile.frag +index 98c5cda..fb0e6f0 100644 +--- a/ext/opcache/jit/Makefile.frag ++++ b/ext/opcache/jit/Makefile.frag +@@ -3,7 +3,7 @@ $(builddir)/minilua: $(srcdir)/jit/dynasm/minilua.c + $(BUILD_CC) $(srcdir)/jit/dynasm/minilua.c -lm -o $@ - $(builddir)/jit/zend_jit_x86.c: $(srcdir)/jit/zend_jit_x86.dasc $(srcdir)/jit/dynasm/*.lua $(builddir)/minilua -- $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_x86.dasc -+ $(top_srcdir)/qemuwrapper $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_x86.dasc + $(builddir)/jit/zend_jit_$(DASM_ARCH).c: $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc $(srcdir)/jit/dynasm/*.lua $(builddir)/minilua +- $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc ++ $(top_srcdir)/qemuwrapper $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc $(builddir)/jit/zend_jit.lo: \ - $(builddir)/jit/zend_jit_x86.c \ + $(builddir)/jit/zend_jit_$(DASM_ARCH).c \ +-- +2.17.1 +meta-oe/recipes-devtools/php/php_8.1.0.bb renamed from meta-oe/recipes-devtools/php/php_8.0.12.bb +2
-3@@ -33,7 +33,7 @@ SRC_URI:append:class-target = " \ " S = "${WORKDIR}/php-${PV}" -SRC_URI[sha256sum] = "b4886db1df322dc8fb128d8b34ae7e94f6fc682ecb29ff4f5a591d4de9feadbf" +SRC_URI[sha256sum] = "0725ed2baea125496a898455d501a77460218b2a0cfad773fa9322f491b82b61" inherit autotools pkgconfig python3native gettext qemu@@ -77,7 +77,7 @@ EXTRA_OECONF:class-native = " \ ${COMMON_EXTRA_OECONF} \ " -PACKAGECONFIG ??= "mysql sqlite3 imap opcache \ +PACKAGECONFIG ??= "mysql sqlite3 imap opcache openssl \ ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 pam', d)} \ " PACKAGECONFIG:class-native = "" --2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#94363): https://lists.openembedded.org/g/openembedded-devel/message/94363
Mute This Topic: https://lists.openembedded.org/mt/87739886/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 51 lines · Mingli
Quoted 26 lines · Khem Raj
[Please note: This e-mail is from an EXTERNAL e-mail address]
Quoted 16 lines · Mingli
Quoted 11 lines · Khem Raj
[Please note: This e-mail is from an EXTERNAL e-mail address]
Fails on
x86_64|
/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/php-8.1.0/qemuwrapper:
line 2: 21613 Segmentation fault (core dumped) PSEUDO_UNLOAD=1
qemu-x86_64 -r 3.2.0 -cpu core2duo -L/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/recipe-sysroot
-E LD_LIBRARY_PATH=/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/recipe-sysroot/usr/lib:/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/php/8.1.0-r0/recipe-sysroot/lib "$@"
| make: *** [Makefile:383:ext/opcache/jit/zend_jit_x86.c] Error 139Quoted 1 line
I didn't reproduce the issue locally, anyway I will look into this.
I can see it fail on all different kind of builders and architectures here is musl+qemuarm64 on ubuntu 18.04
Quoted 10 lines
TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/php/8.1.0-r0/php-8.1.0/qemuwrapper ext/opcache/minilua TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/php/8.1.0-r0/php-8.1.0/ext/opcache/jit/dynasm/dynasm.lua
-D ARM64=1 -oext/opcache/jit/zend_jit_arm64.c
TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/php/8.1.0-r0/php-8.1.0/ext/opcache/jit/zend_jit_arm64.dasc
qemu-aarch64: ext/opcache/minilua: Invalid ELF image for this architecture
Makefile:383: recipe for target 'ext/opcache/jit/zend_jit_arm64.c' failed
make: *** [ext/opcache/jit/zend_jit_arm64.c] Error 255
make: *** Waiting for unfinished jobs....
ERROR:oe_runmakefailedHi Khem,
I can reproduce the issue you mentioned on qemuarm64, but cannot reproduce the failure on
x86_64.
For arm64, it's because the jit support added for arm64 in php 8.1.0 as
https://github.com/php/php-src/commit/0de9494464f17379db73817458db047eab378238,
but it seems the previous fix
https://git.openembedded.org/meta-openembedded/commit/?id=265bab83c9acbfa97117103dd5c35bbd8a9814d6
only works on x86.
Quoted 3 lines
As a workaround, could we just pass "--disable-opcache-jit" to disable jit support right now and turn it on if someone need it or find out the solution?
perhaps enable it on arm64 would be a better solution.
Quoted 207 lines
Thanks,
Quoted 204 lines
Quoted 204 lines
Thanks,
Quoted 199 lines
see
https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/1797Quoted 194 lines · Mingli
From: Mingli Yu <[email protected]>
Rebase 2 patches to new version and enable openssl PACKAGECONFIG as OpenSSL 3.0 is now supported in the new version [1].
[1] https://github.com/php/php-src/commit/7b34db0659dda933b1146a0ff249f25acca1d669
Signed-off-by Mingli Yu <[email protected]>--- ...ext-opcache-config.m4-enable-opcache.patch | 50 +++++++++++-------- .../0011-use-qemuwrapper-for-minilua.patch | 33 +++++++++--- .../php/{php_8.0.12.bb => php_8.1.0.bb} | 4 +- 3 files changed, 57 insertions(+), 30 deletions(-)rename meta-oe/recipes-devtools/php/{php_8.0.12.bb => php_8.1.0.bb} (98%)
meta-oe/recipes-devtools/php/php/0001-ext-opcache-config.m4-enable-opcache.patch +30
-20@@ -1,6 +1,6 @@ -From 8cabcf1043953a0fe48107204a2212609b8e6516 Mon Sep 17 00:00:00 2001 -From: Claude Bing <[email protected]> -Date: Tue, 9 Nov 2021 12:59:15 -0500 +From ca9b419f2c146061f73ee045cb0a069c18b40cd0 Mon Sep 17 00:00:00 2001 +From: Mingli Yu <[email protected]> +Date: Wed, 15 Dec 2021 14:00:08 +0800 Subject: [PATCH 01/11] ext/opcache/config.m4: enable opcache We can't use AC_TRY_RUN to run programs in a cross compile@@ -17,15 +17,18 @@ Signed-off-by: Changqing Li <[email protected]> update patch to version 8.0.12 fix issue linking with librt Signed-off-by: Claude Bing <[email protected]> + +update patch to version 8.1.0 +Signed-off-by: Mingli Yu <[email protected]> --- - ext/opcache/config.m4 | 197 ++---------------------------------------- - 1 file changed, 8 insertions(+), 189 deletions(-) + ext/opcache/config.m4 | 204 ++---------------------------------------- + 1 file changed, 8 insertions(+), 196 deletions(-) diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 -index 5492fd920c..95158ccfd9 100644 +index 2a83fa2..9471b5d 100644 --- a/ext/opcache/config.m4 +++ b/ext/opcache/config.m4 -@@ -101,202 +101,21 @@ if test "$PHP_OPCACHE" != "no"; then +@@ -108,209 +108,21 @@ if test "$PHP_OPCACHE" != "no"; then AC_CHECK_FUNCS([mprotect]) AC_MSG_CHECKING(for sysvipc shared memory support)@@ -93,9 +96,10 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_ipc=yes],[have_shm_ipc=no],[have_shm_ipc=no]) +- if test "$have_shm_ipc" = "yes"; then - AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) -- have_shm_ipc=yes],[have_shm_ipc=no],[have_shm_ipc=no]) +- fi + AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support]) + have_shm_ipc=yes AC_MSG_RESULT([$have_shm_ipc])@@ -147,9 +151,19 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_mmap_anon=yes],[have_shm_mmap_anon=no],[ +- case $host_alias in +- *linux*) +- have_shm_mmap_anon=yes +- ;; +- *) +- have_shm_mmap_anon=no +- ;; +- esac +-]) +- if test "$have_shm_mmap_anon" = "yes"; then - AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) -- have_shm_mmap_anon=yes],[have_shm_mmap_anon=no],[have_shm_mmap_anon=no]) +- fi + AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) + have_shm_mmap_anon=yes AC_MSG_RESULT([$have_shm_mmap_anon])@@ -219,16 +233,12 @@ index 5492fd920c..95158ccfd9 100644 - } - return 0; -} --]])],[dnl +-]])],[have_shm_mmap_posix=yes],[have_shm_mmap_posix=no],[have_shm_mmap_posix=no]) +- if test "$have_shm_mmap_posix" = "yes"; then - AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) -- AC_MSG_RESULT([yes]) -- have_shm_mmap_posix=yes - PHP_CHECK_LIBRARY(rt, shm_unlink, [PHP_ADD_LIBRARY(rt,1,OPCACHE_SHARED_LIBADD)]) -- ],[ -- AC_MSG_RESULT([no]) -- ],[ -- AC_MSG_RESULT([no]) -- ]) +- fi +- AC_MSG_RESULT([$have_shm_mmap_posix]) + AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) + AC_MSG_RESULT([yes]) + have_shm_mmap_posix=yes@@ -237,5 +247,5 @@ index 5492fd920c..95158ccfd9 100644 PHP_NEW_EXTENSION(opcache, ZendAccelerator.c \ -- -2.25.1 +2.17.1meta-oe/recipes-devtools/php/php/0011-use-qemuwrapper-for-minilua.patch +25
-8@@ -1,11 +1,28 @@ ---- a/ext/opcache/jit/Makefile.frag 2021-10-19 06:34:32.000000000 -0400 -+++ b/ext/opcache/jit/Makefile.frag 2021-11-15 15:10:41.437289836 -0500 -@@ -3,7 +3,7 @@ $(builddir)/minilua: $(srcdir)/jit/dynas - $(CC) $(srcdir)/jit/dynasm/minilua.c -lm -o $@ +From 0f7b9264c5130b3ca0a20d326fb13ca8fc0a9969 Mon Sep 17 00:00:00 2001 +From: Mingli Yu <[email protected]> +Date: Wed, 15 Dec 2021 14:43:45 +0800 +Subject: [PATCH] use qemuwrapper for minilua + +update to 8.1.0 + +Signed-off-by: Mingli Yu <[email protected]> +--- + ext/opcache/jit/Makefile.frag | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ext/opcache/jit/Makefile.frag b/ext/opcache/jit/Makefile.frag +index 98c5cda..fb0e6f0 100644 +--- a/ext/opcache/jit/Makefile.frag ++++ b/ext/opcache/jit/Makefile.frag +@@ -3,7 +3,7 @@ $(builddir)/minilua: $(srcdir)/jit/dynasm/minilua.c + $(BUILD_CC) $(srcdir)/jit/dynasm/minilua.c -lm -o $@ - $(builddir)/jit/zend_jit_x86.c: $(srcdir)/jit/zend_jit_x86.dasc $(srcdir)/jit/dynasm/*.lua $(builddir)/minilua -- $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_x86.dasc -+ $(top_srcdir)/qemuwrapper $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_x86.dasc + $(builddir)/jit/zend_jit_$(DASM_ARCH).c: $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc $(srcdir)/jit/dynasm/*.lua $(builddir)/minilua +- $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc ++ $(top_srcdir)/qemuwrapper $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc $(builddir)/jit/zend_jit.lo: \ - $(builddir)/jit/zend_jit_x86.c \ + $(builddir)/jit/zend_jit_$(DASM_ARCH).c \ +-- +2.17.1 +meta-oe/recipes-devtools/php/php_8.1.0.bb renamed from meta-oe/recipes-devtools/php/php_8.0.12.bb +2
-3@@ -33,7 +33,7 @@ SRC_URI:append:class-target = " \ " S = "${WORKDIR}/php-${PV}" -SRC_URI[sha256sum] = "b4886db1df322dc8fb128d8b34ae7e94f6fc682ecb29ff4f5a591d4de9feadbf" +SRC_URI[sha256sum] = "0725ed2baea125496a898455d501a77460218b2a0cfad773fa9322f491b82b61" inherit autotools pkgconfig python3native gettext qemu@@ -77,7 +77,7 @@ EXTRA_OECONF:class-native = " \ ${COMMON_EXTRA_OECONF} \ " -PACKAGECONFIG ??= "mysql sqlite3 imap opcache \ +PACKAGECONFIG ??= "mysql sqlite3 imap opcache openssl \ ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 pam', d)} \ " PACKAGECONFIG:class-native = "" --2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#94363): https://lists.openembedded.org/g/openembedded-devel/message/94363
Mute This Topic: https://lists.openembedded.org/mt/87739886/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-