Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/hcom.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-244686-83238/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/hcom.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: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/ubs-comm-1.0.0-21.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/hcom.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-244686-83238/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/hcom.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: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.CXQ3BU + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ubs-comm + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ubs-comm.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/mkdir -p ubs-comm + cd ubs-comm + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ubs-comm.tar.gz + 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.vRf1Ev + 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 ubs-comm + cd /builddir/build/BUILD/ubs-comm + export HCOM_BUILD_RPM=off + HCOM_BUILD_RPM=off + export HCOM_BUILD_UB=on + HCOM_BUILD_UB=on + export HCOM_BUILD_HTRACER=on + HCOM_BUILD_HTRACER=on + export HCOM_BUILD_MULTICAST=on + HCOM_BUILD_MULTICAST=on + bash -x build.sh + set -e + set -o pipefail +++ dirname build.sh ++ cd . ++ pwd + readonly HCOM_ROOT_DIR=/builddir/build/BUILD/ubs-comm + HCOM_ROOT_DIR=/builddir/build/BUILD/ubs-comm + readonly HCOM_BUILD_DIR=/builddir/build/BUILD/ubs-comm/tmp_build_dir + HCOM_BUILD_DIR=/builddir/build/BUILD/ubs-comm/tmp_build_dir ++ basename build.sh + readonly 'HCOM_LOG_TAG=[build.sh]' + HCOM_LOG_TAG='[build.sh]' HCOM ROOT: /builddir/build/BUILD/ubs-comm HCOM BUILD DIR: /builddir/build/BUILD/ubs-comm/tmp_build_dir HCOM INSTALL DIR: /builddir/build/BUILD/ubs-comm/dist/hcom HCOM BUILD TYPE: release + readonly HCOM_INSTALL_DIR=/builddir/build/BUILD/ubs-comm/dist/hcom + HCOM_INSTALL_DIR=/builddir/build/BUILD/ubs-comm/dist/hcom + echo 'HCOM ROOT: /builddir/build/BUILD/ubs-comm' + echo 'HCOM BUILD DIR: /builddir/build/BUILD/ubs-comm/tmp_build_dir' + echo 'HCOM INSTALL DIR: /builddir/build/BUILD/ubs-comm/dist/hcom' + HCOM_COMPONENT_VERSION=1.0.0 + HCOM_BUILD_TYPE= + HCOM_BUILD_TYPE=release + [[ 0 -gt 0 ]] + echo 'HCOM BUILD TYPE: release' + HCOM_BUILD_HW_CRC=off + echo '[build.sh] hcom build hw crc: off' + HCOM_BUILD_UB=on + echo '[build.sh] hcom build ub: on' + HCOM_BUILD_SERVICE=on + echo '[build.sh] hcom build service: on' + HCOM_BUILD_RDMA=on + echo '[build.sh] hcom build rdma: on' + HCOM_BUILD_SOCK=on + echo '[build.sh] hcom build sock: on' + HCOM_BUILD_SHM=on + echo '[build.sh] hcom build shm: on' + HCOM_BUILD_MULTICAST=on + echo '[build.sh] hcom build multicast: on' + HCOM_ENABLE_ARM_KP=off + echo '[build.sh] hcom enable arm kunpeng check: off' + HCOM_BUILD_JAVA_SDK=off + echo '[build.sh] hcom build java sdk: off' + HCOM_BUILD_TESTS=off + echo '[build.sh] hcom build tests: off' + BUILD_HCOM=ON + echo '[build.sh] build hcom: ON' + HCOM_BUILD_RPM=off + echo '[build.sh] build rpm: off' [build.sh] hcom build hw crc: off [build.sh] hcom build ub: on [build.sh] hcom build service: on [build.sh] hcom build rdma: on [build.sh] hcom build sock: on [build.sh] hcom build shm: on [build.sh] hcom build multicast: on [build.sh] hcom enable arm kunpeng check: off [build.sh] hcom build java sdk: off [build.sh] hcom build tests: off [build.sh] build hcom: ON [build.sh] build rpm: off + [[ off == \o\n ]] + [[ -n /builddir/build/BUILD/ubs-comm/tmp_build_dir ]] + rm -rf /builddir/build/BUILD/ubs-comm/tmp_build_dir + [[ -n /builddir/build/BUILD/ubs-comm/dist/hcom ]] + rm -rf /builddir/build/BUILD/ubs-comm/dist/hcom + cmake -S/builddir/build/BUILD/ubs-comm -B/builddir/build/BUILD/ubs-comm/tmp_build_dir -DBUILD_HCOM=ON -DCMAKE_INSTALL_PREFIX=/builddir/build/BUILD/ubs-comm/dist/hcom -DCMAKE_BUILD_TYPE=release -DBUILD_TESTS=off -DTEST_TOOL_INSTALL_PATH= -DBUILD_JAVA_SDK=off -DBUILD_WITH_HW_CRC=off -DBUILD_WITH_UB=on -DBUILD_WITH_RDMA=on -DBUILD_WITH_SOCK=on -DBUILD_WITH_SHM=on -DBUILD_WITH_MULTICAST=on -DENABLE_ARM_KP=off -DHCOM_COMPONENT_VERSION=1.0.0 CMake Error at /usr/share/cmake/Modules/CMakeDetermineCXXCompiler.cmake:48 (message): Could not find compiler set in environment variable CXX: g++. Call Stack (most recent call first): CMakeLists.txt:2 (project) -- Configuring incomplete, errors occurred! CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage error: Bad exit status from /var/tmp/rpm-tmp.vRf1Ev (%build) Bad exit status from /var/tmp/rpm-tmp.vRf1Ev (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/hcom.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 597, 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 x86_64 --nodeps /builddir/build/SPECS/hcom.spec