Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/compiler-rt.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-166734-10262/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/compiler-rt.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: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/compiler-rt-17.0.6-3.ocs23.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/compiler-rt.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-166734-10262/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/compiler-rt.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: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.J2qbZ8 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf compiler-rt-17.0.6.src + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/compiler-rt-17.0.6.src.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd compiler-rt-17.0.6.src + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-Backport-LoongArch-improve-the-support-for-compiler-rt.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f The text leading up to this was: -------------------------- |From 0bce68310dc0ff6a09ec2cf5c3ae32400c631324 Mon Sep 17 00:00:00 2001 |From: zhanglimin |Date: Tue, 12 Sep 2023 09:51:16 +0800 |Subject: [PATCH 1/5] [sanitizer][msan] VarArgHelper for loongarch64 | |This patch adds support for variadic argument for loongarch64, |which is based on MIPS64. And `check-msan` all pass. | |Reviewed By: vitalybuka | |Differential Revision: https://reviews.llvm.org/D158587 | |(cherry picked from commit ec42c78cc43ac1e8364e5a0941aa5fc91b813dd3) |--- | compiler-rt/test/msan/signal_stress_test.cpp | 3 --- | 1 file changed, 3 deletions(-) | |diff --git a/compiler-rt/test/msan/signal_stress_test.cpp b/compiler-rt/test/msan/signal_stress_test.cpp |index aade0f1f4051..043393fce6de 100644 |--- a/compiler-rt/test/msan/signal_stress_test.cpp |+++ b/compiler-rt/test/msan/signal_stress_test.cpp -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored The text leading up to this was: -------------------------- |-- |2.20.1 | | |From faa4482d1f713331a4ac4b0a58ea9804f6c32371 Mon Sep 17 00:00:00 2001 |From: Ami-zhang <96056515+Ami-zhang@users.noreply.github.com> |Date: Thu, 28 Sep 2023 15:40:42 +0800 |Subject: [PATCH 2/5] [CFI] Allow LoongArch (#67314) | |Enable icall tests on loongarch64 and `check-cfi` all pass. | |(cherry picked from commit adb555ea369a3a989a9db619c784aa76cccdb823) |--- | compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake | 2 +- | compiler-rt/lib/cfi/cfi.cpp | 4 ++++ | compiler-rt/test/cfi/cross-dso/icall/dlopen.cpp | 11 +++++++++-- | compiler-rt/test/cfi/cross-dso/icall/lit.local.cfg.py | 2 +- | compiler-rt/test/cfi/icall/lit.local.cfg.py | 2 +- | 5 files changed, 16 insertions(+), 5 deletions(-) | |diff --git a/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake b/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake |index d14745ef9d13..9b0a4655cd65 100644 |--- a/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake |+++ b/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored The text leading up to this was: -------------------------- |diff --git a/compiler-rt/lib/cfi/cfi.cpp b/compiler-rt/lib/cfi/cfi.cpp |index 22f0b175dd87..ad1c91623514 100644 |--- a/compiler-rt/lib/cfi/cfi.cpp |+++ b/compiler-rt/lib/cfi/cfi.cpp -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored The text leading up to this was: -------------------------- |diff --git a/compiler-rt/test/cfi/cross-dso/icall/dlopen.cpp b/compiler-rt/test/cfi/cross-dso/icall/dlopen.cpp |index c9674c3fb412..d04f7ba5dd0e 100644 |--- a/compiler-rt/test/cfi/cross-dso/icall/dlopen.cpp |+++ b/compiler-rt/test/cfi/cross-dso/icall/dlopen.cpp -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored The text leading up to this was: -------------------------- |diff --git a/compiler-rt/test/cfi/cross-dso/icall/lit.local.cfg.py b/compiler-rt/test/cfi/cross-dso/icall/lit.local.cfg.py |index 749c265bbf1c..6e64199ed5c5 100644 |--- a/compiler-rt/test/cfi/cross-dso/icall/lit.local.cfg.py |+++ b/compiler-rt/test/cfi/cross-dso/icall/lit.local.cfg.py -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored The text leading up to this was: -------------------------- |diff --git a/compiler-rt/test/cfi/icall/lit.local.cfg.py b/compiler-rt/test/cfi/icall/lit.local.cfg.py |index 749c265bbf1c..6e64199ed5c5 100644 |--- a/compiler-rt/test/cfi/icall/lit.local.cfg.py |+++ b/compiler-rt/test/cfi/icall/lit.local.cfg.py -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored The text leading up to this was: -------------------------- |-- |2.20.1 | | |From c1b7fb975564f8d372b7af81e90519c47935d1b7 Mon Sep 17 00:00:00 2001 |From: Ami-zhang |Date: Fri, 27 Oct 2023 16:52:10 +0800 |Subject: [PATCH 3/5] [test][compiler-rt] Mark several tests as UNSUPPORTED on | LoongArch (#69699) | |(cherry picked from commit 75b0a99668cef7abaf36e09c41bb1eb91234bbf3) |--- | compiler-rt/test/fuzzer/exit_on_src_pos.test | 2 ++ | .../test/sanitizer_common/TestCases/Linux/odd_stack_size.cpp | 2 ++ | .../sanitizer_common/TestCases/Linux/release_to_os_test.cpp | 2 +- | compiler-rt/test/xray/TestCases/Posix/fdr-mode.cpp | 2 ++ | 4 files changed, 7 insertions(+), 1 deletion(-) | |diff --git a/compiler-rt/test/fuzzer/exit_on_src_pos.test b/compiler-rt/test/fuzzer/exit_on_src_pos.test |index 541e0c4c6e42..020424e2d9fd 100644 |--- a/compiler-rt/test/fuzzer/exit_on_src_pos.test |+++ b/compiler-rt/test/fuzzer/exit_on_src_pos.test -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored The text leading up to this was: -------------------------- |diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/odd_stack_size.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/odd_stack_size.cpp |index fc31212b7f18..9d7d46b462a8 100644 |--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/odd_stack_size.cpp |+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/odd_stack_size.cpp -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored The text leading up to this was: -------------------------- |diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/release_to_os_test.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/release_to_os_test.cpp |index 67351a916441..0fa77200bf1c 100644 |--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/release_to_os_test.cpp |+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/release_to_os_test.cpp -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored The text leading up to this was: -------------------------- |diff --git a/compiler-rt/test/xray/TestCases/Posix/fdr-mode.cpp b/compiler-rt/test/xray/TestCases/Posix/fdr-mode.cpp |index 3065981a2c9a..0ee8aaa755d5 100644 |--- a/compiler-rt/test/xray/TestCases/Posix/fdr-mode.cpp |+++ b/compiler-rt/test/xray/TestCases/Posix/fdr-mode.cpp -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored The text leading up to this was: -------------------------- |-- |2.20.1 | | |From 6ff7bf14a7bbb438f58fc20dd56a2adf157022f3 Mon Sep 17 00:00:00 2001 |From: abner chenc |Date: Thu, 28 Dec 2023 18:54:35 +0800 |Subject: [PATCH 4/5] [tsan] Add support for linux/loongarch64 in | lib/tsan/go/buildgo.sh (#72819) | |Co-authored-by: Xiaolin Zhao |(cherry picked from commit 9d3fbf97bef3f19da4e0a047f017b8142f59b3fd) |--- | compiler-rt/lib/tsan/go/buildgo.sh | 2 ++ | compiler-rt/lib/tsan/rtl/tsan_platform.h | 32 +++++++++++++++++++ | .../lib/tsan/rtl/tsan_platform_linux.cpp | 8 ++++- | 3 files changed, 41 insertions(+), 1 deletion(-) | |diff --git a/compiler-rt/lib/tsan/go/buildgo.sh b/compiler-rt/lib/tsan/go/buildgo.sh |index 0bd59368cc46..78ba41a0bdc6 100755 |--- a/compiler-rt/lib/tsan/go/buildgo.sh |+++ b/compiler-rt/lib/tsan/go/buildgo.sh -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored The text leading up to this was: -------------------------- |diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform.h b/compiler-rt/lib/tsan/rtl/tsan_platform.h |index f0cdaf48eaa3..48dd56d15751 100644 |--- a/compiler-rt/lib/tsan/rtl/tsan_platform.h |+++ b/compiler-rt/lib/tsan/rtl/tsan_platform.h -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored The text leading up to this was: -------------------------- |diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp |index 384a443c16b0..3f4a3760794f 100644 |--- a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp |+++ b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored The text leading up to this was: -------------------------- |-- |2.20.1 | | |From ffa86e49836d567aa6b817563d1e4b99dc5f21c7 Mon Sep 17 00:00:00 2001 |From: Fangrui Song |Date: Tue, 26 Mar 2024 14:09:39 -0700 |Subject: [PATCH 5/5] [tsan] Refine fstat{,64} interceptors (#86625) | |In glibc versions before 2.33. `libc_nonshared.a` defines |`__fxstat/__fxstat64` but there is no `fstat/fstat64`. glibc 2.33 added |`fstat/fstat64` and obsoleted `__fxstat/__fxstat64`. Ports added after |2.33 do not provide `__fxstat/__fxstat64`, so our `fstat/fstat64` |interceptors using `__fxstat/__fxstat64` interceptors would lead to |runtime failures on such ports (LoongArch and certain RISC-V ports). | |Similar to https://reviews.llvm.org/D118423, refine the conditions that |we define fstat{,64} interceptors. `fstat` is supported by musl/*BSD |while `fstat64` is glibc only. | |(cherry picked from commit d5224b73ccd09a6759759791f58426b6acd4a2e2) |--- | .../lib/tsan/rtl/tsan_interceptors_posix.cpp | 43 ++++++++----------- | 1 file changed, 18 insertions(+), 25 deletions(-) | |diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp |index 177e338bf282..622afc90a577 100644 |--- a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp |+++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.J2qbZ8 (%prep) Bad exit status from /var/tmp/rpm-tmp.J2qbZ8 (%prep) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/compiler-rt.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 597, 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 --noclean --target x86_64 --nodeps /builddir/build/SPECS/compiler-rt.spec