Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/perl-Encode.spec'], chrootPath='/var/lib/mock/dist-an23-build-242782-63101/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=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/perl-Encode.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 setting SOURCE_DATE_EPOCH=1658188800 Wrote: /builddir/build/SRPMS/perl-Encode-2.97-3.0.1.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/perl-Encode.spec'], chrootPath='/var/lib/mock/dist-an23-build-242782-63101/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=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/perl-Encode.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 setting SOURCE_DATE_EPOCH=1658188800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.3Pfhlj + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Encode-2.97 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/Encode-2.97.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd Encode-2.97 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.RVU9Us + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd Encode-2.97 + perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 'OPTIMIZE=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' Odd number of elements in hash assignment at Makefile.PL line 13. Argument "0.81_01" isn't numeric in numeric gt (>) at /usr/share/perl5/vendor_perl/ExtUtils/MakeMaker.pm line 641. Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Encode + make -j80 "/usr/bin/perl" "/usr/share/perl5/vendor_perl/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' Encode.xs > Encode.xsc Running Mkbootstrap for Encode () "/usr/bin/perl" bin/enc2xs -"Q" -"O" -o def_t.c -f def_t.fnm gcc -c -I./Encode -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Werror=declaration-after-statement -Wpointer-sign -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DVERSION=\"2.97\" -DXS_VERSION=\"2.97\" -fPIC "-I/usr/lib64/perl5/CORE" encengine.c make[1]: Entering directory '/builddir/build/BUILD/Encode-2.97/Byte' Running Mkbootstrap for Byte () chmod 644 "Encode.bs" "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Encode.bs blib/arch/auto/Encode/Encode.bs 644 "/usr/bin/perl" ../bin/enc2xs -"Q" -"O" -o byte_t.c -f byte_t.fnm Reading iso-8859-1 (iso-8859-1) Reading ascii (ascii) Reading cp1252 (cp1252) Reading ascii-ctrl (ascii-ctrl) Reading null (null) cp lib/Encode/KR/2022_KR.pm blib/lib/Encode/KR/2022_KR.pm cp lib/Encode/CJKConstants.pm blib/lib/Encode/CJKConstants.pm cp Encode/Makefile_PL.e2x blib/lib/Encode/Makefile_PL.e2x cp lib/Encode/Guess.pm blib/lib/Encode/Guess.pm cp lib/Encode/JP/H2Z.pm blib/lib/Encode/JP/H2Z.pm cp Encode/README.e2x blib/lib/Encode/README.e2x cp Encode.pm blib/lib/Encode.pm cp lib/Encode/MIME/Name.pm blib/lib/Encode/MIME/Name.pm cp lib/Encode/Encoder.pm blib/lib/Encode/Encoder.pm cp lib/Encode/Unicode/UTF7.pm blib/lib/Encode/Unicode/UTF7.pm cp lib/Encode/Alias.pm blib/lib/Encode/Alias.pm cp lib/Encode/PerlIO.pod blib/lib/Encode/PerlIO.pod cp Encode/ConfigLocal_PM.e2x blib/lib/Encode/ConfigLocal_PM.e2x cp Encode/_PM.e2x blib/lib/Encode/_PM.e2x cp lib/Encode/MIME/Header.pm blib/lib/Encode/MIME/Header.pm cp lib/Encode/JP/JIS7.pm blib/lib/Encode/JP/JIS7.pm cp lib/Encode/GSM0338.pm blib/lib/Encode/GSM0338.pm cp encoding.pm blib/lib/encoding.pm cp lib/Encode/MIME/Header/ISO_2022_JP.pm blib/lib/Encode/MIME/Header/ISO_2022_JP.pm cp Encode/_T.e2x blib/lib/Encode/_T.e2x cp lib/Encode/Supported.pod blib/lib/Encode/Supported.pod cp lib/Encode/Encoding.pm blib/lib/Encode/Encoding.pm cp Encode/encode.h blib/lib/Encode/encode.h cp Encode/Changes.e2x blib/lib/Encode/Changes.e2x cp lib/Encode/Config.pm blib/lib/Encode/Config.pm cp lib/Encode/CN/HZ.pm blib/lib/Encode/CN/HZ.pm gcc -c -I./Encode -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Werror=declaration-after-statement -Wpointer-sign -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DVERSION=\"2.97\" -DXS_VERSION=\"2.97\" -fPIC "-I/usr/lib64/perl5/CORE" def_t.c cp Byte.pm ../blib/lib/Encode/Byte.pm chmod 644 "Byte.bs" "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Byte.bs ../blib/arch/auto/Encode/Byte/Byte.bs 644 mv Encode.xsc Encode.c gcc -c -I./Encode -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Werror=declaration-after-statement -Wpointer-sign -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DVERSION=\"2.97\" -DXS_VERSION=\"2.97\" -fPIC "-I/usr/lib64/perl5/CORE" Encode.c In file included from /usr/lib64/perl5/CORE/perl.h:7242, from encengine.c:91: /usr/lib64/perl5/CORE/inline.h: In function 'Perl_cop_file_avn': /usr/lib64/perl5/CORE/inline.h:3489:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] 3489 | const char *file = CopFILE(cop); | ^~~~~ Reading iso-8859-2 (iso-8859-2) Reading iso-8859-3 (iso-8859-3) Reading iso-8859-4 (iso-8859-4) Reading iso-8859-5 (iso-8859-5) Reading iso-8859-6 (iso-8859-6) Reading iso-8859-7 (iso-8859-7) Reading iso-8859-8 (iso-8859-8) Reading iso-8859-9 (iso-8859-9) Reading iso-8859-10 (iso-8859-10) Reading iso-8859-11 (iso-8859-11) Reading iso-8859-13 (iso-8859-13) Reading iso-8859-14 (iso-8859-14) Reading iso-8859-15 (iso-8859-15) Reading iso-8859-16 (iso-8859-16) Reading AdobeStandardEncoding (AdobeStandardEncoding) Reading cp1006 (cp1006) Reading cp1250 (cp1250) Reading cp1251 (cp1251) Reading cp1253 (cp1253) Reading cp1254 (cp1254) Reading cp1255 (cp1255) Reading cp1256 (cp1256) Reading cp1257 (cp1257) Reading cp1258 (cp1258) Reading cp424 (cp424) Reading cp437 (cp437) Reading cp737 (cp737) Reading cp775 (cp775) Reading cp850 (cp850) Reading cp852 (cp852) Reading cp855 (cp855) Reading cp856 (cp856) Reading cp857 (cp857) Reading cp858 (cp858) Reading cp860 (cp860) Reading cp861 (cp861) Reading cp862 (cp862) Reading cp863 (cp863) Reading cp864 (cp864) Reading cp865 (cp865) Reading cp866 (cp866) Reading cp869 (cp869) Reading cp874 (cp874) Reading hp-roman8 (hp-roman8) Reading koi8-f (koi8-f) Reading koi8-r (koi8-r) Reading koi8-u (koi8-u) Reading MacArabic (MacArabic) Reading MacCentralEurRoman (MacCentralEurRoman) Reading MacCroatian (MacCroatian) Reading MacCyrillic (MacCyrillic) Reading MacFarsi (MacFarsi) Reading MacGreek (MacGreek) Reading MacHebrew (MacHebrew) Reading MacIcelandic (MacIcelandic) Reading MacRomanian (MacRomanian) Reading MacRumanian (MacRumanian) Reading MacRoman (MacRoman) Reading MacSami (MacSami) Reading MacThai (MacThai) Reading MacTurkish (MacTurkish) Reading MacUkrainian (MacUkrainian) Reading nextstep (nextstep) Reading viscii (viscii) cc1: some warnings being treated as errors "/usr/bin/perl" "/usr/share/perl5/vendor_perl/ExtUtils/xsubpp" -nolinenumbers -typemap '/usr/share/perl5/ExtUtils/typemap' Byte.xs > Byte.xsc gcc -c -I./Encode -I../Encode -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Werror=declaration-after-statement -Wpointer-sign -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DVERSION=\"2.04\" -DXS_VERSION=\"2.04\" -fPIC "-I/usr/lib64/perl5/CORE" byte_t.c make: *** [Makefile:389: encengine.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from /usr/lib64/perl5/CORE/perl.h:7242, from Encode.xs:7: /usr/lib64/perl5/CORE/inline.h: In function 'Perl_cop_file_avn': /usr/lib64/perl5/CORE/inline.h:3489:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] 3489 | const char *file = CopFILE(cop); | ^~~~~ Encode.xs: In function 'encode_method': Encode.xs:252:13: warning: 'Perl_utf8n_to_uvuni' is deprecated [-Wdeprecated-declarations] 252 | utf8n_to_uvuni(s+slen, (tlen-sdone-slen), | ^~~~~~~~~~~~~~ In file included from /usr/lib64/perl5/CORE/perl.h:5798: /usr/lib64/perl5/CORE/proto.h:4141:25: note: declared here 4141 | PERL_CALLCONV UV Perl_utf8n_to_uvuni(pTHX_ const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags) | ^~~~~~~~~~~~~~~~~~~ mv Byte.xsc Byte.c gcc -c -I./Encode -I../Encode -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Werror=declaration-after-statement -Wpointer-sign -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DVERSION=\"2.04\" -DXS_VERSION=\"2.04\" -fPIC "-I/usr/lib64/perl5/CORE" Byte.c In file included from /usr/lib64/perl5/CORE/perl.h:7242, from Byte.c:11: /usr/lib64/perl5/CORE/inline.h: In function 'Perl_cop_file_avn': /usr/lib64/perl5/CORE/inline.h:3489:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] 3489 | const char *file = CopFILE(cop); | ^~~~~ cc1: some warnings being treated as errors make[1]: *** [Makefile:323: Byte.o] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/Encode-2.97/Byte' make: *** [Makefile:649: subdirs] Error 2 cc1: some warnings being treated as errors make: *** [Makefile:389: Encode.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.RVU9Us (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.RVU9Us (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/perl-Encode.spec\n', 1)] 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 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 --noclean --target x86_64 --nodeps /builddir/build/SPECS/perl-Encode.spec