Mock Version: 6.0 Mock Version: 6.0 Mock Version: 6.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/llvm.spec'], chrootPath='/var/lib/mock/dist-an23.4-build-541956-85451/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'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/llvm.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: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1781481600 Wrote: /builddir/build/SRPMS/llvm-17.0.6-7.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/llvm.spec'], chrootPath='/var/lib/mock/dist-an23.4-build-541956-85451/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'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/llvm.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: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1781481600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.dkHXTT + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf llvm-project-17.0.6.src + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/llvm-project-17.0.6.src.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd llvm-project-17.0.6.src + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-LoongArch-Add-relax-feature-and-keep-relocations-721.patch + /usr/bin/patch -p2 -s --fuzz=0 --no-backup-if-mismatch -f The text leading up to this was: -------------------------- |From 6f135b13769c64a6942b4b232a350b6a6207f2b2 Mon Sep 17 00:00:00 2001 |From: Jinyang He |Date: Thu, 16 Nov 2023 11:01:26 +0800 |Subject: [PATCH 01/66] [LoongArch] Add relax feature and keep relocations | (#72191) | |Add relax feature. To support linker relocation, we should make |relocation with a symbol rather than section plus offset, and keep all |relocations with non-abs symbol. | |(cherry picked from commit f5bfc833fcbf17a5876911783d1adaca7028d20c) |Change-Id: Ief38b480016175f2cc9939b74a84d9444559ffd6 |--- | llvm/lib/Target/LoongArch/LoongArch.td | 4 +++ | .../lib/Target/LoongArch/LoongArchSubtarget.h | 2 ++ | .../MCTargetDesc/LoongArchAsmBackend.cpp | 5 +-- | .../MCTargetDesc/LoongArchELFObjectWriter.cpp | 18 ++++++++--- | .../MCTargetDesc/LoongArchMCTargetDesc.h | 2 +- | .../MC/LoongArch/Relocations/relax-attr.s | 32 +++++++++++++++++++ | 6 files changed, 55 insertions(+), 8 deletions(-) | create mode 100644 llvm/test/MC/LoongArch/Relocations/relax-attr.s | |diff --git a/llvm/lib/Target/LoongArch/LoongArch.td b/llvm/lib/Target/LoongArch/LoongArch.td |index 0675caa3b601..75b65fe69f26 100644 |--- a/llvm/lib/Target/LoongArch/LoongArch.td |+++ b/llvm/lib/Target/LoongArch/LoongArch.td -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored The text leading up to this was: -------------------------- |diff --git a/llvm/lib/Target/LoongArch/LoongArchSubtarget.h b/llvm/lib/Target/LoongArch/LoongArchSubtarget.h |index 0fbe23f2f62d..5c173675cca4 100644 |--- a/llvm/lib/Target/LoongArch/LoongArchSubtarget.h |+++ b/llvm/lib/Target/LoongArch/LoongArchSubtarget.h -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored The text leading up to this was: -------------------------- |diff --git a/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp b/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp |index ecb68ff401e9..aae3e544d326 100644 |--- a/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp |+++ b/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored The text leading up to this was: -------------------------- |diff --git a/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchELFObjectWriter.cpp b/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchELFObjectWriter.cpp |index a6b9c0652639..e60b9c2cfd97 100644 |--- a/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchELFObjectWriter.cpp |+++ b/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchELFObjectWriter.cpp -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored The text leading up to this was: -------------------------- |diff --git a/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCTargetDesc.h b/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCTargetDesc.h |index ab35a0096c8a..bb05baa9b717 100644 |--- a/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCTargetDesc.h |+++ b/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCTargetDesc.h -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.dkHXTT (%prep) Bad exit status from /var/tmp/rpm-tmp.dkHXTT (%prep) Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/llvm.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 610, 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: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/llvm.spec'