Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/bam.spec'], chrootPath='/var/lib/mock/f40-build-761677-121629/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=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/bam.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: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689724800 Wrote: /builddir/build/SRPMS/bam-0.5.1-13.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/bam.spec'], chrootPath='/var/lib/mock/f40-build-761677-121629/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=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/bam.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: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689724800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.I8wOLL + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf bam-0.5.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/v0.5.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd bam-0.5.1 + rm -rf /builddir/build/BUILD/bam-0.5.1-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/bam-0.5.1-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.NFR1AG + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd bam-0.5.1 + sh -x make_unix.sh -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer + case "$(uname)" in ++ uname + ccorder='gcc clang' + ldl=-ldl + '[' -z gcc ']' + echo 'compiling using gcc...' compiling using gcc... + gcc -Wall -pedantic src/tools/txt2c.c -o src/tools/txt2c + src/tools/txt2c src/base.lua src/tools.lua src/driver_gcc.lua src/driver_clang.lua src/driver_cl.lua src/driver_solstudio.lua src/driver_xlc.lua + gcc -Wall -pedantic src/cache.c src/context.c src/dep_cpp.c src/dep_search.c src/luafuncs.c src/main.c src/mem.c src/node.c src/path.c src/support.c src/lua/lapi.c src/lua/lauxlib.c src/lua/lbaselib.c src/lua/lbitlib.c src/lua/lcode.c src/lua/lcorolib.c src/lua/lctype.c src/lua/ldblib.c src/lua/ldebug.c src/lua/ldo.c src/lua/ldump.c src/lua/lfunc.c src/lua/lgc.c src/lua/linit.c src/lua/liolib.c src/lua/llex.c src/lua/lmathlib.c src/lua/lmem.c src/lua/loadlib.c src/lua/lobject.c src/lua/lopcodes.c src/lua/loslib.c src/lua/lparser.c src/lua/lstate.c src/lua/lstring.c src/lua/lstrlib.c src/lua/ltable.c src/lua/ltablib.c src/lua/ltm.c src/lua/lundump.c src/lua/lutf8lib.c src/lua/lvm.c src/lua/lzio.c -o bam -I src/lua -lm -lpthread -ldl -O2 -rdynamic -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer src/context.c: In function ‘threads_run’: src/context.c:132:91: warning: ‘%%’ directive writing 1 byte into a region of size between 0 and 27 [-Wformat-overflow=] 132 | sprintf(buf, "\033[01;32m[%%%dd/%%%dd] \033[01;36m[%%%dd]\033[00m %%s\n", jobdigits, jobdigits, threaddigits); | ^~ In file included from /usr/include/stdio.h:980, from src/lua/lauxlib.h:13, from src/context.c:3: In function ‘sprintf’, inlined from ‘runjob_print_report’ at src/context.c:132:4, inlined from ‘run_job’ at src/context.c:240:2, inlined from ‘threads_run’ at src/context.c:403:4: /usr/include/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output between 41 and 68 bytes into a destination of size 64 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ src/luafuncs.c: In function ‘lf_path_dir’: src/luafuncs.c:1140:9: warning: ‘__builtin_strncpy’ specified bound 1024 equals destination size [-Wstringop-truncation] 1140 | strncpy(buffer, path, sizeof(buffer)); | ^ src/main.c: In function ‘bam.constprop’: src/main.c:764:50: warning: ‘%s’ directive writing up to 63 bytes into a region of size 27 [-Wformat-overflow=] 764 | sprintf(depcache_filename, ".bam/%s", hashstr); | ^~ ~~~~~~~ In file included from /usr/include/stdio.h:980, from src/main.c:5: In function ‘sprintf’, inlined from ‘bam.constprop’ at src/main.c:764:3: /usr/include/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output between 6 and 69 bytes into a destination of size 32 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ /usr/bin/ld: /tmp/ccjhA8En.o: in function `os_tmpname': /builddir/build/BUILD/bam-0.5.1/src/lua/loslib.c:169:(.text+0x39e): warning: the use of `tmpnam' is dangerous, better use `mkstemp' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.oE6lve + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/bam-0.5.1-13.fc40.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/bam-0.5.1-13.fc40.riscv64 ++ dirname /builddir/build/BUILDROOT/bam-0.5.1-13.fc40.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/bam-0.5.1-13.fc40.riscv64 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd bam-0.5.1 + install -D -p -m 0755 bam /builddir/build/BUILDROOT/bam-0.5.1-13.fc40.riscv64/usr/bin/bam + /usr/bin/find-debuginfo -j4 --strict-build-id -m -i --build-id-seed 0.5.1-13.fc40 --unique-debug-suffix -0.5.1-13.fc40.riscv64 --unique-debug-src-base bam-0.5.1-13.fc40.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/bam-0.5.1 find-debuginfo: starting Extracting debug info from 1 files DWARF-compressing 1 files sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/bam-0.5.1-13.fc40.riscv64 2068 blocks find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j4 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: bam-0.5.1-13.fc40.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.xH6hA9 + umask 022 + cd /builddir/build/BUILD + cd bam-0.5.1 + DOCDIR=/builddir/build/BUILDROOT/bam-0.5.1-13.fc40.riscv64/usr/share/doc/bam + export LC_ALL= + LC_ALL= + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/bam-0.5.1-13.fc40.riscv64/usr/share/doc/bam + cp -pr /builddir/build/BUILD/bam-0.5.1/docs /builddir/build/BUILDROOT/bam-0.5.1-13.fc40.riscv64/usr/share/doc/bam + cp -pr /builddir/build/BUILD/bam-0.5.1/examples /builddir/build/BUILDROOT/bam-0.5.1-13.fc40.riscv64/usr/share/doc/bam + RPM_EC=0 ++ jobs -p + exit 0 Provides: bam = 0.5.1-13.fc40 bam(riscv-64) = 0.5.1-13.fc40 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.27)(64bit) rtld(GNU_HASH) Processing files: bam-debugsource-0.5.1-13.fc40.riscv64 Provides: bam-debugsource = 0.5.1-13.fc40 bam-debugsource(riscv-64) = 0.5.1-13.fc40 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: bam-debuginfo-0.5.1-13.fc40.riscv64 Provides: bam-debuginfo = 0.5.1-13.fc40 bam-debuginfo(riscv-64) = 0.5.1-13.fc40 debuginfo(build-id) = fb8f7fadb55ec36d0d0689702928a91ea5d8f463 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: bam-debugsource(riscv-64) = 0.5.1-13.fc40 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/bam-0.5.1-13.fc40.riscv64 Wrote: /builddir/build/RPMS/bam-0.5.1-13.fc40.riscv64.rpm Wrote: /builddir/build/RPMS/bam-debuginfo-0.5.1-13.fc40.riscv64.rpm Wrote: /builddir/build/RPMS/bam-debugsource-0.5.1-13.fc40.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.0F4Bdu + umask 022 + cd /builddir/build/BUILD + cd bam-0.5.1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/bam-0.5.1-13.fc40.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.9wEb6A + umask 022 + cd /builddir/build/BUILD + rm -rf /builddir/build/BUILD/bam-0.5.1-SPECPARTS + rm -rf bam-0.5.1 bam-0.5.1.gemspec + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0