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/dyninst.spec'], chrootPath='/var/lib/mock/dist-an8-loongarch64-build-52949-25201/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/dyninst.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/dyninst-10.2.1-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/dyninst.spec'], chrootPath='/var/lib/mock/dist-an8-loongarch64-build-52949-25201/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/dyninst.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.6eH3Hy + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf dyninst-10.2.1 + /usr/bin/mkdir -p dyninst-10.2.1 + cd dyninst-10.2.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/dyninst-10.2.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + cd dyninst-10.2.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/testsuite-10.1.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (dyninst-gcc11.patch):' Patch #1 (dyninst-gcc11.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .gcc11 --fuzz=0 patching file testsuite-10.1.0/src/dyninst/test1_3.C Patch #2 (dyninst-10.2.1-dbid.patch): + echo 'Patch #2 (dyninst-10.2.1-dbid.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .dbid --fuzz=0 patching file dyninst-10.2.1/cmake/ElfUtils.cmake patching file dyninst-10.2.1/cmake/Modules/FindLibDebuginfod.cmake patching file dyninst-10.2.1/cmake/options.cmake Hunk #1 succeeded at 15 (offset -1 lines). patching file dyninst-10.2.1/elf/CMakeLists.txt patching file dyninst-10.2.1/elf/src/Elf_X.C Patch #3 (testsuite-10.1.0-gettid.patch): + echo 'Patch #3 (testsuite-10.1.0-gettid.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .gettid --fuzz=0 patching file testsuite-10.1.0/src/proccontrol/pcontrol_mutatee_tools.c + echo 'Patch #4 (testsuite-10.1.0-386.patch):' Patch #4 (testsuite-10.1.0-386.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .386 --fuzz=0 patching file testsuite-10.1.0/CMakeLists.txt patching file testsuite-10.1.0/src/instruction/test_instruction_farcall.C Patch #5 (testsuite-10.1.0-throw.patch): + echo 'Patch #5 (testsuite-10.1.0-throw.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .throw --fuzz=0 patching file testsuite-10.1.0/src/test_lib.h patching file testsuite-10.1.0/src/test_lib.C Patch #6 (dyninst-10.2.1-tbb.patch): + echo 'Patch #6 (dyninst-10.2.1-tbb.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .tbb --fuzz=0 patching file dyninst-10.2.1/cmake/ThreadingBuildingBlocks.cmake + sed -i.cotire -e 's/USE_COTIRE true/USE_COTIRE false/' dyninst-10.2.1/cmake/shared.cmake + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.YHAuyT + umask 022 + cd /builddir/build/BUILD + cd dyninst-10.2.1 + cd dyninst-10.2.1 + 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/cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DENABLE_STATIC_LIBS=1 -DENABLE_DEBUGINFOD=1 -DINSTALL_LIB_DIR:PATH=/usr/lib64/dyninst -DINSTALL_INCLUDE_DIR:PATH=/usr/include/dyninst -DINSTALL_CMAKE_DIR:PATH=/usr/lib64/cmake/Dyninst -DCMAKE_BUILD_TYPE=None -DCMAKE_SKIP_RPATH:BOOL=YES . -- The C compiler identification is GNU 8.3.0 -- The CXX compiler identification is GNU 8.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:273 (message): The package name passed to `find_package_handle_standard_args` (Thread_Db) does not match the name of the calling package (ThreadDB). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): cmake/Modules/FindThreadDB.cmake:47 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:27 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Found Thread_Db: /usr/lib64/libthread_db.so -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Boost version: 1.66.0 -- Found the following Boost libraries: -- atomic -- chrono -- date_time -- filesystem -- system -- thread -- timer -- Boost includes: /usr/include -- Boost library dirs: /usr/lib64 -- Boost thread library: /usr/lib64/libboost_thread.so -- Boost libraries: /usr/lib64/libboost_atomic.so;/usr/lib64/libboost_chrono.so;/usr/lib64/libboost_date_time.so;/usr/lib64/libboost_filesystem.so;/usr/lib64/libboost_system.so;/usr/lib64/libboost_thread.so;-lpthread;/usr/lib64/libboost_timer.so;-lpthread -- Searching for tbb_preview... -- Hints: /usr/lib /usr -- Searching for tbbmalloc_proxy... -- Hints: /usr/lib /usr -- Found /usr/lib64/libtbbmalloc_proxy.so -- Searching for tbbmalloc... -- Hints: /usr/lib /usr -- Found /usr/lib64/libtbbmalloc.so -- Searching for tbb... -- Hints: /usr/lib /usr -- Found /usr/lib64/libtbb.so -- Found TBB: /usr/include (found suitable version "2018.2", minimum required is "2018.0") found components: tbb tbbmalloc tbbmalloc_proxy -- TBB include directory: /usr/include -- TBB library directory: /usr/lib64;/usr/lib64;/usr/lib64 -- TBB libraries: /usr/lib64/libtbbmalloc_proxy.so;/usr/lib64/libtbbmalloc.so;/usr/lib64/libtbb.so -- TBB definitions: -- Found LibElf: /usr/lib64/libelf.so.1 (found suitable version "0.182", minimum required is "0.179") -- Found LibDwarf: /usr/lib64/libdw.so.1 (found suitable version "0.182", minimum required is "0.179") -- Found LibDebuginfod: /usr/include/elfutils (found suitable version "0.182", minimum required is "0.179") -- ElfUtils includes: /usr/include;/usr/include/elfutils;/usr/include/elfutils -- ElfUtils library dirs: /usr/lib64;/usr/lib64/elfutils;/usr/lib64;/usr/lib64;/usr/lib64/elfutils -- ElfUtils libraries: /usr/lib64/libelf.so.1;/usr/lib64/libdw.so.1;/usr/lib64/libdebuginfod.so.1 -- -- Input platform: -- -- Attempting to automatically identify platform: CMake Error at cmake/platform_unix.cmake:36 (list): list sub-command FIND requires three arguments. Call Stack (most recent call first): cmake/platform.cmake:2 (include) cmake/shared.cmake:84 (include) CMakeLists.txt:34 (include) CMake Error at cmake/cap_arch_def.cmake:150 (message): Unknown platform: Call Stack (most recent call first): cmake/shared.cmake:88 (include) CMakeLists.txt:34 (include) -- Configuring incomplete, errors occurred! See also "/builddir/build/BUILD/dyninst-10.2.1/dyninst-10.2.1/CMakeFiles/CMakeOutput.log". See also "/builddir/build/BUILD/dyninst-10.2.1/dyninst-10.2.1/CMakeFiles/CMakeError.log". error: Bad exit status from /var/tmp/rpm-tmp.YHAuyT (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.YHAuyT (%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/dyninst.spec