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/device-mapper-multipath.spec'], chrootPath='/var/lib/mock/dist-an23-build-259654-63801/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/device-mapper-multipath.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=1683244800 Wrote: /builddir/build/SRPMS/device-mapper-multipath-0.9.4-1.an23.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/device-mapper-multipath.spec'], chrootPath='/var/lib/mock/dist-an23-build-259654-63801/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/device-mapper-multipath.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=1683244800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.wmPOJ1 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf multipath-tools-0.9.4 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/0.9.4.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd multipath-tools-0.9.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp /builddir/build/SOURCES/multipath.conf . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.rcq6eL + 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 -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 -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 multipath-tools-0.9.4 + /usr/bin/make -O -j80 V=1 VERBOSE=1 LIB=lib64 D_FORTIFY_SOURCE=2 make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4' make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4' Checking for dm_task_no_flush in /usr/include/libdevmapper.h ... yes Checking for dm_task_get_errno in /usr/include/libdevmapper.h ... yes Checking for dm_task_set_cookie in /usr/include/libdevmapper.h ... yes Checking for udev_monitor_set_receive_buffer_size in /usr/include/libudev.h ... yes Checking for dm_task_deferred_remove in /usr/include/libdevmapper.h ... yes Checking for dm_hold_control_dev in /usr/include/libdevmapper.h ... yes Checking for ELS_DTAG_LNK_INTEGRITY in /usr/include/scsi/fc/fc_els.h ... yes Checking if /usr/include/linux/nvme_ioctl.h exists ... yes Checking command "pkg-config --exists json-c" ... yes make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4' creating libmultipath/autoconfig.h make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4' make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4' creating config.mk make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4' ==== config.mk ==== FPIN_SUPPORT := 1 FORTIFY_OPT := -D_FORTIFY_SOURCE=3 SYSTEMD := 252 ANA_SUPPORT := 1 STACKPROT := -fstack-protector-strong ERROR_DISCARDED_QUALIFIERS := -Werror=discarded-qualifiers WNOCLOBBERED := -Wno-clobbered -Wno-error=clobbered WFORMATOVERFLOW := -Wformat-overflow=2 W_MISSING_INITIALIZERS := W_URCU_TYPE_LIMITS := ENABLE_LIBDMMP := 1 ==== autoconfig.h ==== #ifndef _AUTOCONFIG_H #define _AUTOCONFIG_H #define LIBDM_API_FLUSH #define LIBDM_API_GET_ERRNO #define LIBDM_API_COOKIE #define LIBUDEV_API_RECVBUF #define LIBDM_API_DEFERRED #define LIBDM_API_HOLD_CONTROL #define FPIN_EVENT_HANDLER #endif make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' building xstrncpy.o because of xstrncpy.c gcc -D_FORTIFY_SOURCE=3 -DBIN_DIR=\"/sbin\" -DMULTIPATH_DIR=\"/lib64/multipath\" -DRUNTIME_DIR=\"/run\" -DCONFIG_DIR=\"/etc/multipath/conf.d\" -DEXTRAVERSION=\"\" -MMD -MP -I. -I../libmultipath -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 --std=gnu99 -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 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Werror -Wall -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -pipe -fPIE -DPIE -c -o xstrncpy.o xstrncpy.c make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' : error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors make[1]: *** [../Makefile.inc:117: xstrncpy.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' building unixware.o because of unixware.c gcc -D_FORTIFY_SOURCE=3 -DBIN_DIR=\"/sbin\" -DMULTIPATH_DIR=\"/lib64/multipath\" -DRUNTIME_DIR=\"/run\" -DCONFIG_DIR=\"/etc/multipath/conf.d\" -DEXTRAVERSION=\"\" -MMD -MP -I. -I../libmultipath -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 --std=gnu99 -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 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Werror -Wall -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -pipe -fPIE -DPIE -c -o unixware.o unixware.c make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' : error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors make[1]: *** [../Makefile.inc:117: unixware.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' building solaris.o because of solaris.c gcc -D_FORTIFY_SOURCE=3 -DBIN_DIR=\"/sbin\" -DMULTIPATH_DIR=\"/lib64/multipath\" -DRUNTIME_DIR=\"/run\" -DCONFIG_DIR=\"/etc/multipath/conf.d\" -DEXTRAVERSION=\"\" -MMD -MP -I. -I../libmultipath -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 --std=gnu99 -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 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Werror -Wall -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -pipe -fPIE -DPIE -c -o solaris.o solaris.c make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' : error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors make[1]: *** [../Makefile.inc:117: solaris.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' building ps3.o because of ps3.c gcc -D_FORTIFY_SOURCE=3 -DBIN_DIR=\"/sbin\" -DMULTIPATH_DIR=\"/lib64/multipath\" -DRUNTIME_DIR=\"/run\" -DCONFIG_DIR=\"/etc/multipath/conf.d\" -DEXTRAVERSION=\"\" -MMD -MP -I. -I../libmultipath -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 --std=gnu99 -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 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Werror -Wall -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -pipe -fPIE -DPIE -c -o ps3.o ps3.c make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' : error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors make[1]: *** [../Makefile.inc:117: ps3.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' building mac.o because of mac.c gcc -D_FORTIFY_SOURCE=3 -DBIN_DIR=\"/sbin\" -DMULTIPATH_DIR=\"/lib64/multipath\" -DRUNTIME_DIR=\"/run\" -DCONFIG_DIR=\"/etc/multipath/conf.d\" -DEXTRAVERSION=\"\" -MMD -MP -I. -I../libmultipath -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 --std=gnu99 -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 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Werror -Wall -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -pipe -fPIE -DPIE -c -o mac.o mac.c make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' : error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors make[1]: *** [../Makefile.inc:117: mac.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' building bsd.o because of bsd.c gcc -D_FORTIFY_SOURCE=3 -DBIN_DIR=\"/sbin\" -DMULTIPATH_DIR=\"/lib64/multipath\" -DRUNTIME_DIR=\"/run\" -DCONFIG_DIR=\"/etc/multipath/conf.d\" -DEXTRAVERSION=\"\" -MMD -MP -I. -I../libmultipath -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 --std=gnu99 -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 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Werror -Wall -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -pipe -fPIE -DPIE -c -o bsd.o bsd.c make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' : error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors make[1]: *** [../Makefile.inc:117: bsd.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' building sun.o because of sun.c gcc -D_FORTIFY_SOURCE=3 -DBIN_DIR=\"/sbin\" -DMULTIPATH_DIR=\"/lib64/multipath\" -DRUNTIME_DIR=\"/run\" -DCONFIG_DIR=\"/etc/multipath/conf.d\" -DEXTRAVERSION=\"\" -MMD -MP -I. -I../libmultipath -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 --std=gnu99 -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 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Werror -Wall -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -pipe -fPIE -DPIE -c -o sun.o sun.c make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' : error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors make[1]: *** [../Makefile.inc:117: sun.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' building crc32.o because of crc32.c gcc -D_FORTIFY_SOURCE=3 -DBIN_DIR=\"/sbin\" -DMULTIPATH_DIR=\"/lib64/multipath\" -DRUNTIME_DIR=\"/run\" -DCONFIG_DIR=\"/etc/multipath/conf.d\" -DEXTRAVERSION=\"\" -MMD -MP -I. -I../libmultipath -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 --std=gnu99 -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 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Werror -Wall -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -pipe -fPIE -DPIE -c -o crc32.o crc32.c make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' : error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors make[1]: *** [../Makefile.inc:117: crc32.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' building dos.o because of dos.c gcc -D_FORTIFY_SOURCE=3 -DBIN_DIR=\"/sbin\" -DMULTIPATH_DIR=\"/lib64/multipath\" -DRUNTIME_DIR=\"/run\" -DCONFIG_DIR=\"/etc/multipath/conf.d\" -DEXTRAVERSION=\"\" -MMD -MP -I. -I../libmultipath -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 --std=gnu99 -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 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Werror -Wall -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -pipe -fPIE -DPIE -c -o dos.o dos.c make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' : error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors make[1]: *** [../Makefile.inc:117: dos.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4/libmpathcmd' building mpath_cmd.o because of mpath_cmd.c gcc -D_FORTIFY_SOURCE=3 -DBIN_DIR=\"/sbin\" -DMULTIPATH_DIR=\"/lib64/multipath\" -DRUNTIME_DIR=\"/run\" -DCONFIG_DIR=\"/etc/multipath/conf.d\" -DEXTRAVERSION=\"\" -MMD -MP --std=gnu99 -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 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Werror -Wall -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -pipe -fPIC -c -o mpath_cmd.o mpath_cmd.c make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4/libmpathcmd' : error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors make[1]: *** [../Makefile.inc:117: mpath_cmd.o] Error 1 make: *** [Makefile:45: libmpathcmd] Error 2 make: *** Waiting for unfinished jobs.... make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' building lopart.o because of lopart.c gcc -D_FORTIFY_SOURCE=3 -DBIN_DIR=\"/sbin\" -DMULTIPATH_DIR=\"/lib64/multipath\" -DRUNTIME_DIR=\"/run\" -DCONFIG_DIR=\"/etc/multipath/conf.d\" -DEXTRAVERSION=\"\" -MMD -MP -I. -I../libmultipath -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 --std=gnu99 -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 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Werror -Wall -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -pipe -fPIE -DPIE -c -o lopart.o lopart.c make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' : error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors make[1]: *** [../Makefile.inc:117: lopart.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' building dasd.o because of dasd.c gcc -D_FORTIFY_SOURCE=3 -DBIN_DIR=\"/sbin\" -DMULTIPATH_DIR=\"/lib64/multipath\" -DRUNTIME_DIR=\"/run\" -DCONFIG_DIR=\"/etc/multipath/conf.d\" -DEXTRAVERSION=\"\" -MMD -MP -I. -I../libmultipath -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 --std=gnu99 -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 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Werror -Wall -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -pipe -fPIE -DPIE -c -o dasd.o dasd.c make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' : error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors make[1]: *** [../Makefile.inc:117: dasd.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' building gpt.o because of gpt.c gcc -D_FORTIFY_SOURCE=3 -DBIN_DIR=\"/sbin\" -DMULTIPATH_DIR=\"/lib64/multipath\" -DRUNTIME_DIR=\"/run\" -DCONFIG_DIR=\"/etc/multipath/conf.d\" -DEXTRAVERSION=\"\" -MMD -MP -I. -I../libmultipath -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 --std=gnu99 -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 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Werror -Wall -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -pipe -fPIE -DPIE -c -o gpt.o gpt.c make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' : error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors make[1]: *** [../Makefile.inc:117: gpt.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' building devmapper.o because of devmapper.c gcc -D_FORTIFY_SOURCE=3 -DBIN_DIR=\"/sbin\" -DMULTIPATH_DIR=\"/lib64/multipath\" -DRUNTIME_DIR=\"/run\" -DCONFIG_DIR=\"/etc/multipath/conf.d\" -DEXTRAVERSION=\"\" -MMD -MP -I. -I../libmultipath -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 --std=gnu99 -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 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Werror -Wall -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -pipe -fPIE -DPIE -c -o devmapper.o devmapper.c make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' : error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors make[1]: *** [../Makefile.inc:117: devmapper.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' building kpartx.o because of kpartx.c gcc -D_FORTIFY_SOURCE=3 -DBIN_DIR=\"/sbin\" -DMULTIPATH_DIR=\"/lib64/multipath\" -DRUNTIME_DIR=\"/run\" -DCONFIG_DIR=\"/etc/multipath/conf.d\" -DEXTRAVERSION=\"\" -MMD -MP -I. -I../libmultipath -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 --std=gnu99 -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 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Werror -Wall -Wextra -Wformat=2 -Wformat-overflow=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -pipe -fPIE -DPIE -c -o kpartx.o kpartx.c make[1]: Leaving directory '/builddir/build/BUILD/multipath-tools-0.9.4/kpartx' : error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors make[1]: *** [../Makefile.inc:117: kpartx.o] Error 1 make: *** [Makefile:45: kpartx] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.rcq6eL (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.rcq6eL (%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/device-mapper-multipath.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/device-mapper-multipath.spec