Mock Version: 1.4.21
Mock Version: 1.4.21
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/logrotate.spec'], chrootPath='/var/lib/mock/v8.1-base-1953-1336/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.utf8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7f347ff1c828>timeout=86400uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/logrotate.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.utf8'} and shell False
warning: bogus date in %changelog: Wed Aug 01 2011 Jan Kaluza <jkaluza@redhat.com> 3.8.0-4
warning: bogus date in %changelog: Wed Jul 18 2003 Dan Walsh <dwalsh@redhat.com> 3.6.9-2
Building target platforms: x86_64
Building for target x86_64
Wrote: /builddir/build/SRPMS/logrotate-3.8.6-17.xs1.0.0.xcpng8.1.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/logrotate.spec'], chrootPath='/var/lib/mock/v8.1-base-1953-1336/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.utf8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7f347ff1c828>timeout=86400uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/logrotate.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.utf8'} and shell False
warning: bogus date in %changelog: Wed Aug 01 2011 Jan Kaluza <jkaluza@redhat.com> 3.8.0-4
warning: bogus date in %changelog: Wed Jul 18 2003 Dan Walsh <dwalsh@redhat.com> 3.6.9-2
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.r0SrsX
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf logrotate-3.8.6
+ /usr/bin/gzip -dc /builddir/build/SOURCES/logrotate-3.8.6.tar.gz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd logrotate-3.8.6
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-force.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-r465.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-sortglob.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-r460.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-compress-subject.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-olddircopy.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-state-clean.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-statusfile.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-diagnostic.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-olddir-missingok.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-longdate-crash.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-createolddir.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-selinux.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-su-username.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-copy-and-copytruncate.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-weekly.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-config-mode-err.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-upstream-url.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-monthly-dst.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/logrotate-3.8.6-unlink-on-failure.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/0001-createOutputFile-rename-already-existing-file.patch
+ /usr/bin/patch -p1 -s
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.LDwOOK
+ umask 022
+ cd /builddir/build/BUILD
+ cd logrotate-3.8.6
+ make -j2 'RPM_OPT_FLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic' WITH_SELINUX=yes WITH_ACL=yes
cc -E -Wall -D_GNU_SOURCE -DLinux -DVERSION=\"3.8.6\" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -DWITH_SELINUX -DWITH_ACL    -M logrotate.c log.c config.c basenames.c  > .depend
/bin/sh: cc: command not found
make: *** [depend] Error 127
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.LDwOOK (%build)
    bogus date in %changelog: Wed Aug 01 2011 Jan Kaluza <jkaluza@redhat.com> 3.8.0-4
    bogus date in %changelog: Wed Jul 18 2003 Dan Walsh <dwalsh@redhat.com> 3.6.9-2
    Bad exit status from /var/tmp/rpm-tmp.LDwOOK (%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 95, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 746, 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/logrotate.spec