Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/liblockfile.spec'], chrootPath='/var/lib/mock/dist-ocs23-loongarch64-build-142641-9720/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/liblockfile.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: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/liblockfile-1.17-4.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/liblockfile.spec'], chrootPath='/var/lib/mock/dist-ocs23-loongarch64-build-142641-9720/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/liblockfile.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: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.L9WeDM + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf liblockfile-1.17 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/liblockfile_1.17.orig.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd liblockfile-1.17 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -Ei '/install/ s/-g [^ ]+//' Makefile.in + sed -i -e '/^prefix/s,\$(DESTDIR),,' -e 's,\(\$(\(lib\|include\|man\|nfslock\|bin\)dir)\),$(DESTDIR)\1,' -e '/-DLOCKPROG/s,\$(DESTDIR),,' Makefile.in + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.JbwsE6 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd liblockfile-1.17 + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2019-07-22 23:32:48.000000000 +0800 +++ ./configure 2024-04-24 05:06:57.379834671 +0800 @@ -1728,7 +1728,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=loongarch64-opencloudos-linux-gnu --host=loongarch64-opencloudos-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --with-mailgroup configure: WARNING: unrecognized options: --disable-dependency-tracking checking for loongarch64-opencloudos-linux-gnu-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking build shared libs... yes checking build libnfslock... no checking for ldconfig... /usr/sbin/ldconfig checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking paths.h usability... yes checking paths.h presence... yes checking for paths.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking for utime... yes checking for utimes... yes configure: creating ./config.status config.status: creating ./Makefile config.status: creating ./maillock.h config.status: creating autoconf.h configure: WARNING: unrecognized options: --disable-dependency-tracking + /usr/bin/make -O -j32 V=1 VERBOSE=1 gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -D_GNU_SOURCE -fPIC -D_REENTRANT -I. -DLOCKPROG=\"/usr/bin/dotlockfile\" \ -c lockfile.c -o dlockfile.o gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -D_GNU_SOURCE -fPIC -D_REENTRANT -I. -DLOCKPROG=\"/usr/bin/dotlockfile\" \ -c dotlockfile.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -D_GNU_SOURCE -fPIC -D_REENTRANT -I. -DLIB -DLOCKPROG=\"/usr/bin/dotlockfile\" \ -c lockfile.c -o solockfile.o gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -D_GNU_SOURCE -fPIC -D_REENTRANT -I. -DLIB -DLOCKPROG=\"/usr/bin/dotlockfile\" \ -DSTATIC -c lockfile.c ar rv liblockfile.a lockfile.o a - lockfile.o ar: creating liblockfile.a gcc -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -fPIC -shared -Wl,-soname,liblockfile.so.1 \ -o liblockfile.so solockfile.o -lc gcc -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -o dotlockfile dotlockfile.o dlockfile.o + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.gzRggu + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64 ++ dirname /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64 + cd liblockfile-1.17 + /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64 'INSTALL=/usr/bin/install -p' install -d -m 755 -p /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/include install -d -m 755 -p /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/bin install -d -m 755 -p /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/share/man/man1 install -d -m 755 -p /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/share/man/man3 install -m 644 lockfile.h maillock.h /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/include if [ "mail" != "" ]; then\ install -m 2755 dotlockfile /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/bin;\ else \ install -m 755 dotlockfile /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/bin; \ fi install -m 644 *.1 /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/share/man/man1 install -m 644 *.3 /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/share/man/man3 install -d -m 755 -p /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/lib64 install -m 644 liblockfile.a /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/lib64 install -d -m 755 -p /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/lib64 install -m 755 liblockfile.so \ /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/lib64/liblockfile.so.1.0 ln -s liblockfile.so.1.0 /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/lib64/liblockfile.so.1 ln -s liblockfile.so.1.0 /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/lib64/liblockfile.so if test "/builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64" = ""; then /usr/sbin/ldconfig; fi + /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 1.17-4.ocs23 --unique-debug-suffix -1.17-4.ocs23.loongarch64 --unique-debug-src-base liblockfile-1.17-4.ocs23.loongarch64 -S debugsourcefiles.list /builddir/build/BUILD/liblockfile-1.17 extracting debug info from /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/lib64/liblockfile.so.1.0 extracting debug info from /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/bin/dotlockfile 47 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/OpenCloudOS/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/OpenCloudOS/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/OpenCloudOS/brp-mangle-shebangs + /usr/lib/rpm/OpenCloudOS/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/OpenCloudOS/brp-python-hardlink Processing files: liblockfile-1.17-4.ocs23.loongarch64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.uK61U1 + umask 022 + cd /builddir/build/BUILD + cd liblockfile-1.17 + DOCDIR=/builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/share/doc/liblockfile + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/share/doc/liblockfile + cp -pr README /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/share/doc/liblockfile + cp -pr Changelog /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/share/doc/liblockfile + cp -pr README /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/share/doc/liblockfile + cp -pr COPYRIGHT /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/share/doc/liblockfile + cp -pr Changelog /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/share/doc/liblockfile + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.RYurEE + umask 022 + cd /builddir/build/BUILD + cd liblockfile-1.17 + LICENSEDIR=/builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/share/licenses/liblockfile + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/share/licenses/liblockfile + cp -pr COPYRIGHT /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64/usr/share/licenses/liblockfile + RPM_EC=0 ++ jobs -p + exit 0 warning: File listed twice: /usr/share/doc/liblockfile/Changelog warning: File listed twice: /usr/share/doc/liblockfile/README Provides: liblockfile = 1.17-4.ocs23 liblockfile(loongarch-64) = 1.17-4.ocs23 liblockfile.so.1()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-loongarch-lp64d.so.1()(64bit) ld-linux-loongarch-lp64d.so.1(GLIBC_2.36)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.36)(64bit) libc.so.6(GLIBC_2.38)(64bit) rtld(GNU_HASH) Processing files: liblockfile-devel-1.17-4.ocs23.loongarch64 Provides: liblockfile-devel = 1.17-4.ocs23 liblockfile-devel(loongarch-64) = 1.17-4.ocs23 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: liblockfile.so.1()(64bit) Processing files: liblockfile-debugsource-1.17-4.ocs23.loongarch64 Provides: liblockfile-debugsource = 1.17-4.ocs23 liblockfile-debugsource(loongarch-64) = 1.17-4.ocs23 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: liblockfile-debuginfo-1.17-4.ocs23.loongarch64 Provides: debuginfo(build-id) = a58c357fe9f5c680de096917675a05a533bc697d debuginfo(build-id) = b5964d0bf3d360a33ca4b00fc96258419ca352c4 liblockfile-debuginfo = 1.17-4.ocs23 liblockfile-debuginfo(loongarch-64) = 1.17-4.ocs23 liblockfile.so.1.0-1.17-4.ocs23.loongarch64.debug()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: liblockfile-debugsource(loongarch-64) = 1.17-4.ocs23 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/liblockfile-1.17-4.ocs23.loongarch64 Wrote: /builddir/build/RPMS/liblockfile-devel-1.17-4.ocs23.loongarch64.rpm Wrote: /builddir/build/RPMS/liblockfile-debugsource-1.17-4.ocs23.loongarch64.rpm Wrote: /builddir/build/RPMS/liblockfile-debuginfo-1.17-4.ocs23.loongarch64.rpm Wrote: /builddir/build/RPMS/liblockfile-1.17-4.ocs23.loongarch64.rpm RPM build warnings: File listed twice: /usr/share/doc/liblockfile/Changelog File listed twice: /usr/share/doc/liblockfile/README Child return code was: 0