Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/checkpolicy.spec'], chrootPath='/var/lib/mock/dist-an8.6-build-171321-58896/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 aarch64 --nodeps /builddir/build/SPECS/checkpolicy.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: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/checkpolicy-2.5-8.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/checkpolicy.spec'], chrootPath='/var/lib/mock/dist-an8.6-build-171321-58896/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 aarch64 --nodeps /builddir/build/SPECS/checkpolicy.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: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.sumBkv + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf checkpolicy-2.5 + /usr/bin/gzip -dc /builddir/build/SOURCES/checkpolicy-2.5.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd checkpolicy-2.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (checkpolicy-rhel.patch):' Patch #1 (checkpolicy-rhel.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .rhel --fuzz=0 patching file Android.mk patching file ChangeLog patching file Makefile patching file checkmodule.c patching file checkpolicy.c patching file policy_define.c patching file policy_define.h patching file policy_parse.y patching file policy_scan.l patching file test/dismod.c patching file test/dispol.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Pi5FRU + umask 022 + cd /builddir/build/BUILD + cd checkpolicy-2.5 + make clean rm -f checkpolicy checkmodule y.tab.o lex.yy.o queue.o module_compiler.o parse_util.o policy_define.o checkpolicy.o y.tab.o lex.yy.o queue.o module_compiler.o parse_util.o policy_define.o checkmodule.o y.tab.c y.tab.h lex.yy.c make -C test clean make[1]: Entering directory '/builddir/build/BUILD/checkpolicy-2.5/test' rm -f dispol dismod *.o make[1]: Leaving directory '/builddir/build/BUILD/checkpolicy-2.5/test' + make LIBDIR=/usr/lib64 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -I/usr/include -o checkpolicy.o -c checkpolicy.c checkpolicy.c: In function 'main': checkpolicy.c:711:8: warning: implicit declaration of function 'isdigit' [-Wimplicit-function-declaration] if (isdigit(ans[0])) { ^~~~~~~ bison -y -d policy_parse.y cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -I/usr/include -o y.tab.o -c y.tab.c flex policy_scan.l cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -I/usr/include -o lex.yy.o -c lex.yy.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -I/usr/include -o queue.o -c queue.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -I/usr/include -o module_compiler.o -c module_compiler.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -I/usr/include -o parse_util.o -c parse_util.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -I/usr/include -o policy_define.o -c policy_define.c policy_define.c: In function 'define_filename_trans': policy_define.c:3305:13: warning: assignment to 'filename_trans_t *' {aka 'struct filename_trans *'} from incompatible pointer type 'hashtab_t' {aka 'struct hashtab_val *'} [-Wincompatible-pointer-types] for (ft = policydbp->filename_trans; ft; ft = ft->next) { ^ policy_define.c:3305:53: error: 'filename_trans_t' {aka 'struct filename_trans'} has no member named 'next' for (ft = policydbp->filename_trans; ft; ft = ft->next) { ^~ policy_define.c:3326:7: error: 'filename_trans_t' {aka 'struct filename_trans'} has no member named 'next' ft->next = policydbp->filename_trans; ^~ policy_define.c:3327:31: warning: assignment to 'hashtab_t' {aka 'struct hashtab_val *'} from incompatible pointer type 'filename_trans_t *' {aka 'struct filename_trans *'} [-Wincompatible-pointer-types] policydbp->filename_trans = ft; ^ policy_define.c:3337:9: error: 'filename_trans_t' {aka 'struct filename_trans'} has no member named 'otype'; did you mean 'stype'? ft->otype = otype; ^~~~~ stype make: *** [Makefile:35: policy_define.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.Pi5FRU (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Pi5FRU (%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 aarch64 --nodeps /builddir/build/SPECS/checkpolicy.spec