Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/php.spec'], chrootPath='/var/lib/mock/module-php-7.3-8070020221027092705-92ce34d6-build-151166-57977/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=86400uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/php.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: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/php-7.3.20-1.module+an8.7.0+10875+4d733c1a.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/php.spec'], chrootPath='/var/lib/mock/module-php-7.3-8070020221027092705-92ce34d6-build-151166-57977/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=86400uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/php.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: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Y54vst + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf php-7.3.20 + /usr/bin/xz -dc /builddir/build/SOURCES/php-7.3.20.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd php-7.3.20 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (php-7.1.7-httpd.patch):' Patch #1 (php-7.1.7-httpd.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .mpmcheck --fuzz=0 patching file sapi/apache2handler/config.m4 Hunk #1 succeeded at 107 (offset -9 lines). Patch #5 (php-7.2.0-includedir.patch): + echo 'Patch #5 (php-7.2.0-includedir.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .includedir --fuzz=0 patching file configure.ac Hunk #1 succeeded at 1310 (offset 80 lines). Patch #6 (php-5.6.3-embed.patch): + echo 'Patch #6 (php-5.6.3-embed.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .embed --fuzz=0 patching file sapi/embed/config.m4 Hunk #1 succeeded at 10 (offset -2 lines). patching file scripts/php-config.in Patch #7 (php-5.3.0-recode.patch): + echo 'Patch #7 (php-5.3.0-recode.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .recode --fuzz=0 patching file ext/recode/config9.m4 Hunk #1 succeeded at 2 (offset -2 lines). Patch #8 (php-7.2.0-libdb.patch): + echo 'Patch #8 (php-7.2.0-libdb.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .libdb --fuzz=0 patching file ext/dba/config.m4 Hunk #1 succeeded at 344 (offset -2 lines). patching file ext/dba/dba.c Hunk #1 succeeded at 51 (offset -2 lines). Hunk #2 succeeded at 560 (offset -2 lines). Patch #40 (php-7.2.4-dlopen.patch): + echo 'Patch #40 (php-7.2.4-dlopen.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .dlopen --fuzz=0 patching file sapi/litespeed/lsapilib.c Hunk #1 succeeded at 779 (offset 24 lines). patching file Zend/zend_portability.h Hunk #1 succeeded at 142 (offset -2 lines). Patch #42 (php-7.3.3-systzdata-v18.patch): + echo 'Patch #42 (php-7.3.3-systzdata-v18.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .systzdata --fuzz=0 patching file ext/date/config0.m4 patching file ext/date/lib/parse_tz.c Hunk #1 succeeded at 26 (offset 1 line). Hunk #2 succeeded at 101 (offset 1 line). Hunk #3 succeeded at 430 (offset 1 line). Hunk #4 succeeded at 878 (offset 1 line). Hunk #5 succeeded at 931 (offset 1 line). Hunk #6 succeeded at 996 (offset 1 line). Hunk #7 succeeded at 1038 (offset -3 lines). Patch #43 (php-7.3.0-phpize.patch): + echo 'Patch #43 (php-7.3.0-phpize.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .headers --fuzz=0 patching file scripts/phpize.in Patch #45 (php-7.2.3-ldap_r.patch): + echo 'Patch #45 (php-7.2.3-ldap_r.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .ldap_r --fuzz=0 patching file ext/ldap/config.m4 Hunk #1 succeeded at 117 (offset -2 lines). Patch #46 (php-7.3.20-fixheader.patch): + echo 'Patch #46 (php-7.3.20-fixheader.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .fixheader --fuzz=0 patching file configure.ac Patch #47 (php-5.6.3-phpinfo.patch): + echo 'Patch #47 (php-5.6.3-phpinfo.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .phpinfo --fuzz=0 patching file ext/standard/info.c Hunk #1 succeeded at 829 (offset 86 lines). patching file ext/standard/tests/general_functions/phpinfo.phpt + echo 'Patch #300 (php-5.6.3-datetests.patch):' Patch #300 (php-5.6.3-datetests.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .datetests --fuzz=0 patching file ext/date/tests/bug66985.phpt + cp Zend/LICENSE Zend/ZEND_LICENSE + cp TSRM/LICENSE TSRM_LICENSE + cp sapi/fpm/LICENSE fpm_LICENSE + cp ext/mbstring/libmbfl/LICENSE libmbfl_LICENSE + cp ext/mbstring/oniguruma/COPYING oniguruma_COPYING + cp ext/mbstring/ucgendat/OPENLDAP_LICENSE ucgendat_LICENSE + cp ext/fileinfo/libmagic/LICENSE libmagic_LICENSE + cp ext/bcmath/libbcmath/COPYING.LIB libbcmath_COPYING + cp ext/date/lib/LICENSE.rst timelib_LICENSE + mkdir build-cgi build-apache build-embedded build-fpm + rm ext/date/tests/timezone_location_get.phpt + rm ext/date/tests/timezone_version_get.phpt + rm ext/date/tests/timezone_version_get_basic1.phpt + rm ext/sockets/tests/mcast_ipv4_recv.phpt ext/sockets/tests/mcast_ipv6_recv.phpt + rm Zend/tests/bug54268.phpt + rm Zend/tests/bug68412.phpt + rm ext/zlib/tests/004-mb.phpt ++ sed -n '/#define PHP_VERSION /{s/.* "//;s/".*$//;p}' main/php_version.h + pver=7.3.20 + test x7.3.20 '!=' x7.3.20 ++ sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h + vapi=20180731 + test x20180731 '!=' x20180731 ++ sed -n '/#define ZEND_MODULE_API_NO/{s/^[^0-9]*//;p;}' Zend/zend_modules.h + vzend=20180731 + test x20180731 '!=' x20180731 ++ sed -n '/#define PDO_DRIVER_API/{s/.*[ ]//;p}' ext/pdo/php_pdo_driver.h + vpdo=20170320 + test x20170320 '!=' x20170320 ++ sed -n '/#define PHP_JSON_VERSION /{s/.* "//;s/".*$//;p}' ext/json/php_json.h + ver=1.7.0 + test 1.7.0 '!=' 1.7.0 + rm -f TSRM/tsrm_win32.h TSRM/tsrm_config.w32.h Zend/zend_config.w32.h ext/mysqlnd/config-win.h ext/standard/winver.h main/win32_internal_function_disabled.h main/win95nt.h + find . -name '*.[ch]' -exec chmod 644 '{}' ';' + chmod 644 README.EXT_SKEL README.GIT-RULES README.MAILINGLIST_RULES README.NEW-OUTPUT-API README.PARAMETER_PARSING_API README.REDIST.BINS README.RELEASE_PROCESS README.SELF-CONTAINED-EXTENSIONS README.STREAMS README.SUBMITTING_PATCH README.TESTING README.UNIX-BUILD-SYSTEM README.WIN32-BUILD-SYSTEM README.input_filter README.md + cp /builddir/build/SOURCES/10-opcache.ini 10-opcache.ini + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.gKwDli + umask 022 + cd /builddir/build/BUILD + cd php-7.3.20 ++ date +%s -r NEWS + export SOURCE_DATE_EPOCH=1594108429 + SOURCE_DATE_EPOCH=1594108429 ++ uname + export PHP_UNAME=Linux + PHP_UNAME=Linux ++ aclocal --print-ac-dir ++ aclocal --print-ac-dir ++ aclocal --print-ac-dir ++ aclocal --print-ac-dir ++ aclocal --print-ac-dir + cat /usr/share/aclocal/libtool.m4 /usr/share/aclocal/ltoptions.m4 /usr/share/aclocal/ltsugar.m4 /usr/share/aclocal/ltversion.m4 /usr/share/aclocal/lt~obsolete.m4 + libtoolize --force --copy libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. ++ aclocal --print-ac-dir ++ aclocal --print-ac-dir ++ aclocal --print-ac-dir ++ aclocal --print-ac-dir ++ aclocal --print-ac-dir + cat /usr/share/aclocal/libtool.m4 /usr/share/aclocal/ltoptions.m4 /usr/share/aclocal/ltsugar.m4 /usr/share/aclocal/ltversion.m4 /usr/share/aclocal/lt~obsolete.m4 + touch configure.ac + ./buildconf --force Forcing buildconf Removing configure caches buildconf: checking installation... buildconf: autoconf version 2.69 (ok) rebuilding aclocal.m4 rebuilding configure rebuilding main/php_config.h.in ++ echo -O2 -g -fno-strict-aliasing -Wno-pointer-sign ++ sed s/-mstackrealign// ~/build/BUILD/php-7.3.20/build-cgi ~/build/BUILD/php-7.3.20 + CFLAGS='-O2 -g -fno-strict-aliasing -Wno-pointer-sign' + export CFLAGS + EXTENSION_DIR=/usr/lib64/php/modules + export EXTENSION_DIR + PEAR_INSTALLDIR=/usr/share/pear + export PEAR_INSTALLDIR + pushd build-cgi + build --libdir=/usr/lib64/php --enable-pcntl --enable-opcache --enable-opcache-file --enable-phpdbg --enable-mbstring=shared --enable-mbregex --with-gd=shared,/usr --with-gmp=shared --enable-calendar=shared --enable-bcmath=shared --with-bz2=shared --enable-ctype=shared --enable-dba=shared --with-db4=/usr --with-tcadb=/usr --enable-exif=shared --enable-ftp=shared --with-gettext=shared --with-iconv=shared --enable-sockets=shared --enable-tokenizer=shared --with-xmlrpc=shared --with-ldap=shared --with-ldap-sasl --enable-mysqlnd=shared --with-mysqli=shared,mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --enable-dom=shared --with-pgsql=shared --enable-simplexml=shared --enable-xml=shared --enable-wddx=shared --with-snmp=shared,/usr --enable-soap=shared --with-xsl=shared,/usr --enable-xmlreader=shared --enable-xmlwriter=shared --with-curl=shared,/usr --enable-pdo=shared --with-pdo-odbc=shared,unixODBC,/usr --with-pdo-mysql=shared,mysqlnd --with-pdo-pgsql=shared,/usr --with-pdo-sqlite=shared,/usr --with-sqlite3=shared,/usr --enable-json=shared --without-readline --with-libedit --enable-phar=shared --enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared --enable-shmop=shared --enable-posix=shared --with-unixODBC=shared,/usr --enable-fileinfo=shared --without-sodium --enable-intl=shared --with-icu-dir=/usr --with-enchant=shared,/usr --with-recode=shared,/usr + mkdir Zend + cp ../Zend/zend_language_parser.c ../Zend/zend_language_parser.h ../Zend/zend_language_scanner.c ../Zend/zend_language_scanner.h ../Zend/zend_ini_parser.c ../Zend/zend_ini_parser.h ../Zend/zend_ini_scanner.c ../Zend/zend_ini_scanner.h Zend + ln -sf ../configure + CFLAGS='-O2 -g -fno-strict-aliasing -Wno-pointer-sign' + export CFLAGS + CXXFLAGS='-O2 -g' + export CXXFLAGS + FFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=loongarch64-Anolis-linux --host=loongarch64-Anolis-linux --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 --cache-file=../config.cache --with-libdir=lib64 --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --disable-debug --with-pic --disable-rpath --without-pear --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --without-gdbm --with-jpeg-dir=/usr --with-openssl --with-system-ciphers --with-pcre-regex=/usr --with-zlib --with-layout=GNU --with-kerberos --with-libxml-dir=/usr --with-system-tzdata --with-mhash --enable-dtrace --libdir=/usr/lib64/php --enable-pcntl --enable-opcache --enable-opcache-file --enable-phpdbg --enable-mbstring=shared --enable-mbregex --with-gd=shared,/usr --with-gmp=shared --enable-calendar=shared --enable-bcmath=shared --with-bz2=shared --enable-ctype=shared --enable-dba=shared --with-db4=/usr --with-tcadb=/usr --enable-exif=shared --enable-ftp=shared --with-gettext=shared --with-iconv=shared --enable-sockets=shared --enable-tokenizer=shared --with-xmlrpc=shared --with-ldap=shared --with-ldap-sasl --enable-mysqlnd=shared --with-mysqli=shared,mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --enable-dom=shared --with-pgsql=shared --enable-simplexml=shared --enable-xml=shared --enable-wddx=shared --with-snmp=shared,/usr --enable-soap=shared --with-xsl=shared,/usr --enable-xmlreader=shared --enable-xmlwriter=shared --with-curl=shared,/usr --enable-pdo=shared --with-pdo-odbc=shared,unixODBC,/usr --with-pdo-mysql=shared,mysqlnd --with-pdo-pgsql=shared,/usr --with-pdo-sqlite=shared,/usr --with-sqlite3=shared,/usr --enable-json=shared --without-readline --with-libedit --enable-phar=shared --enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared --enable-shmop=shared --enable-posix=shared --with-unixODBC=shared,/usr --enable-fileinfo=shared --without-sodium --enable-intl=shared --with-icu-dir=/usr --with-enchant=shared,/usr --with-recode=shared,/usr configure: WARNING: unrecognized options: --disable-dependency-tracking, --with-exec-dir configure: creating cache ../config.cache 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 build system type... Invalid configuration `loongarch64-Anolis-linux': machine `loongarch64-Anolis' not recognized configure: error: /bin/sh ../config.sub loongarch64-Anolis-linux failed error: Bad exit status from /var/tmp/rpm-tmp.gKwDli (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.gKwDli (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 600, 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 loongarch64 --nodeps /builddir/build/SPECS/php.spec