Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/grubby.spec'], chrootPath='/var/lib/mock/dist-an23-build-155505-58313/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/grubby.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=1666742400 Wrote: /builddir/build/SRPMS/grubby-8.40-4.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/grubby.spec'], chrootPath='/var/lib/mock/dist-an23-build-155505-58313/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/grubby.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=1666742400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.MYRBBG + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf grubby-8.40-1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/grubby-8.40-1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd grubby-8.40-1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + git init hint: Using 'master' as the name for the initial branch. This default branch name hint: is subject to change. To configure the initial branch name to use in all hint: of your new repositories, which will suppress this warning, call: hint: hint: git config --global init.defaultBranch hint: hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and hint: 'development'. The just-created branch can be renamed via this command: hint: hint: git branch -m Initialized empty Git repository in /builddir/build/BUILD/grubby-8.40-1/.git/ + git config user.email noone@example.com + git config user.name 'no one' + git add . + git commit -a -q -m '8.40 baseline' + git am /builddir/build/SOURCES/0001-Fix-GCC-warnings-about-possible-string-truncations-a.patch /builddir/build/SOURCES/0002-Fix-stringop-overflow-warning.patch /builddir/build/SOURCES/0003-Fix-maybe-uninitialized-warning.patch /builddir/build/SOURCES/0005-Use-system-LDFLAGS.patch /builddir/build/SOURCES/0006-Honor-sbindir.patch /builddir/build/SOURCES/0007-Make-installkernel-to-use-kernel-install-scripts-on-.patch /builddir/build/SOURCES/0008-Add-usr-libexec-rpm-sort.patch /builddir/build/SOURCES/0009-Fix-build-with-rpm-4.16.patch /builddir/build/SOURCES/1000-grubby-support-anolis.patch Applying: Fix GCC warnings about possible string truncations and buffer overflows Applying: Fix stringop-overflow warning Applying: Fix maybe-uninitialized warning Applying: Use system LDFLAGS Applying: Honor sbindir Applying: Make installkernel to use kernel-install scripts on BLS configuration Applying: Add /usr/libexec/rpm-sort Applying: Fix build with rpm-4.16 Applying: grubby support anolis + git config --unset user.email + git config --unset user.name + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Ej1y1v + 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 grubby-8.40-1 + make -j64 gcc -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 -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 -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wno-unused-function -ggdb -DVERSION='"8.40"' -c -o grubby.o grubby.c gcc -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 -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 -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wno-unused-function -ggdb -DVERSION='"8.40"' -c -o log.o log.c gcc -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 -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 -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wno-unused-function -ggdb -DVERSION='"8.40"' -c -o rpm-sort.o rpm-sort.c rpm-sort.c: In function 'xstrdup': rpm-sort.c:39:21: error: implicit declaration of function 'strdup' [-Werror=implicit-function-declaration] 39 | void *ret = strdup(s); | ^~~~~~ rpm-sort.c:39:21: error: incompatible implicit declaration of built-in function 'strdup' [-Werror=builtin-declaration-mismatch] rpm-sort.c: In function 'read_file': rpm-sort.c:54:8: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration] 54 | if (!strcmp(input, "-")) | ^~~~~~ rpm-sort.c:11:1: note: include '' or provide a declaration of 'strcmp' 10 | #include +++ |+#include 11 | rpm-sort.c: In function 'split_package_string': rpm-sort.c:92:21: error: implicit declaration of function 'strrchr' [-Werror=implicit-function-declaration] 92 | package_release = strrchr (package_string, '-'); | ^~~~~~~ rpm-sort.c:92:21: note: include '' or provide a declaration of 'strrchr' rpm-sort.c:92:21: error: incompatible implicit declaration of built-in function 'strrchr' [-Werror=builtin-declaration-mismatch] rpm-sort.c:92:21: note: include '' or provide a declaration of 'strrchr' rpm-sort.c: In function 'cmpstrversp': rpm-sort.c:132:16: error: implicit declaration of function 'strverscmp' [-Werror=implicit-function-declaration] 132 | return strverscmp(*(char * const *)p1, *(char * const *)p2); | ^~~~~~~~~~ rpm-sort.c: In function 'package_version_compare': rpm-sort.c:156:13: error: 'strverscmp' undeclared (first use in this function) 156 | cmp = strverscmp; | ^~~~~~~~~~ rpm-sort.c:156:13: note: each undeclared identifier is reported only once for each function it appears in In file included from /usr/include/stdlib.h:587, from rpm-sort.c:4: rpm-sort.c:166:21: error: implicit declaration of function 'strlen' [-Werror=implicit-function-declaration] 166 | local_p = alloca (strlen (*(char * const *)p) + 1); | ^~~~~~ rpm-sort.c:166:21: note: include '' or provide a declaration of 'strlen' rpm-sort.c:166:21: error: incompatible implicit declaration of built-in function 'strlen' [-Werror=builtin-declaration-mismatch] rpm-sort.c:166:21: note: include '' or provide a declaration of 'strlen' rpm-sort.c:173:3: error: implicit declaration of function 'strcpy' [-Werror=implicit-function-declaration] 173 | strcpy (local_p, *(char * const *)p); | ^~~~~~ rpm-sort.c:173:3: note: include '' or provide a declaration of 'strcpy' rpm-sort.c:173:3: error: incompatible implicit declaration of built-in function 'strcpy' [-Werror=builtin-declaration-mismatch] rpm-sort.c:173:3: note: include '' or provide a declaration of 'strcpy' rpm-sort.c: In function 'add_input': rpm-sort.c:222:33: error: implicit declaration of function 'strchrnul' [-Werror=implicit-function-declaration] 222 | (position_of_newline = strchrnul (input_buffer, '\n'))) | ^~~~~~~~~ rpm-sort.c:222:31: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] 222 | (position_of_newline = strchrnul (input_buffer, '\n'))) | ^ rpm-sort.c:234:7: error: implicit declaration of function 'strncpy' [-Werror=implicit-function-declaration] 234 | strncpy (new, input_buffer, sz); | ^~~~~~~ rpm-sort.c:234:7: note: include '' or provide a declaration of 'strncpy' rpm-sort.c:234:7: error: incompatible implicit declaration of built-in function 'strncpy' [-Werror=builtin-declaration-mismatch] rpm-sort.c:234:7: note: include '' or provide a declaration of 'strncpy' rpm-sort.c: In function 'main': rpm-sort.c:313:3: error: implicit declaration of function 'memset' [-Werror=implicit-function-declaration] 313 | memset (&arguments, 0, sizeof (struct arguments)); | ^~~~~~ rpm-sort.c:313:3: note: include '' or provide a declaration of 'memset' rpm-sort.c:313:3: error: incompatible implicit declaration of built-in function 'memset' [-Werror=builtin-declaration-mismatch] rpm-sort.c:313:3: note: include '' or provide a declaration of 'memset' rpm-sort.c:329:7: error: incompatible implicit declaration of built-in function 'strcpy' [-Werror=builtin-declaration-mismatch] 329 | strcpy(arguments.inputs[0], "-"); | ^~~~~~ rpm-sort.c:329:7: note: include '' or provide a declaration of 'strcpy' cc1: all warnings being treated as errors make: *** [Makefile:38: rpm-sort.o] Error 1 make: *** Waiting for unfinished jobs.... error: Bad exit status from /var/tmp/rpm-tmp.Ej1y1v (%build) Bad exit status from /var/tmp/rpm-tmp.Ej1y1v (%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/grubby.spec