Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/perl-Authen-Krb5.spec'], chrootPath='/var/lib/mock/f40-build-733664-105273/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=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/perl-Authen-Krb5.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: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1692144000 Wrote: /builddir/build/SRPMS/perl-Authen-Krb5-1.9-42.fc40.src.rpm RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/perl-Authen-Krb5.spec'], chrootPath='/var/lib/mock/f40-build-733664-105273/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=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/perl-Authen-Krb5.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: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1692144000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.FnsTZa + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Krb5-1.9 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/Krb5-1.9.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd Krb5-1.9 + rm -rf /builddir/build/BUILD/Krb5-1.9-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/Krb5-1.9-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (Krb5-1.9-nopriv.patch):' Patch #0 (Krb5-1.9-nopriv.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Krb5.xs + sed '-es|/usr/lib|/usr/lib64|' '-es|/usr/include|/usr/include|' -i Makefile.PL + sed -i 's|/usr/local/bin/perl|/usr/bin/perl|' sample_client sample_server simple_client simple_server + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.trzhlG + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd Krb5-1.9 + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor 'OPTIMIZE=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' Checking for libk5crypto...yes Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Authen::Krb5 + make -j4 "/usr/bin/perl" "/usr/share/perl5/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/builddir/build/BUILD/Krb5-1.9/typemap' Krb5.xs > Krb5.xsc Running Mkbootstrap for Krb5 () chmod 644 "Krb5.bs" "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Krb5.bs blib/arch/auto/Authen/Krb5/Krb5.bs 644 cp Krb5.pm blib/lib/Authen/Krb5.pm AutoSplitting blib/lib/Authen/Krb5.pm (blib/lib/auto/Authen/Krb5) Please specify prototyping behavior for Krb5.xs (see perlxs manual) mv Krb5.xsc Krb5.c gcc -c -I/usr/include -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -DVERSION=\"1.9\" -DXS_VERSION=\"1.9\" -fPIC "-I/usr/lib64/perl5/CORE" Krb5.c In file included from /usr/lib64/perl5/CORE/perl.h:4530, from Krb5.xs:5: Krb5.xs: In function ‘XS_Authen__Krb5_mk_req’: /usr/lib64/perl5/CORE/sv.h:1952:31: warning: passing argument 3 of ‘Perl_SvPV_helper’ from incompatible pointer type [-Wincompatible-pointer-types] 1952 | Perl_SvPV_helper(aTHX_ sv, &len, flags, SvPVnormal_type_, \ /usr/lib64/perl5/CORE/sv.h:1972:37: note: in expansion of macro ‘SvPV_flags’ 1972 | #define SvPV(sv, len) SvPV_flags(sv, len, SV_GMAGIC) | ^~~~~~~~~~ Krb5.xs:453:24: note: in expansion of macro ‘SvPV’ 453 | in_data.data = SvPV(in,in_data.length); | ^~~~ In file included from /usr/lib64/perl5/CORE/perl.h:7812: /usr/lib64/perl5/CORE/sv_inline.h:908:33: note: expected ‘STRLEN * const’ {aka ‘long unsigned int * const’} but argument is of type ‘unsigned int *’ 908 | STRLEN * const lp, | ~~~~~~~~~~~~~~~^~ Krb5.xs: In function ‘XS_Authen__Krb5_rd_req’: /usr/lib64/perl5/CORE/sv.h:1952:31: warning: passing argument 3 of ‘Perl_SvPV_helper’ from incompatible pointer type [-Wincompatible-pointer-types] 1952 | Perl_SvPV_helper(aTHX_ sv, &len, flags, SvPVnormal_type_, \ /usr/lib64/perl5/CORE/sv.h:1972:37: note: in expansion of macro ‘SvPV_flags’ 1972 | #define SvPV(sv, len) SvPV_flags(sv, len, SV_GMAGIC) | ^~~~~~~~~~ Krb5.xs:475:24: note: in expansion of macro ‘SvPV’ 475 | in_data.data = SvPV(in,in_data.length); | ^~~~ /usr/lib64/perl5/CORE/sv_inline.h:908:33: note: expected ‘STRLEN * const’ {aka ‘long unsigned int * const’} but argument is of type ‘unsigned int *’ 908 | STRLEN * const lp, | ~~~~~~~~~~~~~~~^~ Krb5.xs: In function ‘XS_Authen__Krb5_gen_portaddr’: Krb5.xs:492:15: error: implicit declaration of function ‘krb5_gen_portaddr’ [-Werror=implicit-function-declaration] 492 | err = krb5_gen_portaddr(context,addr,(krb5_pointer)&port,&RETVAL); | ^~~~~~~~~~~~~~~~~ Krb5.xs: In function ‘XS_Authen__Krb5_gen_replay_name’: Krb5.xs:519:15: error: implicit declaration of function ‘krb5_gen_replay_name’; did you mean ‘krb5_set_real_time’? [-Werror=implicit-function-declaration] 519 | err = krb5_gen_replay_name(context,addr,uniq,&RETVAL); | ^~~~~~~~~~~~~~~~~~~~ | krb5_set_real_time Krb5.xs: In function ‘XS_Authen__Krb5_mk_priv’: /usr/lib64/perl5/CORE/sv.h:1952:31: warning: passing argument 3 of ‘Perl_SvPV_helper’ from incompatible pointer type [-Wincompatible-pointer-types] 1952 | Perl_SvPV_helper(aTHX_ sv, &len, flags, SvPVnormal_type_, \ /usr/lib64/perl5/CORE/sv.h:1972:37: note: in expansion of macro ‘SvPV_flags’ 1972 | #define SvPV(sv, len) SvPV_flags(sv, len, SV_GMAGIC) | ^~~~~~~~~~ Krb5.xs:534:24: note: in expansion of macro ‘SvPV’ 534 | in_data.data = SvPV(in,in_data.length); | ^~~~ /usr/lib64/perl5/CORE/sv_inline.h:908:33: note: expected ‘STRLEN * const’ {aka ‘long unsigned int * const’} but argument is of type ‘unsigned int *’ 908 | STRLEN * const lp, | ~~~~~~~~~~~~~~~^~ Krb5.xs: In function ‘XS_Authen__Krb5_rd_priv’: /usr/lib64/perl5/CORE/sv.h:1952:31: warning: passing argument 3 of ‘Perl_SvPV_helper’ from incompatible pointer type [-Wincompatible-pointer-types] 1952 | Perl_SvPV_helper(aTHX_ sv, &len, flags, SvPVnormal_type_, \ /usr/lib64/perl5/CORE/sv.h:1972:37: note: in expansion of macro ‘SvPV_flags’ 1972 | #define SvPV(sv, len) SvPV_flags(sv, len, SV_GMAGIC) | ^~~~~~~~~~ Krb5.xs:549:24: note: in expansion of macro ‘SvPV’ 549 | in_data.data = SvPV(in,in_data.length); | ^~~~ /usr/lib64/perl5/CORE/sv_inline.h:908:33: note: expected ‘STRLEN * const’ {aka ‘long unsigned int * const’} but argument is of type ‘unsigned int *’ 908 | STRLEN * const lp, | ~~~~~~~~~~~~~~~^~ Krb5.xs: In function ‘XS_Authen__Krb5_get_server_rcache’: /usr/lib64/perl5/CORE/sv.h:1952:31: warning: passing argument 3 of ‘Perl_SvPV_helper’ from incompatible pointer type [-Wincompatible-pointer-types] 1952 | Perl_SvPV_helper(aTHX_ sv, &len, flags, SvPVnormal_type_, \ /usr/lib64/perl5/CORE/sv.h:1972:37: note: in expansion of macro ‘SvPV_flags’ 1972 | #define SvPV(sv, len) SvPV_flags(sv, len, SV_GMAGIC) | ^~~~~~~~~~ Krb5.xs:562:22: note: in expansion of macro ‘SvPV’ 562 | rc_data.data=SvPV(piece,rc_data.length); | ^~~~ /usr/lib64/perl5/CORE/sv_inline.h:908:33: note: expected ‘STRLEN * const’ {aka ‘long unsigned int * const’} but argument is of type ‘unsigned int *’ 908 | STRLEN * const lp, | ~~~~~~~~~~~~~~~^~ Krb5.xs: In function ‘XS_Authen__Krb5_sendauth’: /usr/lib64/perl5/CORE/sv.h:1952:31: warning: passing argument 3 of ‘Perl_SvPV_helper’ from incompatible pointer type [-Wincompatible-pointer-types] 1952 | Perl_SvPV_helper(aTHX_ sv, &len, flags, SvPVnormal_type_, \ /usr/lib64/perl5/CORE/sv.h:1972:37: note: in expansion of macro ‘SvPV_flags’ 1972 | #define SvPV(sv, len) SvPV_flags(sv, len, SV_GMAGIC) | ^~~~~~~~~~ Krb5.xs:589:24: note: in expansion of macro ‘SvPV’ 589 | in_data.data = SvPV(in,in_data.length); | ^~~~ /usr/lib64/perl5/CORE/sv_inline.h:908:33: note: expected ‘STRLEN * const’ {aka ‘long unsigned int * const’} but argument is of type ‘unsigned int *’ 908 | STRLEN * const lp, | ~~~~~~~~~~~~~~~^~ Krb5.c: In function ‘XS_Authen__Krb5__AuthContext_new’: Krb5.c:2260:17: warning: unused variable ‘class’ [-Wunused-variable] 2260 | char * class = (char *)SvPV_nolen(ST(0)) | ^~~~~ Krb5.xs: In function ‘XS_Authen__Krb5__EncTktPart_DESTROY’: Krb5.xs:1007:17: error: implicit declaration of function ‘krb5_free_enc_tkt_part’; did you mean ‘krb5_free_enctypes’? [-Werror=implicit-function-declaration] 1007 | krb5_free_enc_tkt_part(context,etp); | ^~~~~~~~~~~~~~~~~~~~~~ | krb5_free_enctypes Krb5.xs: In function ‘XS_Authen__Krb5__Address_new’: /usr/lib64/perl5/CORE/sv.h:1952:31: warning: passing argument 3 of ‘Perl_SvPV_helper’ from incompatible pointer type [-Wincompatible-pointer-types] 1952 | Perl_SvPV_helper(aTHX_ sv, &len, flags, SvPVnormal_type_, \ /usr/lib64/perl5/CORE/sv.h:1972:37: note: in expansion of macro ‘SvPV_flags’ 1972 | #define SvPV(sv, len) SvPV_flags(sv, len, SV_GMAGIC) | ^~~~~~~~~~ Krb5.xs:1022:42: note: in expansion of macro ‘SvPV’ 1022 | RETVAL->contents = (krb5_octet *)SvPV(contents,RETVAL->length); | ^~~~ /usr/lib64/perl5/CORE/sv_inline.h:908:33: note: expected ‘STRLEN * const’ {aka ‘long unsigned int * const’} but argument is of type ‘unsigned int *’ 908 | STRLEN * const lp, | ~~~~~~~~~~~~~~~^~ Krb5.c:2833:17: warning: unused variable ‘class’ [-Wunused-variable] 2833 | char * class = (char *)SvPV_nolen(ST(0)) | ^~~~~ Krb5.xs: In function ‘XS_Authen__Krb5__Address_DESTROY’: Krb5.xs:1033:17: error: implicit declaration of function ‘krb5_free_address’; did you mean ‘krb5_free_addresses’? [-Werror=implicit-function-declaration] 1033 | krb5_free_address(context,addr); | ^~~~~~~~~~~~~~~~~ | krb5_free_addresses Krb5.c: In function ‘XS_Authen__Krb5__KeytabEntry_new’: Krb5.c:3395:17: warning: unused variable ‘class’ [-Wunused-variable] 3395 | char * class = (char *)SvPV_nolen(ST(0)) | ^~~~~ Krb5.xs: In function ‘XS_Authen__Krb5__Creds_ticket’: Krb5.xs:1351:25: warning: variable ‘retval’ set but not used [-Wunused-but-set-variable] 1351 | krb5_error_code retval; | ^~~~~~ Krb5.xs: In function ‘XS_Authen__Krb5__Creds_DESTROY’: Krb5.xs:1389:17: warning: pointer ‘creds_43’ used after ‘free’ [-Wuse-after-free] 1389 | freed((SV *)creds); | ^~~~~~~~~~~~~~~~~~ Krb5.xs:1388:17: note: call to ‘free’ here 1388 | free(creds); | ^~~~~~~~~~~ cc1: some warnings being treated as errors make: *** [Makefile:341: Krb5.o] Error 1 RPM build warnings: RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.trzhlG (%build) %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.trzhlG (%build) Child return code was: 1 EXCEPTION: [Error()] 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 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 riscv64 --nodeps /builddir/build/SPECS/perl-Authen-Krb5.spec