Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/kexec-tools.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-275041-64202/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=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/kexec-tools.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 Wrote: /builddir/build/SRPMS/kexec-tools-2.0.24-6.0.4.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/kexec-tools.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-275041-64202/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=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/kexec-tools.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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Sj9kYd + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf kexec-tools-2.0.24 + /usr/bin/xz -dc /builddir/build/SOURCES/kexec-tools-2.0.24.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd kexec-tools-2.0.24 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mkdir -p -m755 kcp + tar -z -x -v -f /builddir/build/SOURCES/1.7.1.tar.gz makedumpfile-1.7.1/ makedumpfile-1.7.1/.gitignore makedumpfile-1.7.1/COPYING makedumpfile-1.7.1/IMPLEMENTATION makedumpfile-1.7.1/Makefile makedumpfile-1.7.1/README makedumpfile-1.7.1/arch/ makedumpfile-1.7.1/arch/arm.c makedumpfile-1.7.1/arch/arm64.c makedumpfile-1.7.1/arch/ia64.c makedumpfile-1.7.1/arch/mips64.c makedumpfile-1.7.1/arch/ppc.c makedumpfile-1.7.1/arch/ppc64.c makedumpfile-1.7.1/arch/s390x.c makedumpfile-1.7.1/arch/sparc64.c makedumpfile-1.7.1/arch/x86.c makedumpfile-1.7.1/arch/x86_64.c makedumpfile-1.7.1/cache.c makedumpfile-1.7.1/cache.h makedumpfile-1.7.1/common.h makedumpfile-1.7.1/detect_cycle.c makedumpfile-1.7.1/detect_cycle.h makedumpfile-1.7.1/diskdump_mod.h makedumpfile-1.7.1/dwarf_info.c makedumpfile-1.7.1/dwarf_info.h makedumpfile-1.7.1/elf_info.c makedumpfile-1.7.1/elf_info.h makedumpfile-1.7.1/eppic_scripts/ makedumpfile-1.7.1/eppic_scripts/README makedumpfile-1.7.1/eppic_scripts/ap_messages_3_10_to_4_8.c makedumpfile-1.7.1/eppic_scripts/dir_names_3_10_to_3_13.c makedumpfile-1.7.1/eppic_scripts/dir_names_3_14_to_4_8.c makedumpfile-1.7.1/eppic_scripts/keyring_3_10_to_4_3.c makedumpfile-1.7.1/eppic_scripts/keyring_4_4_to_4_8.c makedumpfile-1.7.1/eppic_scripts/proc_names_3_10_to_4_8.c makedumpfile-1.7.1/eppic_scripts/tcp_sk_buf_3_10_to_4_8.c makedumpfile-1.7.1/eppic_scripts/udp_sk_buf_3_10_to_4_8.c makedumpfile-1.7.1/eppic_scripts/unix_sk_buff_3_10_to_4_8.c makedumpfile-1.7.1/eppic_scripts/vhost_net_buffers_3_10_to_3_18.c makedumpfile-1.7.1/eppic_scripts/vhost_net_buffers_3_19_to_4_8.c makedumpfile-1.7.1/eppic_scripts/vhost_scsi_buffers_3_10_to_4_8.c makedumpfile-1.7.1/erase_info.c makedumpfile-1.7.1/erase_info.h makedumpfile-1.7.1/extension_eppic.c makedumpfile-1.7.1/extension_eppic.h makedumpfile-1.7.1/makedumpfile-R.pl makedumpfile-1.7.1/makedumpfile.8.in makedumpfile-1.7.1/makedumpfile.c makedumpfile-1.7.1/makedumpfile.conf makedumpfile-1.7.1/makedumpfile.conf.5.in makedumpfile-1.7.1/makedumpfile.h makedumpfile-1.7.1/makedumpfile.spec makedumpfile-1.7.1/print_info.c makedumpfile-1.7.1/print_info.h makedumpfile-1.7.1/printk.c makedumpfile-1.7.1/sadump_info.c makedumpfile-1.7.1/sadump_info.h makedumpfile-1.7.1/sadump_mod.h makedumpfile-1.7.1/tools.c + tar -z -x -v -f /builddir/build/SOURCES/eppic_050615.tar.gz eppic/ eppic/libeppic/ eppic/libeppic/eppic_func.c eppic/libeppic/eppic_node.c eppic/libeppic/eppic_stat.c eppic/libeppic/eppicpp-lsed eppic/libeppic/eppic_member.c eppic/libeppic/eppic_alloc.c eppic/libeppic/eppic_type.c eppic/libeppic/eppic_input.c eppic/libeppic/eppic_api.c eppic/libeppic/eppic_var.c eppic/libeppic/eppic_print.c eppic/libeppic/eppic_define.c eppic/libeppic/eppic_num.c eppic/libeppic/eppic_case.c eppic/libeppic/eppic_util.c eppic/libeppic/eppicpp.y eppic/libeppic/eppic-lsed eppic/libeppic/README eppic/libeppic/eppic.l eppic/libeppic/eppic.y eppic/libeppic/eppicpp.l eppic/libeppic/mkbaseop.c eppic/libeppic/Makefile eppic/libeppic/eppic.h eppic/libeppic/eppic_str.c eppic/libeppic/eppic_builtin.c eppic/libeppic/eppic_op.c eppic/libeppic/eppic_api.h eppic/applications/ eppic/applications/crash/ eppic/applications/crash/code/ eppic/applications/crash/code/shm.c eppic/applications/crash/code/idr.c eppic/applications/crash/code/sem.c eppic/applications/crash/code/util.c eppic/applications/crash/code/msg.c eppic/applications/crash/code/include/ eppic/applications/crash/code/include/ipc/ eppic/applications/crash/code/include/ipc/util.h eppic/applications/crash/code/include/ipc/~util.h eppic/applications/crash/code/include/kernel.h eppic/applications/crash/code/include/rculist.h eppic/applications/crash/code/include/shm.h eppic/applications/crash/code/include/idr.h eppic/applications/crash/code/include/stddef.h eppic/applications/crash/code/include/list.h eppic/applications/crash/code/include/page.h eppic/applications/crash/code/include/ipcs.h eppic/applications/crash/code/ipcs.c eppic/applications/crash/README.code eppic/applications/crash/eppic.mk eppic/applications/crash/eppic.c + echo 'Patch #601 (rhelonly-kexec-tools-2.0.16-koji-build-fail-workaround.patch):' Patch #601 (rhelonly-kexec-tools-2.0.16-koji-build-fail-workaround.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file purgatory/Makefile + echo 'Patch #602 (rhelonly-kexec-tools-2.0.18-eppic-fix-issues-with-hardening-flags.patch):' Patch #602 (rhelonly-kexec-tools-2.0.18-eppic-fix-issues-with-hardening-flags.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file eppic/libeppic/Makefile + echo 'Patch #603 (kexec-tools-2.0.24-Add-LoongArch-support.patch):' Patch #603 (kexec-tools-2.0.24-Add-LoongArch-support.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file config/config.guess patching file config/config.sub patching file configure patching file configure.ac patching file include/elf.h patching file include/image.h patching file kexec/Makefile patching file kexec/arch/loongarch/Makefile patching file kexec/arch/loongarch/crashdump-loongarch.c patching file kexec/arch/loongarch/crashdump-loongarch.h patching file kexec/arch/loongarch/image-header.h patching file kexec/arch/loongarch/include/arch/options.h patching file kexec/arch/loongarch/iomem.h patching file kexec/arch/loongarch/kexec-elf-loongarch.c patching file kexec/arch/loongarch/kexec-elf-rel-loongarch.c patching file kexec/arch/loongarch/kexec-loongarch.c patching file kexec/arch/loongarch/kexec-loongarch.h patching file kexec/arch/loongarch/kexec-pei-loongarch.c patching file kexec/kexec-syscall.h patching file kexec/kexec.c patching file kexec/kexec.h patching file purgatory/Makefile patching file purgatory/arch/loongarch/Makefile patching file purgatory/arch/loongarch/console-loongarch.c patching file purgatory/arch/loongarch/purgatory-loongarch.c patching file purgatory/arch/loongarch/purgatory-loongarch.h + echo 'Patch #604 (kexec-tools-2.0.24-Add-New-Segment.patch):' Patch #604 (kexec-tools-2.0.24-Add-New-Segment.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file kexec/arch/i386/x86-linux-setup.c + echo 'Patch #701 (rhelonly-kexec-tools-2.0.20-makedumpfile-arm64-Add-support-for-ARMv8.2-LVA-52-bi.patch):' Patch #701 (rhelonly-kexec-tools-2.0.20-makedumpfile-arm64-Add-support-for-ARMv8.2-LVA-52-bi.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file makedumpfile-1.7.1/arch/arm64.c patching file makedumpfile-1.7.1/makedumpfile.c Hunk #1 succeeded at 2485 (offset 68 lines). Hunk #2 succeeded at 2932 (offset 68 lines). patching file makedumpfile-1.7.1/makedumpfile.h + echo 'Patch #702 (kexec-tools-2.0.24-makedumpfile-Avoid_false_positive_mem_section_validation_with_vmlinux.patch):' Patch #702 (kexec-tools-2.0.24-makedumpfile-Avoid_false_positive_mem_section_validation_with_vmlinux.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 (Patch is indented 1 space.) patching file makedumpfile-1.7.1/makedumpfile.c Hunk #1 succeeded at 3700 (offset 2 lines). Hunk #2 succeeded at 3728 (offset 2 lines). + echo 'Patch #703 (kexec-tools-2.0.22-makedumpfile-Add-LoongArch-support.patch):' Patch #703 (kexec-tools-2.0.22-makedumpfile-Add-LoongArch-support.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file makedumpfile-1.7.1/Makefile patching file makedumpfile-1.7.1/arch/loongarch64.c patching file makedumpfile-1.7.1/makedumpfile.h Hunk #1 succeeded at 996 (offset 5 lines). Hunk #2 succeeded at 1200 (offset 5 lines). Hunk #3 succeeded at 2351 (offset 16 lines). + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.maW4S4 + umask 022 + cd /builddir/build/BUILD + cd kexec-tools-2.0.24 + autoreconf + 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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config/config.guess ++ basename ./config/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config/config.guess '/usr/lib/rpm/redhat/config.guess' -> './config/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config/config.sub ++ basename ./config/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config/config.sub '/usr/lib/rpm/redhat/config.sub' -> './config/config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=x86_64-Anolis-linux --host=x86_64-Anolis-linux --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --sbindir=/usr/sbin configure: WARNING: unrecognized options: --disable-dependency-tracking checking for x86_64-Anolis-linux-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking build system type... x86_64-Anolis-linux-gnu checking host system type... x86_64-Anolis-linux-gnu checking target system type... x86_64-Anolis-linux-gnu checking how to run the C preprocessor... gcc -E checking for x86_64-Anolis-linux-ld... no checking for ld... ld checking for x86_64-Anolis-linux-as... no checking for as... as checking for x86_64-Anolis-linux-objcopy... no checking for objcopy... objcopy checking for x86_64-Anolis-linux-ar... no checking for ar... ar checking for x86_64-Anolis-linux-strip... no checking for strip... strip checking whether gcc accepts -fno-zero-initialized-in-bss... Yes checking for a BSD-compatible install... /usr/bin/install -c checking for chmod... chmod checking for mkdir... mkdir checking for rm... rm checking for cp... cp checking for ln... ln checking for tar... tar checking for rpmbuild... rpmbuild checking for sed... sed checking for find... find checking for xargs... xargs checking for dirname... dirname checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for inflateInit_ in -lz... yes checking lzma.h usability... yes checking lzma.h presence... yes checking for lzma.h... yes checking for lzma_code in -llzma... yes checking xenctrl.h usability... no checking xenctrl.h presence... no checking for xenctrl.h... no configure: creating ./config.status config.status: creating Makefile config.status: creating include/config.h configure: WARNING: unrecognized options: --disable-dependency-tracking + rm -f kexec-tools.spec.in + cp /builddir/build/SOURCES/kexec-kdump-howto.txt . + cp /builddir/build/SOURCES/kdump-in-cluster-environment.txt . + cp /builddir/build/SOURCES/live-image-kdump-howto.txt . + cp /builddir/build/SOURCES/early-kdump-howto.txt . + cp /builddir/build/SOURCES/supported-kdump-targets.txt . + cp /builddir/build/SOURCES/fadump-howto.txt . + make gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/kexec.o kexec/kexec.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/ifdown.o kexec/ifdown.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/kexec-elf.o kexec/kexec-elf.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/kexec-elf-exec.o kexec/kexec-elf-exec.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/kexec-elf-core.o kexec/kexec-elf-core.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/kexec-elf-rel.o kexec/kexec-elf-rel.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/kexec-elf-boot.o kexec/kexec-elf-boot.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/kexec-iomem.o kexec/kexec-iomem.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/firmware_memmap.o kexec/firmware_memmap.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/crashdump.o kexec/crashdump.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/crashdump-xen.o kexec/crashdump-xen.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/phys_arch.o kexec/phys_arch.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/lzma.o kexec/lzma.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/zlib.o kexec/zlib.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/kexec-xen.o kexec/kexec-xen.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/symbols.o kexec/symbols.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/proc_iomem.o kexec/proc_iomem.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/virt_to_phys.o kexec/virt_to_phys.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/phys_to_virt.o kexec/phys_to_virt.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/add_segment.o kexec/add_segment.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/add_buffer.o kexec/add_buffer.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/arch_reuse_initrd.o kexec/arch_reuse_initrd.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/arch/i386/kexec-elf-x86.o kexec/arch/i386/kexec-elf-x86.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/arch/i386/kexec-bzImage.o kexec/arch/i386/kexec-bzImage.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/arch/i386/kexec-multiboot-x86.o kexec/arch/i386/kexec-multiboot-x86.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/arch/i386/kexec-mb2-x86.o kexec/arch/i386/kexec-mb2-x86.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/arch/i386/kexec-beoboot-x86.o kexec/arch/i386/kexec-beoboot-x86.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/arch/i386/kexec-nbi.o kexec/arch/i386/kexec-nbi.c gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/x86_64/include -c -MD -o kexec/arch/i386/x86-linux-setup.o kexec/arch/i386/x86-linux-setup.c In file included from kexec/arch/i386/x86-linux-setup.c:35: kexec/arch/i386/x86-linux-setup.c: In function 'setup_linux_bootloader_parameters_high': kexec/arch/i386/x86-linux-setup.c:95:34: error: 'align' undeclared (first use in this function) pstore_sz = _ALIGN(PSTORE_SIZE, align); ^~~~~ kexec/arch/i386/../../kexec.h:104:50: note: in definition of macro '_ALIGN_UP_MASK' #define _ALIGN_UP_MASK(addr, mask) (((addr) + (mask)) & ~(mask)) ^~~~ kexec/arch/i386/../../kexec.h:114:32: note: in expansion of macro '_ALIGN_UP' #define _ALIGN(addr, size) _ALIGN_UP(addr, size) ^~~~~~~~~ kexec/arch/i386/x86-linux-setup.c:95:14: note: in expansion of macro '_ALIGN' pstore_sz = _ALIGN(PSTORE_SIZE, align); ^~~~~~ kexec/arch/i386/x86-linux-setup.c:95:34: note: each undeclared identifier is reported only once for each function it appears in pstore_sz = _ALIGN(PSTORE_SIZE, align); ^~~~~ kexec/arch/i386/../../kexec.h:104:50: note: in definition of macro '_ALIGN_UP_MASK' #define _ALIGN_UP_MASK(addr, mask) (((addr) + (mask)) & ~(mask)) ^~~~ kexec/arch/i386/../../kexec.h:114:32: note: in expansion of macro '_ALIGN_UP' #define _ALIGN(addr, size) _ALIGN_UP(addr, size) ^~~~~~~~~ kexec/arch/i386/x86-linux-setup.c:95:14: note: in expansion of macro '_ALIGN' pstore_sz = _ALIGN(PSTORE_SIZE, align); ^~~~~~ kexec/arch/i386/x86-linux-setup.c:99:6: warning: implicit declaration of function 'delete_memmap' [-Wimplicit-function-declaration] if (delete_memmap(memmap_p, &nr_memmap, pstore_start, pstore_sz) < 0) { ^~~~~~~~~~~~~ kexec/arch/i386/x86-linux-setup.c:99:20: error: 'memmap_p' undeclared (first use in this function); did you mean 'mem_max'? if (delete_memmap(memmap_p, &nr_memmap, pstore_start, pstore_sz) < 0) { ^~~~~~~~ mem_max kexec/arch/i386/x86-linux-setup.c:99:31: error: 'nr_memmap' undeclared (first use in this function) if (delete_memmap(memmap_p, &nr_memmap, pstore_start, pstore_sz) < 0) { ^~~~~~~~~ In file included from kexec/arch/i386/x86-linux-setup.c:35: kexec/arch/i386/../../kexec.h:64:18: warning: 'return' with a value, in function returning void #define EFAILED -1 /* default error code */ ^ kexec/arch/i386/x86-linux-setup.c:101:11: note: in expansion of macro 'EFAILED' return EFAILED; ^~~~~~~ kexec/arch/i386/x86-linux-setup.c:56:6: note: declared here void setup_linux_bootloader_parameters_high( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kexec/arch/i386/x86-linux-setup.c: In function 'get_bootparam': kexec/arch/i386/x86-linux-setup.c:519:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(data_file, buf, size); ^~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:124: kexec/arch/i386/x86-linux-setup.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.maW4S4 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.maW4S4 (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/kexec-tools.spec\n', 1)] 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 598, 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 --noclean --target x86_64 --nodeps /builddir/build/SPECS/kexec-tools.spec