Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/phpy.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS-x86_64-1742177611.433220/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/phpy.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: line 33: Possible unexpanded macro in: Requires: php(zend-abi) = %{php_zend_api} warning: line 34: Possible unexpanded macro in: Requires: php(api) = %{php_core_api} sh: line 1: fg: no job control Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/phpy-1.0.11-1.src.rpm RPM build warnings: line 33: Possible unexpanded macro in: Requires: php(zend-abi) = %{php_zend_api} line 34: Possible unexpanded macro in: Requires: php(api) = %{php_core_api} Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/phpy.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS-x86_64-1742177611.433220/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/phpy.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: line 33: Possible unexpanded macro in: Requires: php(zend-abi) = %{php_zend_api} warning: line 34: Possible unexpanded macro in: Requires: php(api) = %{php_core_api} sh: line 1: fg: no job control Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/phpy-1.0.11-1.src.rpm RPM build warnings: line 33: Possible unexpanded macro in: Requires: php(zend-abi) = %{php_zend_api} line 34: Possible unexpanded macro in: Requires: php(api) = %{php_core_api} Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/phpy.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS-x86_64-1742177611.433220/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/phpy.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.BqUvD9 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf phpy-1.0.11 + /usr/bin/mkdir -p phpy-1.0.11 + cd phpy-1.0.11 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/phpy-1.0.11.tgz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -e 's/role="test"/role="src"/' -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml + cd phpy-1.0.11 + sed -s /-Wall/d -i config.m4 + echo 'Patch #0 (phpy-pkgconfig.patch):' Patch #0 (phpy-pkgconfig.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .pkg --fuzz=0 patching file config.m4 ++ sed -n '/# define PHP_PHPY_VERSION/{s/.* "//;s/".*$//;p}' php_phpy.h + extver=1.0.11 + test x1.0.11 '!=' x1.0.11 + cd .. + mkdir NTS + cat + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.yl8cUz + umask 022 + cd /builddir/build/BUILD + cd phpy-1.0.11 + cd phpy-1.0.11 + /usr/bin/phpize Configuring for: PHP Api Version: 20230831 Zend Module Api No: 20230831 Zend Extension Api No: 420230831 configure.ac:158: warning: The macro 'AC_PROG_LIBTOOL' is obsolete. configure.ac:158: You should run autoupdate. build/libtool.m4:100: AC_PROG_LIBTOOL is expanded from... configure.ac:158: the top level + sed -e s/INSTALL_ROOT/DESTDIR/ -i build/Makefile.global + cd ../NTS + CFLAGS='-O2 -flto=auto -ffat-lto-objects -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fexceptions' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fexceptions -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fexceptions -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld ' + export LDFLAGS + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print ++ dirname ../phpy-1.0.11/configure + /usr/lib/rpm/fix-libtool-from-moving-options-after-libs ../phpy-1.0.11 Fixing libtool inside configure to pass -Wl,xxx options earliest + '[' 1 = 1 ']' +++ dirname ../phpy-1.0.11/configure ++ find ../phpy-1.0.11 -name config.guess -o -name config.sub + for i in $(find $(dirname ../phpy-1.0.11/configure) -name config.guess -o -name config.sub) ++ basename ../phpy-1.0.11/build/config.guess + '[' -f /usr/lib/rpm/openEuler/config.guess ']' + /usr/bin/rm -f ../phpy-1.0.11/build/config.guess ++ basename ../phpy-1.0.11/build/config.guess + /usr/bin/cp -fv /usr/lib/rpm/openEuler/config.guess ../phpy-1.0.11/build/config.guess '/usr/lib/rpm/openEuler/config.guess' -> '../phpy-1.0.11/build/config.guess' + for i in $(find $(dirname ../phpy-1.0.11/configure) -name config.guess -o -name config.sub) ++ basename ../phpy-1.0.11/build/config.sub + '[' -f /usr/lib/rpm/openEuler/config.sub ']' + /usr/bin/rm -f ../phpy-1.0.11/build/config.sub ++ basename ../phpy-1.0.11/build/config.sub + /usr/bin/cp -fv /usr/lib/rpm/openEuler/config.sub ../phpy-1.0.11/build/config.sub '/usr/lib/rpm/openEuler/config.sub' -> '../phpy-1.0.11/build/config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' ']' ++ find . -name ltmain.sh + ../phpy-1.0.11/configure --build=x86_64-openEuler-linux-gnu --host=x86_64-openEuler-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-phpy --with-libdir=lib64 '--with-php-config=%{__phpconfig}' configure: WARNING: unrecognized options: --disable-dependency-tracking checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for x86_64-openEuler-linux-gnu-pkg-config... /usr/bin/x86_64-openEuler-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking for x86_64-openEuler-linux-gnu-cc... no checking for x86_64-openEuler-linux-gnu-gcc... no checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether cc accepts -g... yes checking for cc option to enable C11 features... none needed checking how to run the C preprocessor... cc -E checking for egrep -e... (cached) /usr/bin/grep -E checking for icc... no checking for suncc... no checking for system library directory... lib64 checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-openEuler-linux-gnu checking host system type... x86_64-openEuler-linux-gnu checking target system type... x86_64-openEuler-linux-gnu ../phpy-1.0.11/configure: line 4666: fg: no job control ../phpy-1.0.11/configure: line 4667: fg: no job control ../phpy-1.0.11/configure: line 4668: fg: no job control ../phpy-1.0.11/configure: line 4669: fg: no job control ../phpy-1.0.11/configure: line 4670: fg: no job control configure: error: Cannot find php-config. Please use --with-php-config=PATH error: Bad exit status from /var/tmp/rpm-tmp.yl8cUz (%build) Bad exit status from /var/tmp/rpm-tmp.yl8cUz (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/phpy.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/phpy.spec