Mock Version: 2.17
Mock Version: 2.17
Mock Version: 2.17
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/kmod-drbd.spec'], chrootPath='/var/lib/mock/v8.3-incoming-6933-16804/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': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7f27ab6fc6d8>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/kmod-drbd.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': 'C.UTF-8'} and shell False
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "C.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
rpm: no arguments given for query
 "XXX selected  based on installed kernel-*devel packages"warning: bogus date in %changelog: Wed Dec 22 2023 Philipp Reisner <phil@linbit.com> - 9.2.7
Building target platforms: x86_64
Building for target x86_64
Wrote: /builddir/build/SRPMS/kmod-drbd-9.2.10-1.0.xcpng.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/kmod-drbd.spec'], chrootPath='/var/lib/mock/v8.3-incoming-6933-16804/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': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7f27ab6fc6d8>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/kmod-drbd.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': 'C.UTF-8'} and shell False
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "C.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
warning: bogus date in %changelog: Wed Dec 22 2023 Philipp Reisner <phil@linbit.com> - 9.2.7
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.BVAeo4
+ umask 022
+ cd /builddir/build/BUILD
+ rm -f
+ cd /builddir/build/BUILD
+ rm -rf drbd-9.2.10
+ /usr/bin/gzip -dc /builddir/build/SOURCES/drbd-9.2.10.tar.gz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd drbd-9.2.10
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
Patch #1001 (0001-Revert-drbd-rework-autopromote.patch):
+ echo 'Patch #1001 (0001-Revert-drbd-rework-autopromote.patch):'
+ /usr/bin/cat /builddir/build/SOURCES/0001-Revert-drbd-rework-autopromote.patch
+ /usr/bin/patch -p1 --fuzz=0
patching file drbd/drbd_int.h
patching file drbd/drbd_main.c
patching file drbd/drbd_nl.c
patching file drbd/drbd_req.c
patching file drbd/drbd_state.c
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.e0gzNV
+ umask 022
+ cd /builddir/build/BUILD
+ cd drbd-9.2.10
+ make -C drbd -j8 all KDIR=/lib/modules/4.19.0+1/build
make: Entering directory `/builddir/build/BUILD/drbd-9.2.10/drbd'
make -C /lib/modules/4.19.0+1/build    "PRE_CFLAGS=" M=/builddir/build/BUILD/drbd-9.2.10/drbd obj-m=dummy-for-compat.o dummy-for-compat-h.o
    Calling toplevel makefile of kernel source tree, which I believe is in
    KDIR=/lib/modules/4.19.0+1/build
./scripts/gcc-version.sh: line 26: gcc: command not found
./scripts/gcc-version.sh: line 27: gcc: command not found
make[1]: gcc: Command not found
make[1]: gcc: Command not found
/bin/bash: gcc: command not found
/builddir/build/BUILD/drbd-9.2.10/drbd/Kbuild:100: *** compiler not present or misbehaving.  Stop.
make[1]: *** [dummy-for-compat-h.o] Error 2
make: Leaving directory `/builddir/build/BUILD/drbd-9.2.10/drbd'
make: *** [compat.h] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.e0gzNV (%build)
    bogus date in %changelog: Wed Dec 22 2023 Philipp Reisner <phil@linbit.com> - 9.2.7
    Bad exit status from /var/tmp/rpm-tmp.e0gzNV (%build)
RPM build errors:
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/kmod-drbd.spec