Mock Version: 5.5 Mock Version: 5.5 Mock Version: 5.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/libunwind.spec'], chrootPath='/var/lib/mock/dist-an23.3-build-415530-72844/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=990gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.frwf4oa4:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.frwf4oa4:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'f62d5d3706a44c1fbedadcf5350fa71e', '-D', '/var/lib/mock/dist-an23.3-build-415530-72844/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.frwf4oa4:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/libunwind.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1740009600 Wrote: /builddir/build/SRPMS/libunwind-1.6.2-5.an23.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/libunwind.spec'], chrootPath='/var/lib/mock/dist-an23.3-build-415530-72844/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=990gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.frwf4oa4:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.frwf4oa4:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'f0e79dafcd454cdab9cf3812a06c96a2', '-D', '/var/lib/mock/dist-an23.3-build-415530-72844/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.frwf4oa4:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/libunwind.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1740009600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.igvWCa + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libunwind-1.6.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/libunwind-1.6.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libunwind-1.6.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/libunwind-skip-no-coredump.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/libunwind-no-dl-iterate-phdr.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-Add-port-for-Linux-on-LoongArch.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0002-Add-support-for-SW64.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f The text leading up to this was: -------------------------- |From d1d38b79d003deb7543203bd37d2f12206cc129d Mon Sep 17 00:00:00 2001 |From: Liu Hanxu |Date: Mon, 23 Dec 2024 19:04:22 +0800 |Subject: [PATCH] Add support for SW64 | |Signed-off-by: Liu Hanxu |--- | CMakeLists.txt | 5 + | Makefile.am | 5 + | README | 2 + | configure.ac | 7 +- | include/libunwind-sw_64.h | 168 +++++++++++ | include/libunwind.h.in | 2 + | include/tdep-sw_64/dwarf-config.h | 51 ++++ | include/tdep-sw_64/jmpbuf.h | 33 ++ | include/tdep-sw_64/libunwind_i.h | 301 +++++++++++++++++++ | include/tdep/dwarf-config.h | 2 + | include/tdep/jmpbuf.h | 2 + | include/tdep/libunwind_i.h.in | 2 + | src/Makefile.am | 34 +++ | src/coredump/_UCD_access_reg_linux.c | 35 +++ | src/ptrace/_UPT_reg_offset.c | 67 +++++ | src/sw_64/Gapply_reg_state.c | 37 +++ | src/sw_64/Gcreate_addr_space.c | 53 ++++ | src/sw_64/Gget_proc_info.c | 44 +++ | src/sw_64/Gget_save_loc.c | 132 ++++++++ | src/sw_64/Gglobal.c | 57 ++++ | src/sw_64/Ginit.c | 432 +++++++++++++++++++++++++++ | src/sw_64/Ginit_local.c | 79 +++++ | src/sw_64/Ginit_remote.c | 55 ++++ | src/sw_64/Gis_signal_frame.c | 61 ++++ | src/sw_64/Greg_states_iterate.c | 37 +++ | src/sw_64/Gregs.c | 118 ++++++++ | src/sw_64/Gresume.c | 114 +++++++ | src/sw_64/Gstep.c | 243 +++++++++++++++ | src/sw_64/Lapply_reg_state.c | 5 + | src/sw_64/Lcreate_addr_space.c | 5 + | src/sw_64/Lget_proc_info.c | 5 + | src/sw_64/Lget_save_loc.c | 5 + | src/sw_64/Lglobal.c | 5 + | src/sw_64/Linit.c | 5 + | src/sw_64/Linit_local.c | 5 + | src/sw_64/Linit_remote.c | 5 + | src/sw_64/Lis_signal_frame.c | 5 + | src/sw_64/Lreg_states_iterate.c | 5 + | src/sw_64/Lregs.c | 5 + | src/sw_64/Lresume.c | 5 + | src/sw_64/Lstep.c | 5 + | src/sw_64/elfxx.c | 27 ++ | src/sw_64/gen-offsets.c | 32 ++ | src/sw_64/getcontext.S | 77 +++++ | src/sw_64/init.h | 63 ++++ | src/sw_64/is_fpreg.c | 31 ++ | src/sw_64/offsets.h | 58 ++++ | src/sw_64/regname.c | 50 ++++ | src/sw_64/siglongjmp.S | 7 + | src/sw_64/unwind_i.h | 43 +++ | tests/Makefile.am | 4 + | tests/check-namespace.sh.in | 14 + | 52 files changed, 2647 insertions(+), 2 deletions(-) | create mode 100644 include/libunwind-sw_64.h | create mode 100644 include/tdep-sw_64/dwarf-config.h | create mode 100644 include/tdep-sw_64/jmpbuf.h | create mode 100644 include/tdep-sw_64/libunwind_i.h | create mode 100644 src/sw_64/Gapply_reg_state.c | create mode 100644 src/sw_64/Gcreate_addr_space.c | create mode 100644 src/sw_64/Gget_proc_info.c | create mode 100644 src/sw_64/Gget_save_loc.c | create mode 100644 src/sw_64/Gglobal.c | create mode 100644 src/sw_64/Ginit.c | create mode 100644 src/sw_64/Ginit_local.c | create mode 100644 src/sw_64/Ginit_remote.c | create mode 100644 src/sw_64/Gis_signal_frame.c | create mode 100644 src/sw_64/Greg_states_iterate.c | create mode 100644 src/sw_64/Gregs.c | create mode 100644 src/sw_64/Gresume.c | create mode 100644 src/sw_64/Gstep.c | create mode 100644 src/sw_64/Lapply_reg_state.c | create mode 100644 src/sw_64/Lcreate_addr_space.c | create mode 100644 src/sw_64/Lget_proc_info.c | create mode 100644 src/sw_64/Lget_save_loc.c | create mode 100644 src/sw_64/Lglobal.c | create mode 100644 src/sw_64/Linit.c | create mode 100644 src/sw_64/Linit_local.c | create mode 100644 src/sw_64/Linit_remote.c | create mode 100644 src/sw_64/Lis_signal_frame.c | create mode 100644 src/sw_64/Lreg_states_iterate.c | create mode 100644 src/sw_64/Lregs.c | create mode 100644 src/sw_64/Lresume.c | create mode 100644 src/sw_64/Lstep.c | create mode 100644 src/sw_64/elfxx.c | create mode 100644 src/sw_64/gen-offsets.c | create mode 100644 src/sw_64/getcontext.S | create mode 100644 src/sw_64/init.h | create mode 100644 src/sw_64/is_fpreg.c | create mode 100644 src/sw_64/offsets.h | create mode 100644 src/sw_64/regname.c | create mode 100644 src/sw_64/siglongjmp.S | create mode 100644 src/sw_64/unwind_i.h | |diff --git a/CMakeLists.txt b/CMakeLists.txt |index 0b36d58d..4d524068 100644 |--- a/CMakeLists.txt |+++ b/CMakeLists.txt -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored 1 out of 2 hunks FAILED -- saving rejects to file README.rej 3 out of 5 hunks FAILED -- saving rejects to file configure.ac.rej 1 out of 1 hunk FAILED -- saving rejects to file include/libunwind.h.in.rej 1 out of 1 hunk FAILED -- saving rejects to file include/tdep/dwarf-config.h.rej 1 out of 1 hunk FAILED -- saving rejects to file include/tdep/jmpbuf.h.rej 1 out of 1 hunk FAILED -- saving rejects to file include/tdep/libunwind_i.h.in.rej 1 out of 3 hunks FAILED -- saving rejects to file src/Makefile.am.rej 1 out of 1 hunk FAILED -- saving rejects to file src/coredump/_UCD_access_reg_linux.c.rej 1 out of 1 hunk FAILED -- saving rejects to file src/ptrace/_UPT_reg_offset.c.rej 1 out of 2 hunks FAILED -- saving rejects to file tests/check-namespace.sh.in.rej error: Bad exit status from /var/tmp/rpm-tmp.igvWCa (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.igvWCa (%prep) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M f0e79dafcd454cdab9cf3812a06c96a2 -D /var/lib/mock/dist-an23.3-build-415530-72844/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.frwf4oa4:/etc/resolv.conf --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin \'--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"\' \'--setenv=PS1= \\s-\\v\\$ \' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c \'/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/libunwind.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 612, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M f0e79dafcd454cdab9cf3812a06c96a2 -D /var/lib/mock/dist-an23.3-build-415530-72844/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.frwf4oa4:/etc/resolv.conf --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/libunwind.spec'