D: [iurt_root_command] chroot
Building target platforms: x86_64
Building for target x86_64
Installing /home/pterjan/rpmbuild/SRPMS/perl-Digest-MD2-2.40.0-22.mga10.src.rpm
Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.RT1dxv
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build
+ test -d /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build
+ /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build/SPECPARTS
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.VPpJZb
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build
+ rm -rf Digest-MD2-2.04
+ /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/Digest-MD2-2.04.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd Digest-MD2-2.04
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.F4q8j2
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build
+ cd Digest-MD2-2.04
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ /usr/bin/perl Makefile.PL INSTALLDIRS=vendor
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Digest::MD2
Writing MYMETA.yml and MYMETA.json
+ /usr/bin/make -O -j16 V=1 VERBOSE=1 'OPTIMIZE=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full'
cp MD2.pm blib/lib/Digest/MD2.pm
Running Mkbootstrap for MD2 ()
chmod 644 "MD2.bs"
"/usr/bin/perl5.40.0" -MExtUtils::Command::MM -e 'cp_nonempty' -- MD2.bs blib/arch/auto/Digest/MD2/MD2.bs 644
"/usr/bin/perl5.40.0" "/usr/share/perl5/ExtUtils/xsubpp"  -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build/Digest-MD2-2.04/typemap'  MD2.xs > MD2.xsc
mv MD2.xsc MD2.c
gcc -c   -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full   -DVERSION=\"2.04\" -DXS_VERSION=\"2.04\" -fPIC "-I/usr/lib64/perl5/CORE"   MD2.c
In file included from /usr/lib64/perl5/CORE/perl.h:6225,
                 from MD2.xs:34:
MD2.xs: In function 'XS_Digest__MD2_clone':
/usr/lib64/perl5/CORE/embed.h:716:49: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  716 | # define sv_reftype(a,b)                        Perl_sv_reftype(aTHX_ a,b)
      |                                                 ^~~~~~~~~~~~~~~
MD2.xs:342:24: note: in expansion of macro 'sv_reftype'
  342 |         char *myname = sv_reftype(SvRV(self),TRUE);
      |                        ^~~~~~~~~~
In file included from /usr/lib64/perl5/CORE/perl.h:3329:
MD2.xs: In function 'XS_Digest__MD2_md2':
/usr/lib64/perl5/CORE/handy.h:702:23: warning: argument 1 null where non-null expected [-Wnonnull]
  702 | #define strEQ(s1,s2) (strcmp(s1,s2) == 0)
      |                       ^~~~~~
MD2.xs:432:41: note: in expansion of macro 'strEQ'
  432 |                     if (SvOBJECT(sv) && strEQ(HvNAME(SvSTASH(sv)), "Digest::MD2"))
      |                                         ^~~~~
In file included from /usr/lib64/perl5/CORE/perl.h:1711:
/usr/include/string.h:156:12: note: in a call to function 'strcmp' declared 'nonnull'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |            ^~~~~~
rm -f blib/arch/auto/Digest/MD2/MD2.so
gcc  -lpthread -shared -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/local/lib -fstack-protector-strong  MD2.o  -o blib/arch/auto/Digest/MD2/MD2.so  \
    -lperl   \
  
chmod 755 blib/arch/auto/Digest/MD2/MD2.so
Manifying 1 pod document
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.2Qg5SA
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build
+ '[' 1 -eq 1 ']'
+ '[' /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build/BUILDROOT '!=' / ']'
+ rm -rf /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build/BUILDROOT
++ dirname /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build/BUILDROOT
+ mkdir -p /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build
+ mkdir /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build/BUILDROOT
+ cd Digest-MD2-2.04
+ '[' 1 -eq 1 ']'
+ /usr/bin/make install DESTDIR=/home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build/BUILDROOT 'INSTALL=/usr/bin/install -p'
"/usr/bin/perl5.40.0" -MExtUtils::Command::MM -e 'cp_nonempty' -- MD2.bs blib/arch/auto/Digest/MD2/MD2.bs 644
Manifying 1 pod document
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build/BUILDROOT/usr/lib64/perl5/vendor_perl/auto/Digest/MD2/MD2.so
Installing /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build/BUILDROOT/usr/lib64/perl5/vendor_perl/Digest/MD2.pm
Installing /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build/BUILDROOT/usr/share/man/man3/Digest::MD2.3pm
Appending installation info to /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build/BUILDROOT/usr/lib64/perl5/perllocal.pod
+ /usr/bin/find-debuginfo -j16 --strict-build-id -m -i --build-id-seed 2.40.0-22.mga10 --unique-debug-suffix -2.40.0-22.mga10.x86_64 --unique-debug-src-base perl-Digest-MD2-2.40.0-22.mga10.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build/Digest-MD2-2.04
find-debuginfo: starting

Extracting debug info from 1 files
objcopy: unable to copy file '/home/pterjan/rpmbuild/BUILD/perl-Digest-MD2-2.40.0-build/BUILDROOT/usr/lib64/perl5/vendor_perl/auto/Digest/MD2/MD2.so'; reason: Permission denied
*** ERROR:: GDB exited with exit status 1 during index generation
error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.2Qg5SA (%install)

RPM build errors:
    Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.2Qg5SA (%install)
I: [iurt_root_command] ERROR: chroot