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/dim_tools.spec'], chrootPath='/home/lib/mock/dist-ocs23-base-build-297783-29078/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/dim_tools.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/dim_tools-1.0.1-1.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/dim_tools.spec'], chrootPath='/home/lib/mock/dist-ocs23-base-build-297783-29078/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/dim_tools.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.lBGveO + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf dim_tools-v1.0.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/v1.0.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd dim_tools-v1.0.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i 's/\(CFLAGS\|LDFLAGS\) ?=/\1 +=/' src/Makefile + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.h5fR4I + 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' ~/build/BUILD/dim_tools-v1.0.1/src ~/build/BUILD/dim_tools-v1.0.1 + 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 dim_tools-v1.0.1 + pushd src + make 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 -O2 -fstack-protector-all -fPIE -fPIC -D_FORTIFY_SOURCE=2 -O2 -o dim_gen_baseline.o -c dim_gen_baseline.c dim_gen_baseline.c: In function 'main': dim_gen_baseline.c:301:11: warning: unused variable 'p' [-Wunused-variable] 301 | char *p = NULL; | ^ 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 -O2 -fstack-protector-all -fPIE -fPIC -D_FORTIFY_SOURCE=2 -O2 -o calculate.o -c calculate.c calculate.c: In function 'DimHashCalElf64Segment': calculate.c:101:9: warning: unused variable 'pageSize' [-Wunused-variable] 101 | int pageSize = 0; | ^~~~~~~~ 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 -O2 -fstack-protector-all -fPIE -fPIC -D_FORTIFY_SOURCE=2 -O2 -o format.o -c format.c format.c: In function 'DimAddBaselineData': format.c:76:79: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=] 76 | (void)fprintf(stderr, "the size of baseline data is bigger than %ld\n", TEXT_BUFFER_LEN_MAX); | ~~^ | | | long int | %d format.c: In function 'DimTextOutputBaseline': format.c:121:22: warning: '%s' directive writing up to 254 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 121 | sprintf(buf, "%s/%s", pathReal, namePtr); | ^~ In file included from /usr/include/stdio.h:964, from format.c:6: In function 'sprintf', inlined from 'DimGetRealPath' at format.c:121:5, inlined from 'DimTextOutputBaseline' at format.c:142:9: /usr/include/bits/stdio2.h:30:10: note: '__sprintf_chk' output between 2 and 4351 bytes into a destination of size 4096 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ 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 -O2 -fstack-protector-all -fPIE -fPIC -D_FORTIFY_SOURCE=2 -O2 -o baseline.o -c baseline.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 -O2 -fstack-protector-all -fPIE -fPIC -D_FORTIFY_SOURCE=2 -O2 -o utils.o -c utils.c utils.c: In function 'DimHexToStr': utils.c:33:12: warning: variable 'remain' set but not used [-Wunused-but-set-variable] 33 | size_t remain = bufLen; | ^~~~~~ 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 -O2 -fstack-protector-all -fPIE -fPIC -D_FORTIFY_SOURCE=2 -O2 -o dim_gen_baseline dim_gen_baseline.o calculate.o format.o baseline.o utils.o -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -Wl,-z,relro,-z,now,-z,noexecstack -pie -lcrypto -lelf -lkmod strip dim_gen_baseline + popd ~/build/BUILD/dim_tools-v1.0.1 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.7LNxWc + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/dim_tools-1.0.1-1.ocs23.loongarch64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/dim_tools-1.0.1-1.ocs23.loongarch64 ++ dirname /builddir/build/BUILDROOT/dim_tools-1.0.1-1.ocs23.loongarch64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/dim_tools-1.0.1-1.ocs23.loongarch64 + cd dim_tools-v1.0.1 ~/build/BUILD/dim_tools-v1.0.1/src ~/build/BUILD/dim_tools-v1.0.1 + pushd src + make install DESTDIR=/builddir/build/BUILDROOT/dim_tools-1.0.1-1.ocs23.loongarch64 mkdir -p /builddir/build/BUILDROOT/dim_tools-1.0.1-1.ocs23.loongarch64/usr/bin install -m 0755 dim_gen_baseline /builddir/build/BUILDROOT/dim_tools-1.0.1-1.ocs23.loongarch64/usr/bin + popd ~/build/BUILD/dim_tools-v1.0.1 + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/OpenCloudOS/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /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 Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.J5N2Qr ~/build/BUILD/dim_tools-v1.0.1/test/test-function ~/build/BUILD/dim_tools-v1.0.1 + 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 dim_tools-v1.0.1 + pushd test/test-function + sed -i 's/\ttest_calculate_hash_mod/#test_calculate_hash_mod/' test.sh + sh test.sh --- case test_dim_tools_cmd_algo start! --- ---- sub-case test_hash_algo success! ---- ---- sub-case test_hash_algo_invalid success! ---- --- case test_dim_tools_cmd_algo success! --- --- case test_dim_tools_cmd_help start! --- ---- sub-case test_help success! ---- --- case test_dim_tools_cmd_help success! --- ---- sub-case test_calculate_hash_kernel success! ---- --- case test_dim_tools_cmd_kernel start! --- ---- sub-case test_calculate_hash_kernel_long_name success! ---- ---- sub-case test_calculate_hash_kernel_too_long_name success! ---- --- case test_dim_tools_cmd_kernel success! --- --- case test_dim_tools_cmd_output start! --- ---- sub-case test_output success! ---- ---- sub-case test_output_directory success! ---- --- case test_dim_tools_cmd_output success! --- --- case test_dim_tools_cmd_relative_path start! --- ---- sub-case test_relative_root success! ---- ---- sub-case test_relative_root_not_parent success! ---- ---- sub-case test_relative_root_not_exist success! ---- ---- sub-case test_relative_root_prefix success! ---- ---- sub-case test_relative_root_lnk success! ---- ---- sub-case test_relative_root_text success! ---- --- case test_dim_tools_cmd_relative_path success! --- --- case test_dim_tools_cmd_recursive start! --- ---- sub-case test_calculate_hash_recursive_exec success! ---- ---- sub-case test_calculate_hash_recursive_dir success! ---- ---- sub-case test_calculate_hash_recursive_dir_empty success! ---- ---- sub-case test_calculate_hash_recursive_lnk_dir success! ---- ---- sub-case test_calculate_hash_recursive_not_exist success! ---- --- case test_dim_tools_cmd_recursive success! --- --- case test_dim_tools_cmd_verbose start! --- ---- sub-case test_test_calculate_hash_exec_verbose success! ---- ---- sub-case test_calculate_hash_text_verbose success! ---- --- case test_dim_tools_cmd_verbose success! --- --- case test_dim_tools_cmd_path start! --- ---- sub-case test_calculate_hash_exec success! ---- ---- sub-case test_calculate_hash_so success! ---- ---- sub-case test_calculate_hash_text success! ---- ---- sub-case test_calculate_hash_dir success! ---- ---- sub-case test_calculate_hash_lnk success! ---- ---- sub-case test_calculate_hash_not_exist success! ---- --- case test_dim_tools_cmd_path success! --- TEST RESULT: SUCCESS! TEST CASES: 8 SUCCESS CASES: 8 FAIL CASES: 0 TEST SUB_CASES: 27 SUCCESS SUB_CASES: 27 FAIL SUB_CASES: 0 ~/build/BUILD/dim_tools-v1.0.1 + popd + RPM_EC=0 ++ jobs -p + exit 0 Processing files: dim_tools-1.0.1-1.ocs23.loongarch64 Provides: dim_tools = 1.0.1-1.ocs23 dim_tools(loongarch-64) = 1.0.1-1.ocs23 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) libcrypto.so.3()(64bit) libcrypto.so.3(OPENSSL_3.0.0)(64bit) libelf.so.1()(64bit) libelf.so.1(ELFUTILS_1.0)(64bit) libelf.so.1(ELFUTILS_1.6)(64bit) libkmod.so.2()(64bit) libkmod.so.2(LIBKMOD_5)(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/dim_tools-1.0.1-1.ocs23.loongarch64 Wrote: /builddir/build/RPMS/dim_tools-1.0.1-1.ocs23.loongarch64.rpm Child return code was: 0