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/fscrypt.spec'], chrootPath='/home/lib/mock/dist-ocs23-build-278997-26493/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=983gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/fscrypt.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/fscrypt-0.3.5-1.1.ocs23.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/fscrypt.spec'], chrootPath='/home/lib/mock/dist-ocs23-build-278997-26493/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=983gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/fscrypt.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.66YuHu + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf fscrypt-0.3.5 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/fscrypt-0.3.5.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd fscrypt-0.3.5 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/vendor.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.yV3PNb + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd fscrypt-0.3.5 + /usr/bin/make -O -j32 V=1 VERBOSE=1 'GO_FLAGS=-mod=vendor -buildmode=pie' PAM_MODULE_DIR=/usr/lib64/security PREFIX=/usr make: git: No such file or directory which: no protoc in (bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin) go build -mod=vendor -buildmode=pie --ldflags '-s -w -X "main.version=v0.3.5" -extldflags "-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1"' -trimpath -o bin/fscrypt ./cmd/fscrypt # golang.org/x/sys/unix vendor/golang.org/x/sys/unix/affinity_linux.go:14:35: undefined: _NCPUBITS vendor/golang.org/x/sys/unix/affinity_linux.go:17:25: undefined: cpuMask vendor/golang.org/x/sys/unix/ifreq_linux.go:27:24: undefined: ifreq vendor/golang.org/x/sys/unix/ifreq_linux.go:139:9: undefined: ifreq vendor/golang.org/x/sys/unix/ifreq_linux.go:139:25: undefined: SizeofPtr vendor/golang.org/x/sys/unix/sockcmsg_unix.go:34:9: undefined: Cmsghdr vendor/golang.org/x/sys/unix/syscall_linux.go:952:17: undefined: RawSockaddrNFCLLCP vendor/golang.org/x/sys/unix/ztypes_linux.go:23:11: undefined: Timespec vendor/golang.org/x/sys/unix/ztypes_linux.go:24:11: undefined: Timespec vendor/golang.org/x/sys/unix/ztypes_linux.go:28:11: undefined: Timeval vendor/golang.org/x/sys/unix/ztypes_linux.go:28:11: too many errors make: *** [Makefile:95: bin/fscrypt] Error 1 make: *** Waiting for unfinished jobs.... go build -mod=vendor -buildmode=pie --ldflags '-s -w -X "main.version=v0.3.5" -extldflags "-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1"' -trimpath -buildmode=c-shared -o bin/pam_fscrypt.so ./pam_fscrypt # golang.org/x/sys/unix vendor/golang.org/x/sys/unix/affinity_linux.go:14:35: undefined: _NCPUBITS vendor/golang.org/x/sys/unix/affinity_linux.go:17:25: undefined: cpuMask vendor/golang.org/x/sys/unix/ifreq_linux.go:27:24: undefined: ifreq vendor/golang.org/x/sys/unix/ifreq_linux.go:139:9: undefined: ifreq vendor/golang.org/x/sys/unix/ifreq_linux.go:139:25: undefined: SizeofPtr vendor/golang.org/x/sys/unix/sockcmsg_unix.go:34:9: undefined: Cmsghdr vendor/golang.org/x/sys/unix/syscall_linux.go:952:17: undefined: RawSockaddrNFCLLCP vendor/golang.org/x/sys/unix/ztypes_linux.go:23:11: undefined: Timespec vendor/golang.org/x/sys/unix/ztypes_linux.go:24:11: undefined: Timespec vendor/golang.org/x/sys/unix/ztypes_linux.go:28:11: undefined: Timeval vendor/golang.org/x/sys/unix/ztypes_linux.go:28:11: too many errors make: *** [Makefile:98: bin/pam_fscrypt.so] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.yV3PNb (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.yV3PNb (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/fscrypt.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/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/fscrypt.spec