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-Compress-Bzip2.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-127042-46179/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-Compress-Bzip2.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/perl-Compress-Bzip2-2.26-6.0.1.an8.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-Compress-Bzip2.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-127042-46179/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-Compress-Bzip2.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.6IH98N + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Compress-Bzip2-2.26 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/Compress-Bzip2-2.26.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd Compress-Bzip2-2.26 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + find bzlib-src -mindepth 1 -type f '!' -name 'sample*' -delete + sed -i -e '/^bzlib-src\//d' MANIFEST + find bzlib-src -type f + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.UjCw7b + umask 022 + cd /builddir/build/BUILD + cd Compress-Bzip2-2.26 + perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 'OPTIMIZE=-O2 -g' Parsing config.in... Can't exec "loongarch64-redhat-linux-gnu-gcc": No such file or directory at Makefile.PL line 193. compile command 'loongarch64-redhat-linux-gnu-gcc -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 -Wl,--enable-new-dtags -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector-strong -L/usr/local/lib -o show_bzversion show_bzversion.c -lbz2' failed system bzip2 not found, building internal libbz2 Looks Good. Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Compress::Bzip2 + make -j4 make: *** No rule to make target 'bzlib-src/Makefile', needed by 'bzlib-src/libbz2.a'. Stop. make: *** Waiting for unfinished jobs.... cp lib/Compress/Bzip2.pm blib/lib/Compress/Bzip2.pm AutoSplitting blib/lib/Compress/Bzip2.pm (blib/lib/auto/Compress/Bzip2) error: Bad exit status from /var/tmp/rpm-tmp.UjCw7b (%build) Bad exit status from /var/tmp/rpm-tmp.UjCw7b (%build) RPM build errors: 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-Compress-Bzip2.spec