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/valgrind.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-187061-60671/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/valgrind.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/valgrind-3.19.0-3.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/valgrind.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-187061-60671/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/valgrind.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.i4nfWX + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf valgrind-3.19.0 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/valgrind-3.19.0.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd valgrind-3.19.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (valgrind-3.9.0-cachegrind-improvements.patch):' Patch #1 (valgrind-3.9.0-cachegrind-improvements.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file cachegrind/cg_sim.c Hunk #1 succeeded at 40 (offset -2 lines). Hunk #2 succeeded at 73 (offset -2 lines). Patch #2 (valgrind-3.9.0-ldso-supp.patch): + echo 'Patch #2 (valgrind-3.9.0-ldso-supp.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file glibc-2.X.supp.in Patch #3 (valgrind-3.16.0-some-stack-protector.patch): + echo 'Patch #3 (valgrind-3.16.0-some-stack-protector.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file auxprogs/Makefile.am patching file cachegrind/Makefile.am patching file configure.ac Hunk #1 succeeded at 2643 (offset 291 lines). patching file coregrind/Makefile.am Hunk #1 succeeded at 60 (offset 5 lines). Hunk #2 succeeded at 105 (offset 11 lines). Patch #4 (valgrind-3.16.0-some-Wl-z-now.patch): + echo 'Patch #4 (valgrind-3.16.0-some-Wl-z-now.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file auxprogs/Makefile.am patching file cachegrind/Makefile.am patching file coregrind/Makefile.am Hunk #1 succeeded at 62 (offset 5 lines). Hunk #2 succeeded at 107 (offset 11 lines). Patch #5 (valgrind-3.19.0-ld-so-strncmp.patch): + echo 'Patch #5 (valgrind-3.19.0-ld-so-strncmp.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file shared/vg_replace_strmem.c + echo 'Patch #6 (valgrind-3.19.0-s390x-memmem.patch):' Patch #6 (valgrind-3.19.0-s390x-memmem.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file shared/vg_replace_strmem.c patching file memcheck/tests/Makefile.am Hunk #2 succeeded at 220 (offset -1 lines). Hunk #3 succeeded at 418 (offset -1 lines). patching file memcheck/tests/filter_memmem patching file memcheck/tests/memmem.c patching file memcheck/tests/memmem.stderr.exp patching file memcheck/tests/memmem.vgtest + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.wlof80 + umask 022 + cd /builddir/build/BUILD + cd valgrind-3.19.0 + ./autogen.sh running: aclocal running: autoheader running: automake -a running: autoconf ++ echo ' -O2 -g ' ++ sed 's/ -fstack-protector\([-a-z]*\) / / g;s/ -O2 / /g;' + CFLAGS=' -g ' + export CFLAGS ++ echo ' -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' ++ sed 's/ -Wl,-z,now / / g;' + LDFLAGS=' -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' + export LDFLAGS + CFLAGS=' -g ' + export CFLAGS + CXXFLAGS='-O2 -g' + export CXXFLAGS + FFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS=' -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=loongarch64-Anolis-linux --host=loongarch64-Anolis-linux --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-mpicc=/bin/false --enable-only64bit GDB=/usr/bin/gdb checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether ln -s works... yes checking for loongarch64-Anolis-linux-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for loongarch64-Anolis-linux-g++... no checking for loongarch64-Anolis-linux-c++... no checking for loongarch64-Anolis-linux-gpp... no checking for loongarch64-Anolis-linux-aCC... no checking for loongarch64-Anolis-linux-CC... no checking for loongarch64-Anolis-linux-cxx... no checking for loongarch64-Anolis-linux-cc++... no checking for loongarch64-Anolis-linux-cl.exe... no checking for loongarch64-Anolis-linux-FCC... no checking for loongarch64-Anolis-linux-KCC... no checking for loongarch64-Anolis-linux-RCC... no checking for loongarch64-Anolis-linux-xlC_r... no checking for loongarch64-Anolis-linux-xlC... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... none checking for loongarch64-Anolis-linux-ranlib... no checking for ranlib... ranlib checking for gcc-ranlib... /usr/bin/gcc-ranlib checking for a sed that does not truncate output... /usr/bin/sed checking for ar... /usr/bin/ar checking for gcc-ar... /usr/bin/gcc-ar checking for perl... /usr/bin/perl checking for gdb... /usr/bin/gdb checking dependency style of gcc... none checking for diff -u... yes checking for gcc option to accept ISO C99... none needed checking for a supported version of gcc... ok (8) checking build system type... loongarch64-Anolis-linux-gnu checking host system type... loongarch64-Anolis-linux-gnu checking for a supported CPU... no (loongarch64) configure: error: Unsupported host architecture. Sorry error: Bad exit status from /var/tmp/rpm-tmp.wlof80 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.wlof80 (%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/valgrind.spec