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-Socket.spec'], chrootPath='/var/lib/mock/module-perl-5.24-8040020211122094452-3d27a66e-build-57946-29239/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-Socket.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 Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/perl-Socket-2.027-4.module+an8.4.0+10501+7279654e.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-Socket.spec'], chrootPath='/var/lib/mock/module-perl-5.24-8040020211122094452-3d27a66e-build-57946-29239/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-Socket.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.9zriWL + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Socket-2.027 + /usr/bin/gzip -dc /builddir/build/SOURCES/Socket-2.027.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd Socket-2.027 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (Socket-2.029-inet_aton-Use-getaddrinfo-if-possible.patch):' Patch #0 (Socket-2.029-inet_aton-Use-getaddrinfo-if-possible.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Socket.xs Hunk #1 succeeded at 745 (offset -19 lines). + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.4z72YF + umask 022 + cd /builddir/build/BUILD + cd Socket-2.027 + perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 'OPTIMIZE=-O2 -g' Checking HAS_GAI_STRERROR... Can't exec "loongarch64-redhat-linux-gnu-gcc": No such file or directory at /usr/share/perl5/vendor_perl/ExtUtils/CBuilder/Base.pm line 331. Checking HAS_SOCKADDR_SA_LEN... Can't exec "loongarch64-redhat-linux-gnu-gcc": No such file or directory at /usr/share/perl5/vendor_perl/ExtUtils/CBuilder/Base.pm line 331. Checking I_NETINET_IP... Can't exec "loongarch64-redhat-linux-gnu-gcc": No such file or directory at /usr/share/perl5/vendor_perl/ExtUtils/CBuilder/Base.pm line 331. Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Socket + make -j4 Running Mkbootstrap for Socket () "/usr/bin/perl" "/usr/share/perl5/vendor_perl/ExtUtils/xsubpp" -noprototypes -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/builddir/build/BUILD/Socket-2.027/typemap' Socket.xs > Socket.xsc chmod 644 "Socket.bs" "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Socket.bs blib/arch/auto/Socket/Socket.bs 644 cp Socket.pm blib/lib/Socket.pm mv Socket.xsc Socket.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 -O2 -g -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC "-I/usr/lib64/perl5/CORE" Socket.c /bin/sh: loongarch64-redhat-linux-gnu-gcc: command not found make: *** [Makefile:334: Socket.o] Error 127 error: Bad exit status from /var/tmp/rpm-tmp.4z72YF (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.4z72YF (%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-Socket.spec