Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-drgn.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1687264673.623437/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-drgn.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/python-drgn-0.0.22-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-drgn.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1687264673.623437/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-drgn.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/python-drgn-0.0.22-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python-drgn.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1687264673.623437/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python-drgn.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.QyJUm7 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf drgn-0.0.22 + /usr/bin/gzip -dc /builddir/build/SOURCES/drgn-0.0.22.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd drgn-0.0.22 + /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.ScT8mB + umask 022 + cd /builddir/build/BUILD + cd drgn-0.0.22 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib.linux-aarch64-3.9 creating build/lib.linux-aarch64-3.9/drgn copying drgn/__main__.py -> build/lib.linux-aarch64-3.9/drgn copying drgn/__init__.py -> build/lib.linux-aarch64-3.9/drgn creating build/lib.linux-aarch64-3.9/drgn/internal copying drgn/internal/rlcompleter.py -> build/lib.linux-aarch64-3.9/drgn/internal copying drgn/internal/version.py -> build/lib.linux-aarch64-3.9/drgn/internal copying drgn/internal/cli.py -> build/lib.linux-aarch64-3.9/drgn/internal copying drgn/internal/__init__.py -> build/lib.linux-aarch64-3.9/drgn/internal creating build/lib.linux-aarch64-3.9/drgn/helpers copying drgn/helpers/__init__.py -> build/lib.linux-aarch64-3.9/drgn/helpers creating build/lib.linux-aarch64-3.9/drgn/helpers/common copying drgn/helpers/common/memory.py -> build/lib.linux-aarch64-3.9/drgn/helpers/common copying drgn/helpers/common/stack.py -> build/lib.linux-aarch64-3.9/drgn/helpers/common copying drgn/helpers/common/type.py -> build/lib.linux-aarch64-3.9/drgn/helpers/common copying drgn/helpers/common/__init__.py -> build/lib.linux-aarch64-3.9/drgn/helpers/common copying drgn/helpers/common/format.py -> build/lib.linux-aarch64-3.9/drgn/helpers/common creating build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/idr.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/tcp.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/kconfig.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/printk.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/sched.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/block.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/mm.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/nodemask.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/radixtree.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/user.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/fs.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/xarray.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/percpu.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/list_nulls.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/rbtree.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/boot.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/tc.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/cpumask.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/device.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/pid.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/llist.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/kernfs.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/bpf.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/cgroup.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/__init__.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/bitops.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/net.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/slab.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/helpers/linux/list.py -> build/lib.linux-aarch64-3.9/drgn/helpers/linux copying drgn/../_drgn.pyi -> build/lib.linux-aarch64-3.9/drgn/.. copying drgn/py.typed -> build/lib.linux-aarch64-3.9/drgn running build_ext creating build/temp.linux-aarch64-3.9 checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports the include directive... yes (GNU style) checking whether make supports nested variables... yes checking dependency style of gcc... gcc3 checking whether make supports nested variables... (cached) yes checking for ar... ar checking the archiver (ar) interface... ar checking build system type... aarch64-unknown-linux-gnu checking host system type... aarch64-unknown-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for file... file checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking whether /usr/bin/python3 version is >= 3.6... yes checking for /usr/bin/python3 version... 3.9 checking for /usr/bin/python3 platform... linux checking for GNU default /usr/bin/python3 prefix... ${prefix} checking for GNU default /usr/bin/python3 exec_prefix... ${exec_prefix} checking for /usr/bin/python3 script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.9/site-packages checking for /usr/bin/python3 extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib64/python3.9/site-packages checking for /usr/bin/python3 development headers... yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for elfutils... no configure: error: Package requirements (libelf >= 0.165 libdw >= 0.165) were not met: Package 'libelf', required by 'virtual:world', not found Package 'libdw', required by 'virtual:world', not found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables elfutils_CFLAGS and elfutils_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. Traceback (most recent call last): File "/builddir/build/BUILD/drgn-0.0.22/setup.py", line 442, in setup( File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/usr/lib64/python3.9/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib64/python3.9/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/lib64/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/lib64/python3.9/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/usr/lib64/python3.9/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib64/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/builddir/build/BUILD/drgn-0.0.22/setup.py", line 99, in run self.make() File "/builddir/build/BUILD/drgn-0.0.22/setup.py", line 95, in make self._run_configure() File "/builddir/build/BUILD/drgn-0.0.22/setup.py", line 76, in _run_configure subprocess.check_call( File "/usr/lib64/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['../../libdrgn/configure', '--disable-static', '--enable-python']' returned non-zero exit status 1. error: Bad exit status from /var/tmp/rpm-tmp.ScT8mB (%build) Bad exit status from /var/tmp/rpm-tmp.ScT8mB (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python-drgn.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/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 --target aarch64 --nodeps /builddir/build/SPECS/python-drgn.spec