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/perl-PathTools.spec'], chrootPath='/var/lib/mock/module-perl-5.30-8070020221025093636-d4344feb-build-147403-57775/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/perl-PathTools.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 sh: perl: command not found sh: /usr/bin/perl: No such file or directory sh: /usr/bin/perl: No such file or directory sh: /usr/bin/perl: No such file or directory Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/perl-PathTools-3.78-439.module+an8.7.0+10876+0e5667e6.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/perl-PathTools.spec'], chrootPath='/var/lib/mock/module-perl-5.30-8070020221025093636-d4344feb-build-147403-57775/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/perl-PathTools.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.Po0wiD + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf PathTools-3.75 + /usr/bin/gzip -dc /builddir/build/SOURCES/PathTools-3.75.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd PathTools-3.75 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (PathTools-3.74-Disable-VMS-tests.patch):' Patch #0 (PathTools-3.74-Disable-VMS-tests.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file t/Spec.t Hunk #2 succeeded at 325 (offset -1 lines). Patch #1 (PathTools-3.75-Upgrade-to-3.78.patch): + echo 'Patch #1 (PathTools-3.75-Upgrade-to-3.78.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Cwd.pm patching file lib/File/Spec.pm patching file lib/File/Spec/AmigaOS.pm patching file lib/File/Spec/Cygwin.pm patching file lib/File/Spec/Epoc.pm patching file lib/File/Spec/Functions.pm patching file lib/File/Spec/Mac.pm patching file lib/File/Spec/OS2.pm patching file lib/File/Spec/Unix.pm patching file lib/File/Spec/Win32.pm patching file t/Spec.t patching file t/cwd.t patching file t/cwd_enoent.t + rm lib/File/Spec/VMS.pm + sed -i -e '/^lib\/File\/Spec\/VMS.pm/d' MANIFEST + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.VjZDlb + umask 022 + cd /builddir/build/BUILD + cd PathTools-3.75 + perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 'OPTIMIZE=-O2 -g' Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Cwd + make -j4 Running Mkbootstrap for Cwd () "/usr/bin/perl" "/usr/share/perl5/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' Cwd.xs > Cwd.xsc chmod 644 "Cwd.bs" "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Cwd.bs blib/arch/auto/Cwd/Cwd.bs 644 cp lib/File/Spec/Epoc.pm blib/lib/File/Spec/Epoc.pm cp lib/File/Spec/Cygwin.pm blib/lib/File/Spec/Cygwin.pm cp lib/File/Spec/Win32.pm blib/lib/File/Spec/Win32.pm cp lib/File/Spec/AmigaOS.pm blib/lib/File/Spec/AmigaOS.pm cp lib/File/Spec.pm blib/lib/File/Spec.pm cp lib/File/Spec/Functions.pm blib/lib/File/Spec/Functions.pm cp lib/File/Spec/Unix.pm blib/lib/File/Spec/Unix.pm cp lib/File/Spec/Mac.pm blib/lib/File/Spec/Mac.pm cp lib/File/Spec/OS2.pm blib/lib/File/Spec/OS2.pm cp Cwd.pm blib/lib/Cwd.pm mv Cwd.xsc Cwd.c loongarch64-redhat-linux-gnu-gcc -c -D_REENTRANT -D_GNU_SOURCE -O2 -g -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -g -DVERSION=\"3.78\" -DXS_VERSION=\"3.78\" -fPIC "-I/usr/lib64/perl5/CORE" -DDOUBLE_SLASHES_SPECIAL=0 Cwd.c /bin/sh: loongarch64-redhat-linux-gnu-gcc: command not found make: *** [Makefile:356: Cwd.o] Error 127 error: Bad exit status from /var/tmp/rpm-tmp.VjZDlb (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.VjZDlb (%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/perl-PathTools.spec