Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/system-lsb.spec'], chrootPath='/var/lib/mock/dist-an8-loongarch64-build-40884-20921/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/system-lsb.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: Macro expanded in comment on line 368: %{?_isa} warning: Macro expanded in comment on line 369: %{?_isa} warning: Macro expanded in comment on line 371: %{?_isa} sh: /usr/bin/perl: No such file or directory sh: /usr/bin/perl: No such file or directory sh: /usr/bin/perl: No such file or directory sh: /usr/bin/perl: No such file or directory sh: /usr/bin/perl: No such file or directory Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/system-lsb-4.1-47.0.2.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/system-lsb.spec'], chrootPath='/var/lib/mock/dist-an8-loongarch64-build-40884-20921/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/system-lsb.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: Macro expanded in comment on line 368: %{?_isa} warning: Macro expanded in comment on line 369: %{?_isa} warning: Macro expanded in comment on line 371: %{?_isa} Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.No7HhY + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf system-lsb-4.1 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/system-lsb-4.1-1.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd system-lsb-4.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (lsb-release-3.1-update-init-functions.patch):' Patch #0 (lsb-release-3.1-update-init-functions.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file init-functions + echo 'Patch #1 (system-lsb-lsb_start_daemon-fix.patch):' Patch #1 (system-lsb-lsb_start_daemon-fix.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lsb_start_daemon Patch #2 (system-lsb-trigger.patch): + echo 'Patch #2 (system-lsb-trigger.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .triggerfix --fuzz=0 patching file system_lsb_trigger.c + echo 'Patch #3 (system-lsb-arm.patch):' Patch #3 (system-lsb-arm.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .arm --fuzz=0 patching file system_lsb_trigger.c + echo 'Patch #4 (system-lsb-aarch64.patch):' Patch #4 (system-lsb-aarch64.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .aarch64 --fuzz=0 patching file system_lsb_trigger.c Patch #1000 (system-lsb-anolis-fix-release.patch): + echo 'Patch #1000 (system-lsb-anolis-fix-release.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lsb-release-2.0/lsb_release + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.c0veCH + umask 022 + cd /builddir/build/BUILD + cd system-lsb-4.1 + cd lsb-release-2.0 + make + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.pu6eXq + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64 ++ dirname /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64 + cd system-lsb-4.1 + mkdir -p /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/etc /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/lib64 /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/man /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/bin /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/lib/lsb /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/etc/lsb-release.d/ /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/sbin /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1 + mkdir -p /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/perl5/vendor_perl/Locale + cp -p Constants.pm /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/perl5/vendor_perl/Locale + cp -p Constants.pod /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/perl5/vendor_perl/Locale + make install DESTDIR=/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64 'INSTALL=install -p' mkdir -p -m 755 /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/etc/system-lsb mkdir -p -m 755 /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/lib/lsb for script in lsb_start_daemon lsb_killproc lsb_pidofproc lsb_log_message ; do \ install -m 755 $script /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/etc/system-lsb ;\ done install -m 755 init-functions /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/lib/lsb + cd lsb-release-2.0 + make mandir=/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64//usr/share/man prefix=/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64//usr install install -D -m 644 lsb_release.1.gz /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64//usr/share/man/man1/lsb_release.1.gz install -D -m 755 lsb_release /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64//usr/bin/lsb_release + cd .. + mkdir -p /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules + mkdir -p /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules + cp -p lsb-release-2.0/COPYING . + cp -p lsb-release-2.0/README README.lsb_release + modules='core cxx desktop languages printing trialuse' + submodules='core perl python cpp toolkit-gtk' + submodules='core perl python cpp toolkit-gtk xml multimedia security desktop-misc graphics graphics-ext' + submodules='core perl python cpp toolkit-gtk xml multimedia security desktop-misc graphics graphics-ext printing' + core='core security' + cxx=cpp + desktop='desktop-misc graphics graphics-ext multimedia toolkit-gtk' + desktop='desktop-misc graphics graphics-ext multimedia toolkit-gtk xml' + languages='perl python' + printing=printing + trialuse='security multimedia' + for mod in ${modules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/etc/lsb-release.d/core-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/etc/lsb-release.d/core-4.1-noarch + for mod in ${modules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/etc/lsb-release.d/cxx-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/etc/lsb-release.d/cxx-4.1-noarch + for mod in ${modules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/etc/lsb-release.d/desktop-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/etc/lsb-release.d/desktop-4.1-noarch + for mod in ${modules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/etc/lsb-release.d/languages-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/etc/lsb-release.d/languages-4.1-noarch + for mod in ${modules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/etc/lsb-release.d/printing-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/etc/lsb-release.d/printing-4.1-noarch + for mod in ${modules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/etc/lsb-release.d/trialuse-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/etc/lsb-release.d/trialuse-4.1-noarch + for submod in ${submodules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/core-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/core-4.1-noarch + for submod in ${submodules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/perl-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/perl-4.1-noarch + for submod in ${submodules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/python-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/python-4.1-noarch + for submod in ${submodules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/cpp-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/cpp-4.1-noarch + for submod in ${submodules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/toolkit-gtk-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/toolkit-gtk-4.1-noarch + for submod in ${submodules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/xml-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/xml-4.1-noarch + for submod in ${submodules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/multimedia-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/multimedia-4.1-noarch + for submod in ${submodules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/security-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/security-4.1-noarch + for submod in ${submodules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/desktop-misc-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/desktop-misc-4.1-noarch + for submod in ${submodules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/graphics-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/graphics-4.1-noarch + for submod in ${submodules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/graphics-ext-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/graphics-ext-4.1-noarch + for submod in ${submodules} + touch '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/printing-4.1-%{archname}' + touch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/submodules/printing-4.1-noarch + for moddir in ${modules} + mkdir -p /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/core + for moddir in ${modules} + mkdir -p /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/cxx + for moddir in ${modules} + mkdir -p /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/desktop + for moddir in ${modules} + mkdir -p /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/languages + for moddir in ${modules} + mkdir -p /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/printing + for moddir in ${modules} + mkdir -p /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/trialuse + for submod in ${core} + ln -snf '../../submodules/core-4.1-%{archname}' '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/core/core-4.1-%{archname}' + ln -snf ../../submodules/core-4.1-noarch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/core/core-4.1-noarch + for submod in ${core} + ln -snf '../../submodules/security-4.1-%{archname}' '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/core/security-4.1-%{archname}' + ln -snf ../../submodules/security-4.1-noarch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/core/security-4.1-noarch + for submod in ${cxx} + ln -snf '../../submodules/cpp-4.1-%{archname}' '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/cxx/cpp-4.1-%{archname}' + ln -snf ../../submodules/cpp-4.1-noarch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/cxx/cpp-4.1-noarch + for submod in ${desktop} + ln -snf '../../submodules/desktop-misc-4.1-%{archname}' '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/desktop/desktop-misc-4.1-%{archname}' + ln -snf ../../submodules/desktop-misc-4.1-noarch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/desktop/desktop-misc-4.1-noarch + for submod in ${desktop} + ln -snf '../../submodules/graphics-4.1-%{archname}' '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/desktop/graphics-4.1-%{archname}' + ln -snf ../../submodules/graphics-4.1-noarch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/desktop/graphics-4.1-noarch + for submod in ${desktop} + ln -snf '../../submodules/graphics-ext-4.1-%{archname}' '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/desktop/graphics-ext-4.1-%{archname}' + ln -snf ../../submodules/graphics-ext-4.1-noarch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/desktop/graphics-ext-4.1-noarch + for submod in ${desktop} + ln -snf '../../submodules/multimedia-4.1-%{archname}' '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/desktop/multimedia-4.1-%{archname}' + ln -snf ../../submodules/multimedia-4.1-noarch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/desktop/multimedia-4.1-noarch + for submod in ${desktop} + ln -snf '../../submodules/toolkit-gtk-4.1-%{archname}' '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/desktop/toolkit-gtk-4.1-%{archname}' + ln -snf ../../submodules/toolkit-gtk-4.1-noarch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/desktop/toolkit-gtk-4.1-noarch + for submod in ${desktop} + ln -snf '../../submodules/xml-4.1-%{archname}' '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/desktop/xml-4.1-%{archname}' + ln -snf ../../submodules/xml-4.1-noarch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/desktop/xml-4.1-noarch + for submod in ${languages} + ln -snf '../../submodules/perl-4.1-%{archname}' '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/languages/perl-4.1-%{archname}' + ln -snf ../../submodules/perl-4.1-noarch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/languages/perl-4.1-noarch + for submod in ${languages} + ln -snf '../../submodules/python-4.1-%{archname}' '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/languages/python-4.1-%{archname}' + ln -snf ../../submodules/python-4.1-noarch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/languages/python-4.1-noarch + for submod in ${printing} + ln -snf '../../submodules/printing-4.1-%{archname}' '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/printing/printing-4.1-%{archname}' + ln -snf ../../submodules/printing-4.1-noarch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/printing/printing-4.1-noarch + for submod in ${trialuse} + ln -snf '../../submodules/security-4.1-%{archname}' '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/trialuse/security-4.1-%{archname}' + ln -snf ../../submodules/security-4.1-noarch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/trialuse/security-4.1-noarch + for submod in ${trialuse} + ln -snf '../../submodules/multimedia-4.1-%{archname}' '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/trialuse/multimedia-4.1-%{archname}' + ln -snf ../../submodules/multimedia-4.1-noarch /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/share/lsb/4.1/modules/trialuse/multimedia-4.1-noarch + for LSBVER in 3 + ln -snf '%{ldso}' '/builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/lib64/%{lsbldso}.3' + mkdir -p /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/bin + ln -snf ../../../sbin/chkconfig /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/lib/lsb/install_initd + ln -snf ../../../sbin/chkconfig /builddir/build/BUILDROOT/system-lsb-4.1-47.0.2.an8.loongarch64/usr/lib/lsb/remove_initd + gcc -O2 -g -Os -static -fno-stack-protector -o system_lsb_trigger.loongarch64 system_lsb_trigger.c '-DLSBSOVER="3"' '-DLDSO="%{ldso}"' '-DLSBLDSO="/lib64/%{lsbldso}"' -D_GNU_SOURCE system_lsb_trigger.c: In function 'main': system_lsb_trigger.c:628:3: warning: implicit declaration of function 'INTERNAL_SYSCALL_DECL' [-Wimplicit-function-declaration] INTERNAL_SYSCALL_DECL (err); ^~~~~~~~~~~~~~~~~~~~~ system_lsb_trigger.c:628:26: error: 'err' undeclared (first use in this function) INTERNAL_SYSCALL_DECL (err); ^~~ system_lsb_trigger.c:628:26: note: each undeclared identifier is reported only once for each function it appears in system_lsb_trigger.c:644:7: warning: implicit declaration of function 'INTERNAL_SYSCALL' [-Wimplicit-function-declaration] INTERNAL_SYSCALL (symlinkat, err, 3, AT_FDCWD, LDSO, buf); ^~~~~~~~~~~~~~~~ system_lsb_trigger.c:648:21: error: 'exit' undeclared (first use in this function); did you mean '_exit'? INTERNAL_SYSCALL (exit, err, 1, 0); ^~~~ _exit system_lsb_trigger.c: In function '__stack_chk_fail': system_lsb_trigger.c:666:26: error: 'err' undeclared (first use in this function) INTERNAL_SYSCALL_DECL (err); ^~~ system_lsb_trigger.c:668:23: error: 'exit' undeclared (first use in this function); did you mean '_exit'? INTERNAL_SYSCALL (exit, err, 1, 1); ^~~~ _exit error: Bad exit status from /var/tmp/rpm-tmp.pu6eXq (%install) RPM build errors: Macro expanded in comment on line 368: %{?_isa} Macro expanded in comment on line 369: %{?_isa} Macro expanded in comment on line 371: %{?_isa} Bad exit status from /var/tmp/rpm-tmp.pu6eXq (%install) Child return code was: 1 EXCEPTION: [Error()] 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 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 loongarch64 --nodeps /builddir/build/SPECS/system-lsb.spec