Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/pypy3.10.spec'], chrootPath='/var/lib/mock/f40-build-740649-109782/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=1209600uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/pypy3.10.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: extra tokens at the end of %endif directive in line 751: %endif # with selftests Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1699920000 Wrote: /builddir/build/SRPMS/pypy3.10-7.3.13-1.3.10.0.riscv64.fc40.src.rpm RPM build warnings: extra tokens at the end of %endif directive in line 751: %endif # with selftests Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/pypy3.10.spec'], chrootPath='/var/lib/mock/f40-build-740649-109782/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=1209600uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/pypy3.10.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: extra tokens at the end of %endif directive in line 751: %endif # with selftests Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1699920000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.jTzCHH + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pypy3.10-v7.3.13-src + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/pypy3.10-v7.3.13-src.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd pypy3.10-v7.3.13-src + rm -rf /builddir/build/BUILD/pypy3.10-v7.3.13-src-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/pypy3.10-v7.3.13-src-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'pypy3.10-7.3.13 base' + /usr/bin/git checkout --track -b rpm-build Switched to a new branch 'rpm-build' branch 'rpm-build' set up to track 'master'. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/001-nevertty.patch + /usr/bin/git apply --index --reject -p1 - Checking patch rpython/tool/ansi_print.py... Applied patch rpython/tool/ansi_print.py cleanly. + /usr/bin/git commit -q -m 001-nevertty.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/006-always-log-stdout.patch + /usr/bin/git apply --index --reject -p1 - Checking patch rpython/translator/platform/__init__.py... Hunk #1 succeeded at 143 (offset 3 lines). Applied patch rpython/translator/platform/__init__.py cleanly. + /usr/bin/git commit -q -m 006-always-log-stdout.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/007-remove-startup-message.patch + /usr/bin/git apply --index --reject -p1 - Checking patch lib_pypy/_pypy_interact.py... Applied patch lib_pypy/_pypy_interact.py cleanly. + /usr/bin/git commit -q -m 007-remove-startup-message.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/009-add-libxcrypt-support.patch + /usr/bin/git apply --index --reject -p1 - Checking patch pypy/module/crypt/interp_crypt.py... Applied patch pypy/module/crypt/interp_crypt.py cleanly. + /usr/bin/git commit -q -m 009-add-libxcrypt-support.patch --author 'rpm-build ' + rm lib-python/3/ensurepip/_bundled/pip-23.0.1-py3-none-any.whl lib-python/3/ensurepip/_bundled/setuptools-65.5.0-py3-none-any.whl + echo 'build_time_vars['\''WHEEL_PKG_DIR'\''] = '\''/usr/share/python-wheels'\''' + find -name '*.py' -exec sed -i -r -e 's@/usr/(local/)?bin/(env )?python(2|3)?@/usr/bin/python2@' '{}' ';' + for f in rpython/translator/goal/bpnn.py + sed -e '/^#!/Q 0' -e 'Q 1' rpython/translator/goal/bpnn.py + sed -i 1d rpython/translator/goal/bpnn.py + chmod a-x rpython/translator/goal/bpnn.py + find lib-python/3 lib_pypy -name '*.py' -exec sed -r -i '1s@^#!\s*/usr/bin.*(python|pypy).*@#!/usr/bin/pypy3.10@' '{}' ';' + rm lib-python/3/idlelib/idle.bat + ln -s lib_pypy/cffi/_pycparser pycparser + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.iD9aBJ + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd pypy3.10-v7.3.13-src + free total used free shared buff/cache available Mem: 16356080 643352 2283300 420 13720512 15712728 Swap: 4194300 39424 4154876 + BuildPyPy pypy3 -O2 -------------------------------------------------------------- -------------------------------------------------------------- -------------------------------------------------------------- STARTING BUILD OF: pypy3 -------------------------------------------------------------- -------------------------------------------------------------- -------------------------------------------------------------- + ExeName=pypy3 + Options=-O2 + echo -------------------------------------------------------------- + echo -------------------------------------------------------------- + echo -------------------------------------------------------------- + echo 'STARTING BUILD OF: pypy3' + echo -------------------------------------------------------------- + echo -------------------------------------------------------------- + echo -------------------------------------------------------------- + pushd pypy/goal ++ echo '-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer' + export 'CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer' + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer' ~/build/BUILD/pypy3.10-v7.3.13-src/pypy/goal ~/build/BUILD/pypy3.10-v7.3.13-src ++ echo '-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer' -Wno-unused -fPIC + export 'CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -Wno-unused -fPIC' + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -Wno-unused -fPIC' + test -x ./pypy + INTERP=python2 + RPM_BUILD_ROOT= ++ pwd + PYPY_USESSION_DIR=/builddir/build/BUILD/pypy3.10-v7.3.13-src/pypy/goal + PYPY_USESSION_BASENAME=pypy3 + python2 ../../rpython/bin/rpython --gcrootfinder=shadowstack -O2 targetpypystandalone --platlibdir=lib64 [translation:info] 2.7.18 (default, May 25 2023, 00:00:00) [GCC 13.1.1 20230511 (Red Hat 13.1.1-2)] [platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown' [translation:info] Translating target as defined by targetpypystandalone [translation] PyPy config object: [translation] [objspace] platlibdir = lib64 [std] intshortcut = True optimized_list_getitem = True withspecialisedtuple = True [usemodules] _abc = True _ast = True _cffi_backend = True _codecs = True _collections = True _continuation = True _cppyy = True _csv = True _hpy_universal = True _jitlog = True _lsprof = True _md5 = True _minimal_curses = True _multibytecodec = True _multiprocessing = True _pickle_support = True _posixsubprocess = True _pypyjson = True _random = True _rawffi = True _socket = True _sre = True _string = True _testing = True _weakref = True array = True atexit = True binascii = True bz2 = True cmath = True cpyext = True errno = True fcntl = True gc = True imp = True marshal = True math = True mmap = True pwd = True pyexpat = True select = True signal = True struct = True termios = True thread = True time = True token = True unicodedata = True zlib = True [translation:info] Error: File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/rpython/translator/goal/translate.py", line 286, in main default_goal='compile') File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/rpython/translator/driver.py", line 583, in from_targetspec spec = target(driver, args) File "targetpypystandalone.py", line 370, in target return self.get_entry_point(config) File "targetpypystandalone.py", line 409, in get_entry_point self.space = make_objspace(config) File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/pypy/tool/option.py", line 33, in make_objspace return StdObjSpace(config) File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/pypy/interpreter/baseobjspace.py", line 445, in __init__ self.initialize() File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/pypy/objspace/std/objspace.py", line 114, in initialize self.make_builtins() File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/pypy/interpreter/baseobjspace.py", line 620, in make_builtins mod = Module(self, w_name) File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/pypy/module/imp/moduledef.py", line 41, in __init__ from pypy.module.imp import interp_imp File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/pypy/module/imp/interp_imp.py", line 1, in from pypy.module.imp import importing File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/pypy/module/imp/importing.py", line 20, in from pypy.module.__pypy__.interp_os import _multiarch File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/pypy/module/__pypy__/interp_os.py", line 13, in _multiarch = compiler.get_multiarch() File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/rpython/translator/platform/posix.py", line 111, in get_multiarch model = detect_cpu.autodetect() File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/rpython/jit/backend/detect_cpu.py", line 111, in autodetect return detect_model_from_host_platform() File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/rpython/jit/backend/detect_cpu.py", line 82, in detect_model_from_host_platform raise ProcessorAutodetectError("unknown machine name %s" % mach) [translation:ERROR] ProcessorAutodetectError: unknown machine name riscv64 [translation] start debugger... PROCESSOR NOT DETECTED, SKIPPING VMPROF > /builddir/build/BUILD/pypy3.10-v7.3.13-src/rpython/jit/backend/detect_cpu.py(82)detect_model_from_host_platform() -> raise ProcessorAutodetectError("unknown machine name %s" % mach) Traceback (most recent call last): File "../../rpython/bin/rpython", line 20, in main() File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/rpython/translator/goal/translate.py", line 327, in main debug(True) File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/rpython/translator/goal/translate.py", line 280, in debug pdb_plus_show.start(tb) File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/rpython/translator/tool/pdbplus.py", line 442, in start fn(*args) File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/rpython/translator/tool/pdbplus.py", line 25, in post_mortem self.interaction(t.tb_frame, t) File "/usr/lib64/python2.7/pdb.py", line 210, in interaction self.cmdloop() File "/usr/lib64/python2.7/cmd.py", line 109, in cmdloop self.preloop() File "/builddir/build/BUILD/pypy3.10-v7.3.13-src/rpython/translator/tool/pdbplus.py", line 29, in preloop raise NoTTY("Cannot start the debugger when stdout is captured.") rpython.translator.tool.pdbplus.NoTTY: Cannot start the debugger when stdout is captured. real 2m32.802s user 0m41.729s sys 0m2.995s RPM build warnings: RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.iD9aBJ (%build) extra tokens at the end of %endif directive in line 751: %endif # with selftests Bad exit status from /var/tmp/rpm-tmp.iD9aBJ (%build) Child return code was: 1 EXCEPTION: [Error()] 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 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 riscv64 --nodeps /builddir/build/SPECS/pypy3.10.spec