Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/libxudp.spec'], chrootPath='/var/lib/mock/dist-an23-build-118833-45957/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/libxudp.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1660521600 Wrote: /builddir/build/SRPMS/libxudp-1.0.0-1.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/libxudp.spec'], chrootPath='/var/lib/mock/dist-an23-build-118833-45957/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/libxudp.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1660521600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8xuqG0 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libxudp-1.0.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/libxudp-1.0.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libxudp-1.0.0 + /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.SuiMmM + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 libxudp-1.0.0 + make prefix=/builddir/build/BUILDROOT/libxudp-1.0.0-1.an23.x86_64 SO=1 mkdir objs 2>/dev/null rm -rf objs/* CC objs/common/ifapi.o CC objs/common/log.o CC objs/bpf/bpf.o CC objs/xudp/xudp.o CC objs/xudp/bind.o CC objs/xudp/packet.o CC objs/xudp/route.o CC objs/xudp/neigh.o CC objs/xudp/ping.o CC objs/xudp/xsk.o CC objs/xudp/tx.o CC objs/xudp/group_api.o CC objs/group/channel.o CC objs/group/group.o CC objs/group/dump.o make -C kern XUDP_DEBUG= ../objs/kern/em_kern_hash.o make[1]: Entering directory '/builddir/build/BUILD/libxudp-1.0.0/kern' clang kern_hash.o.bc llc kern_hash.o LD em_kern_hash.o make[1]: Leaving directory '/builddir/build/BUILD/libxudp-1.0.0/kern' make -C kern XUDP_DEBUG= ../objs/kern/em_kern_dict.o make[1]: Entering directory '/builddir/build/BUILD/libxudp-1.0.0/kern' clang kern_dict.o.bc llc kern_dict.o LD em_kern_dict.o make[1]: Leaving directory '/builddir/build/BUILD/libxudp-1.0.0/kern' make -C kern XUDP_DEBUG= ../objs/kern/em_kern_rr.o make[1]: Entering directory '/builddir/build/BUILD/libxudp-1.0.0/kern' clang kern_rr.o.bc llc kern_rr.o LD em_kern_rr.o make[1]: Leaving directory '/builddir/build/BUILD/libxudp-1.0.0/kern' CC objs/xudp/kern_ops.o fatal: not a git repository (or any of the parent directories): .git LD objs/libxudp.so.1.0.0 AR objs/libxudp.a CC objs/xudp/xudp_map.o CC objs/group/xudp_dump.o xudp_dump.c: In function 'consume': xudp_dump.c:266:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 266 | write(dump_conf.outfd, &hdr, sizeof(hdr)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xudp_dump.c: In function 'save_packet': xudp_dump.c:214:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 214 | write(dump_conf.outfd, &hdr, sizeof(hdr)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xudp_dump.c:219:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 219 | write(dump_conf.outfd, r->pkt + pos, pkt->len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xudp_dump.c:223:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 223 | write(dump_conf.outfd, r->pkt + pos, left); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xudp_dump.c:224:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 224 | write(dump_conf.outfd, r->pkt, pkt->len - left); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/fcntl.h:342, from xudp_dump.c:16: In function 'open', inlined from 'main' at xudp_dump.c:364:21: /usr/include/bits/fcntl2.h:50:11: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments 50 | __open_missing_mode (); | ^~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:77: objs/group/xudp_dump.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.SuiMmM (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.SuiMmM (%build) 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 x86_64 --nodeps /builddir/build/SPECS/libxudp.spec