Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/toolbox.spec'], chrootPath='/var/lib/mock/dist-an8.10-build-515660-75132/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=976gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/toolbox.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/toolbox-0.0.99.5.1-1.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/toolbox.spec'], chrootPath='/var/lib/mock/dist-an8.10-build-515660-75132/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=976gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/toolbox.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.O1aC7n + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf toolbox-0.0.99.5.1 + /usr/bin/xz -dc /builddir/build/SOURCES/toolbox-0.0.99.5.1-vendored.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd toolbox-0.0.99.5.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #100 (toolbox-Make-the-build-flags-match-RHEL-s-gobuild.patch):' Patch #100 (toolbox-Make-the-build-flags-match-RHEL-s-gobuild.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/go-build-wrapper Patch #102 (toolbox-Add-migration-paths-for-coreos-toolbox-users.patch): + echo 'Patch #102 (toolbox-Add-migration-paths-for-coreos-toolbox-users.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/cmd/run.go patching file test/system/002-help.bats patching file test/system/100-root.bats ++ pwd + GOBUILDDIR=/builddir/build/BUILD/toolbox-0.0.99.5.1/_build ++ pwd + GOSOURCEDIR=/builddir/build/BUILD/toolbox-0.0.99.5.1 + [[ ! -e /builddir/build/BUILD/toolbox-0.0.99.5.1/_build/bin ]] + install -m 0755 -vd /builddir/build/BUILD/toolbox-0.0.99.5.1/_build/bin install: creating directory '/builddir/build/BUILD/toolbox-0.0.99.5.1/_build' install: creating directory '/builddir/build/BUILD/toolbox-0.0.99.5.1/_build/bin' + [[ ! -e /builddir/build/BUILD/toolbox-0.0.99.5.1/_build/src/github.com/containers/toolbox ]] ++ dirname /builddir/build/BUILD/toolbox-0.0.99.5.1/_build/src/github.com/containers/toolbox + install -m 0755 -vd /builddir/build/BUILD/toolbox-0.0.99.5.1/_build/src/github.com/containers install: creating directory '/builddir/build/BUILD/toolbox-0.0.99.5.1/_build/src' install: creating directory '/builddir/build/BUILD/toolbox-0.0.99.5.1/_build/src/github.com' install: creating directory '/builddir/build/BUILD/toolbox-0.0.99.5.1/_build/src/github.com/containers' + ln -fs /builddir/build/BUILD/toolbox-0.0.99.5.1 /builddir/build/BUILD/toolbox-0.0.99.5.1/_build/src/github.com/containers/toolbox + cd /builddir/build/BUILD/toolbox-0.0.99.5.1/_build/src/github.com/containers/toolbox + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.oBserV + umask 022 + cd /builddir/build/BUILD + cd toolbox-0.0.99.5.1 + export GO111MODULE=off + GO111MODULE=off ++ pwd + GOBUILDDIR=/builddir/build/BUILD/toolbox-0.0.99.5.1/_build + export GOPATH=/builddir/build/BUILD/toolbox-0.0.99.5.1/_build:/usr/share/gocode + GOPATH=/builddir/build/BUILD/toolbox-0.0.99.5.1/_build:/usr/share/gocode + export 'CGO_CFLAGS=-O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64' + CGO_CFLAGS='-O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64' + ln -s src/cmd cmd + ln -s src/pkg pkg + ln -s src/vendor vendor + CFLAGS='-O2 -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 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + /usr/bin/meson --buildtype=plain --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/libexec --bindir=/usr/bin --sbindir=/usr/sbin --includedir=/usr/include --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localedir=/usr/share/locale --sysconfdir=/etc --localstatedir=/var --sharedstatedir=/var/lib --wrap-mode=nodownload --auto-features=enabled . loongarch64-redhat-linux-gnu -Dfish_completions_dir=/usr/share/fish/vendor_completions.d -Dmigration_path_for_coreos_toolbox=true -Dprofile_dir=/etc/profile.d -Dtmpfiles_dir=/usr/lib/tmpfiles.d -Dzsh_completions_dir=/usr/share/zsh/site-functions The Meson build system Version: 0.63.3 Source dir: /builddir/build/BUILD/toolbox-0.0.99.5.1 Build dir: /builddir/build/BUILD/toolbox-0.0.99.5.1/loongarch64-redhat-linux-gnu Build type: native build Project name: toolbox Project version: 0.0.99.5.1 C compiler for the host machine: cc (gcc 8.5.0 "cc (GCC) 8.5.0 20210514 (Anolis 8.5.0-23.0.1)") C linker for the host machine: cc ld.bfd 2.30-128 Host machine cpu family: loongarch64 Host machine cpu: loongarch64 Compiler for C supports arguments -print-file-name=libc.so: YES Has header "shadow/subid.h" : YES Library subid found: YES Program go found: YES (/usr/bin/go) Program go-md2man found: YES (/usr/bin/go-md2man) Program bats found: NO Program codespell found: NO Program htpasswd found: NO Program openssl found: YES (/usr/bin/openssl) Program podman found: NO Program shellcheck found: NO Program skopeo found: NO Found pkg-config: /usr/bin/pkg-config (1.4.2) Run-time dependency bash-completion found: YES 2.7 Run-time dependency systemd found: YES 239 Program go-build-wrapper found: YES (/builddir/build/BUILD/toolbox-0.0.99.5.1/src/go-build-wrapper) Program meson_generate_completions.py found: YES (/usr/bin/python3.8 /builddir/build/BUILD/toolbox-0.0.99.5.1/src/meson_generate_completions.py) Program meson_go_fmt.py found: YES (/usr/bin/python3.8 /builddir/build/BUILD/toolbox-0.0.99.5.1/src/meson_go_fmt.py) src/meson.build:57:2: ERROR: Problem encountered: Please specify dynamic linker for: loongarch64 (little endian) A full log can be found at /builddir/build/BUILD/toolbox-0.0.99.5.1/loongarch64-redhat-linux-gnu/meson-logs/meson-log.txt error: Bad exit status from /var/tmp/rpm-tmp.oBserV (%build) Bad exit status from /var/tmp/rpm-tmp.oBserV (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/toolbox.spec\n', 1)] 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 598, 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 --noclean --target loongarch64 --nodeps /builddir/build/SPECS/toolbox.spec