Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-cocotb.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1682106029.704764/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 x86_64 --nodeps /builddir/build/SPECS/python-cocotb.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: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-cocotb-1.7.2-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-cocotb.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1682106029.704764/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 x86_64 --nodeps /builddir/build/SPECS/python-cocotb.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: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-cocotb-1.7.2-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-cocotb.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1682106029.704764/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 x86_64 --nodeps /builddir/build/SPECS/python-cocotb.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: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.AZ6xxf + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cocotb-1.7.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/cocotb-1.7.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd cocotb-1.7.2 + /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.nYle99 + umask 022 + cd /builddir/build/BUILD + cd cocotb-1.7.2 + 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 -m64 -mtune=generic -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-x86_64-3.9 creating build/lib.linux-x86_64-3.9/cocotb copying cocotb/outcomes.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/queue.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/clock.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/config.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/utils.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/triggers.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/binary.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/_sim_versions.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/__init__.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/runner.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/handle.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/decorators.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/_version.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/regression.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/ipython_support.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/result.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/xunit_reporter.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/wavedrom.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/memdebug.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/_deprecation.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/ANSI.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/_py_compat.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/log.py -> build/lib.linux-x86_64-3.9/cocotb copying cocotb/scheduler.py -> build/lib.linux-x86_64-3.9/cocotb creating build/lib.linux-x86_64-3.9/pygpi copying pygpi/__init__.py -> build/lib.linux-x86_64-3.9/pygpi copying pygpi/entry.py -> build/lib.linux-x86_64-3.9/pygpi creating build/lib.linux-x86_64-3.9/cocotb/_vendor copying cocotb/_vendor/__init__.py -> build/lib.linux-x86_64-3.9/cocotb/_vendor copying cocotb/_vendor/distutils_version.py -> build/lib.linux-x86_64-3.9/cocotb/_vendor creating build/lib.linux-x86_64-3.9/cocotb/types copying cocotb/types/array.py -> build/lib.linux-x86_64-3.9/cocotb/types copying cocotb/types/logic_array.py -> build/lib.linux-x86_64-3.9/cocotb/types copying cocotb/types/__init__.py -> build/lib.linux-x86_64-3.9/cocotb/types copying cocotb/types/logic.py -> build/lib.linux-x86_64-3.9/cocotb/types copying cocotb/types/range.py -> build/lib.linux-x86_64-3.9/cocotb/types creating build/lib.linux-x86_64-3.9/cocotb/share creating build/lib.linux-x86_64-3.9/cocotb/share/makefiles copying cocotb/share/makefiles/Makefile.deprecations -> build/lib.linux-x86_64-3.9/cocotb/share/makefiles copying cocotb/share/makefiles/Makefile.inc -> build/lib.linux-x86_64-3.9/cocotb/share/makefiles copying cocotb/share/makefiles/Makefile.sim -> build/lib.linux-x86_64-3.9/cocotb/share/makefiles creating build/lib.linux-x86_64-3.9/cocotb/share/makefiles/simulators copying cocotb/share/makefiles/simulators/Makefile.riviera -> build/lib.linux-x86_64-3.9/cocotb/share/makefiles/simulators copying cocotb/share/makefiles/simulators/Makefile.ius -> build/lib.linux-x86_64-3.9/cocotb/share/makefiles/simulators copying cocotb/share/makefiles/simulators/Makefile.icarus -> build/lib.linux-x86_64-3.9/cocotb/share/makefiles/simulators copying cocotb/share/makefiles/simulators/Makefile.xcelium -> build/lib.linux-x86_64-3.9/cocotb/share/makefiles/simulators copying cocotb/share/makefiles/simulators/Makefile.cvc -> build/lib.linux-x86_64-3.9/cocotb/share/makefiles/simulators copying cocotb/share/makefiles/simulators/Makefile.vcs -> build/lib.linux-x86_64-3.9/cocotb/share/makefiles/simulators copying cocotb/share/makefiles/simulators/Makefile.modelsim -> build/lib.linux-x86_64-3.9/cocotb/share/makefiles/simulators copying cocotb/share/makefiles/simulators/Makefile.verilator -> build/lib.linux-x86_64-3.9/cocotb/share/makefiles/simulators copying cocotb/share/makefiles/simulators/Makefile.questa -> build/lib.linux-x86_64-3.9/cocotb/share/makefiles/simulators copying cocotb/share/makefiles/simulators/Makefile.activehdl -> build/lib.linux-x86_64-3.9/cocotb/share/makefiles/simulators copying cocotb/share/makefiles/simulators/Makefile.ghdl -> build/lib.linux-x86_64-3.9/cocotb/share/makefiles/simulators creating build/lib.linux-x86_64-3.9/cocotb/share/include copying cocotb/share/include/gpi.h -> build/lib.linux-x86_64-3.9/cocotb/share/include copying cocotb/share/include/py_gpi_logging.h -> build/lib.linux-x86_64-3.9/cocotb/share/include copying cocotb/share/include/exports.h -> build/lib.linux-x86_64-3.9/cocotb/share/include copying cocotb/share/include/gpi_logging.h -> build/lib.linux-x86_64-3.9/cocotb/share/include copying cocotb/share/include/embed.h -> build/lib.linux-x86_64-3.9/cocotb/share/include copying cocotb/share/include/vpi_user_ext.h -> build/lib.linux-x86_64-3.9/cocotb/share/include copying cocotb/share/include/cocotb_utils.h -> build/lib.linux-x86_64-3.9/cocotb/share/include copying cocotb/share/include/vhpi_user_ext.h -> build/lib.linux-x86_64-3.9/cocotb/share/include creating build/lib.linux-x86_64-3.9/cocotb/share/def copying cocotb/share/def/aldec.def -> build/lib.linux-x86_64-3.9/cocotb/share/def copying cocotb/share/def/icarus.def -> build/lib.linux-x86_64-3.9/cocotb/share/def copying cocotb/share/def/.gitignore -> build/lib.linux-x86_64-3.9/cocotb/share/def copying cocotb/share/def/ghdl.def -> build/lib.linux-x86_64-3.9/cocotb/share/def copying cocotb/share/def/modelsim.def -> build/lib.linux-x86_64-3.9/cocotb/share/def copying cocotb/share/def/README.md -> build/lib.linux-x86_64-3.9/cocotb/share/def creating build/lib.linux-x86_64-3.9/cocotb/share/lib creating build/lib.linux-x86_64-3.9/cocotb/share/lib/verilator copying cocotb/share/lib/verilator/verilator.cpp -> build/lib.linux-x86_64-3.9/cocotb/share/lib/verilator running build_ext building 'cocotb/libs/libgpilog' extension creating build/temp.linux-x86_64-3.9 creating build/temp.linux-x86_64-3.9/cocotb creating build/temp.linux-x86_64-3.9/cocotb/libs creating build/temp.linux-x86_64-3.9/cocotb/libs/libgpilog creating build/temp.linux-x86_64-3.9/cocotb/libs/libgpilog/cocotb creating build/temp.linux-x86_64-3.9/cocotb/libs/libgpilog/cocotb/share creating build/temp.linux-x86_64-3.9/cocotb/libs/libgpilog/cocotb/share/lib creating build/temp.linux-x86_64-3.9/cocotb/libs/libgpilog/cocotb/share/lib/gpi_log gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -D_GNU_SOURCE -fPIC -fwrapv -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DGPILOG_EXPORTS= -D__STDC_FORMAT_MACROS= -Icocotb/share/include -Icocotb -I/usr/include/python3.9 -c cocotb/share/lib/gpi_log/gpi_logging.cpp -o build/temp.linux-x86_64-3.9/cocotb/libs/libgpilog/cocotb/share/lib/gpi_log/gpi_logging.o -std=c++11 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wcast-qual -Wwrite-strings -Wconversion -Wno-missing-field-initializers -Wnon-virtual-dtor -Woverloaded-virtual -flto creating build/lib.linux-x86_64-3.9/cocotb/libs g++ -shared -g -g -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection build/temp.linux-x86_64-3.9/cocotb/libs/libgpilog/cocotb/share/lib/gpi_log/gpi_logging.o -Lbuild/lib.linux-x86_64-3.9/cocotb/libs -L/usr/lib64 -o build/lib.linux-x86_64-3.9/cocotb/libs/libgpilog.so -flto -static-libstdc++ -Wl,-rpath,$ORIGIN /usr/bin/ld: cannot find -lstdc++ collect2: error: ld returned 1 exit status error: command '/usr/bin/g++' failed with exit code 1 error: Bad exit status from /var/tmp/rpm-tmp.nYle99 (%build) Bad exit status from /var/tmp/rpm-tmp.nYle99 (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-cocotb.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/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 x86_64 --nodeps /builddir/build/SPECS/python-cocotb.spec