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/opa-ff.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-130131-46256/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/opa-ff.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 warning: Macro expanded in comment on line 13: %{version}/ \ # 070368dd2a2cc353b66351b989fb5fa75576f7de | xz > opa-ff-%{version}.tar.xz Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/opa-ff-10.11.0.2-1.0.2.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/opa-ff.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-130131-46256/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/opa-ff.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 warning: Macro expanded in comment on line 13: %{version}/ \ # 070368dd2a2cc353b66351b989fb5fa75576f7de | xz > opa-ff-%{version}.tar.xz Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.3O127a + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf opa-ff-10.11.0.2 + /usr/bin/xz -dc /builddir/build/SOURCES/opa-ff-10.11.0.2.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd opa-ff-10.11.0.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #8 (0001-Link-executables-with-pie.patch):' Patch #8 (0001-Link-executables-with-pie.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Esm/ib/src/linux/startup/fm_config/Makefile patching file Makerules/Maketargets.build + echo 'Patch #9 (0002-Lets-build-config-decide-C-optimization-flags.patch):' Patch #9 (0002-Lets-build-config-decide-C-optimization-flags.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Dsap/Makefile patching file IbaTools/stream/Makefile patching file opasadb/path_tools/cache/Makefile patching file opasadb/path_tools/dump/Makefile patching file opasadb/path_tools/exercise/Makefile patching file opasadb/path_tools/load/Makefile patching file opasadb/path_tools/perf/Makefile patching file opasadb/path_tools/query/Makefile patching file opasadb/path_tools/query_many/Makefile Patch #10 (0003-Replace-strdupa-with-strdup.patch): + echo 'Patch #10 (0003-Replace-strdupa-with-strdup.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file opasadb/path_tools/query/opa_osd_query.c + echo 'Patch #100 (0100-fix-BUILD_TARGET_OS_VENDOR-parse-failed.patch):' Patch #100 (0100-fix-BUILD_TARGET_OS_VENDOR-parse-failed.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file MakeTools/funcs-ext.sh Hunk #1 succeeded at 728 (offset 3 lines). Patch #1001 (1001-opa-ff-add-loongarch.patch): + echo 'Patch #1001 (1001-opa-ff-add-loongarch.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file MakeTools/funcs-ext.sh patching file OpenIb_Host/ff_build.sh Patch #1002 (1002-opa-ff-add-loongarch-makerule.patch): + echo 'Patch #1002 (1002-opa-ff-add-loongarch-makerule.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makerules/Target.LINUX.GNU.loongarch64 + sed -i -r -e 's/(release_C(C)?OPT_Flags\s*)=/\1?=/' Makerules/Target.LINUX.GNU.EM64T Makerules/Target.LINUX.GNU.IA32 Makerules/Target.LINUX.GNU.IA64 Makerules/Target.LINUX.GNU.MIPS64 Makerules/Target.LINUX.GNU.PPC64 Makerules/Target.LINUX.GNU.X86_64 Makerules/Target.LINUX.GNU.loongarch64 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.aWhLJX + umask 022 + cd /builddir/build/BUILD + cd opa-ff-10.11.0.2 + export 'CFLAGS=-O2 -g' + CFLAGS='-O2 -g' + export 'CXXFLAGS=-O2 -g' + CXXFLAGS='-O2 -g' + export 'release_COPT_Flags=-O2 -g' + release_COPT_Flags='-O2 -g' + export 'release_CCOPT_Flags=-O2 -g' + release_CCOPT_Flags='-O2 -g' + cd OpenIb_Host + OPA_FEATURE_SET=opa10 + ./ff_build.sh /builddir/build/BUILD Build target operating system set to LINUX Build target set to loongarch64 Setting os version to anolis 4.19.190-6.5.an8.loongarch64 (26=0). + tee build.res + echo Environment: Environment: + env BUILD_TARGET_OS_VERSION=4.19.190-6.5.an8.loongarch64 BUILD_PLATFORM_OS_VENDOR_VERSION=ES86 RPM_OS=linux LANG=C HISTCONTROL=ignoredups release_COPT_Flags=-O2 -g RPM_ARCH=loongarch64 HOSTNAME= OLDPWD=/builddir/build/BUILD/opa-ff-10.11.0.2 CONFIG_SITE=NONE BUILD_TARGET_OS=LINUX BUILD_ULPS=all TL_DIR=/builddir/build/BUILD/opa-ff-10.11.0.2 BUILD_PLATFORM_OS_VENDOR=anolis RPM_PACKAGE_RELEASE=1.0.2.an8 CFLAGS=-O2 -g RPM_BUILD_DIR=/builddir/build/BUILD WIND_BASE=/builddir/build/BUILD/opa-ff-10.11.0.2 BUILD_PLATFORM=LINUX RPM_LD_FLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld BUILD_SKIP_ULPS=none BUILD_TARGET_TOOLCHAIN=GNU USER=mockbuild CXXFLAGS=-O2 -g BUILD_TARGET_OS_ID=anolis.ES86-loongarch64 RPM_SOURCE_DIR=/builddir/build/SOURCES RELEASE_TAG=10_11_0_2_1 PWD=/builddir/build/BUILD/opa-ff-10.11.0.2/OpenIb_Host RPM_PACKAGE_VERSION=10.11.0.2 HOME=/builddir PYTHON_DISALLOW_AMBIGUOUS_VERSION=warn BUILD_TARGET_OS_VENDOR=anolis RPM_BUILD_ROOT=/builddir/build/BUILDROOT/opa-ff-10.11.0.2-1.0.2.an8.loongarch64 BUILD_WITH_STACK=OPENIB release_CCOPT_Flags=-O2 -g OPA_FEATURE_SET=opa10 WRS_HOST=/builddir/build/BUILD/opa-ff-10.11.0.2/host/unix RPM_BUILD_NCPUS=4 BUILD_CONFIG=release MAIL=/var/spool/mail/mockbuild SHELL=/bin/bash TERM=vt100 WRS_BIN=/builddir/build/BUILD/opa-ff-10.11.0.2/host/unix/bin BUILD_TARGET=loongarch64 RPM_PACKAGE_NAME=opa-ff LDENVFS= RPM_DOC_DIR=/usr/share/doc SHLVL=3 WIND_HOST_TYPE=unix PRODUCT=OPENIB_FF PROMPT_COMMAND=printf "\033]0;\007" LOGNAME=mockbuild PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig RPM_OPT_FLAGS=-O2 -g BUILD_TARGET_OS_VENDOR_VERSION=ES86 HISTSIZE=1000 LESSOPEN=||/usr/bin/lesspipe.sh %s _=/usr/bin/env + echo ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- + echo + ./rpm_runmake -B release Stack to build for: OPENIB (/usr) Building for loongarch64 release Sat Oct 8 10:16:32 CST 2022... BUILD_TARGET_OS_VERSION=4.19.190-6.5.an8.loongarch64 BUILD_PLATFORM_OS_VENDOR_VERSION=ES86 RPM_OS=linux LANG=C HISTCONTROL=ignoredups release_COPT_Flags=-O2 -g RPM_ARCH=loongarch64 HOSTNAME= OLDPWD=/builddir/build/BUILD/opa-ff-10.11.0.2 CONFIG_SITE=NONE BUILD_TARGET_OS=LINUX BUILD_ULPS=all TL_DIR=/builddir/build/BUILD/opa-ff-10.11.0.2 RPM_PACKAGE_RELEASE=1.0.2.an8 BUILD_PLATFORM_OS_VENDOR=anolis CFLAGS=-O2 -g RPM_BUILD_DIR=/builddir/build/BUILD WIND_BASE=/builddir/build/BUILD/opa-ff-10.11.0.2 RPM_LD_FLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld BUILD_PLATFORM=LINUX BUILD_SKIP_ULPS=none BUILD_TARGET_TOOLCHAIN=GNU USER=mockbuild CXXFLAGS=-O2 -g BUILD_TARGET_OS_ID=anolis.ES86-loongarch64 RPM_SOURCE_DIR=/builddir/build/SOURCES RELEASE_TAG=10_11_0_2_1 PWD=/builddir/build/BUILD/opa-ff-10.11.0.2/OpenIb_Host RPM_PACKAGE_VERSION=10.11.0.2 HOME=/builddir PYTHON_DISALLOW_AMBIGUOUS_VERSION=warn BUILD_TARGET_OS_VENDOR=anolis RPM_BUILD_ROOT=/builddir/build/BUILDROOT/opa-ff-10.11.0.2-1.0.2.an8.loongarch64 BUILD_WITH_STACK=OPENIB release_CCOPT_Flags=-O2 -g OPA_FEATURE_SET=opa10 WRS_HOST=/builddir/build/BUILD/opa-ff-10.11.0.2/host/unix OFED_STACK_PREFIX=/usr RPM_BUILD_NCPUS=4 BUILD_CONFIG=release MAIL=/var/spool/mail/mockbuild TERM=vt100 SHELL=/bin/bash PROJ_FILE_DIR=OpenIb_Host WRS_BIN=/builddir/build/BUILD/opa-ff-10.11.0.2/host/unix/bin RPM_PACKAGE_NAME=opa-ff BUILD_TARGET=loongarch64 LDENVFS= RPM_DOC_DIR=/usr/share/doc SHLVL=4 WIND_HOST_TYPE=unix PRODUCT=OPENIB_FF PROMPT_COMMAND=printf "\033]0;\007" LOGNAME=mockbuild PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig RPM_OPT_FLAGS=-O2 -g HISTSIZE=1000 BUILD_TARGET_OS_VENDOR_VERSION=ES86 LESSOPEN=||/usr/bin/lesspipe.sh %s _=/usr/bin/env Invalid BUILD_TARGET value was specified: loongarch64 Must be one of: ATOM MIPS I386 IA32 IA64 MIPS_BSP CYGWIN WIN32 X86_64 PPC PPC64 EM64T Please run the target shell function and try again. make: *** [/builddir/build/BUILD/opa-ff-10.11.0.2/Makerules/Rules.Common:699: badtarget] Error 1 Done LINUX loongarch64 Fast Fabric Sat Oct 8 10:16:32 CST 2022 ============================================================== Preping Files for LINUX loongarch64 Sat Oct 8 10:16:32 CST 2022... Invalid BUILD_TARGET value was specified: loongarch64 Must be one of: ATOM MIPS I386 IA32 IA64 MIPS_BSP CYGWIN WIN32 X86_64 PPC PPC64 EM64T Please run the target shell function and try again. make: *** [/builddir/build/BUILD/opa-ff-10.11.0.2/Makerules/Rules.Common:699: badtarget] Error 1 + set +x Build Errors: make: *** [/builddir/build/BUILD/opa-ff-10.11.0.2/Makerules/Rules.Common:699: badtarget] Error 1 FAILED Build, errors detected: OPENIB_FF loongarch64 release error: Bad exit status from /var/tmp/rpm-tmp.aWhLJX (%build) RPM build errors: Macro expanded in comment on line 13: %{version}/ \ # 070368dd2a2cc353b66351b989fb5fa75576f7de | xz > opa-ff-%{version}.tar.xz Bad exit status from /var/tmp/rpm-tmp.aWhLJX (%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/opa-ff.spec