D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/dmraid-1.0.0-0.rc16.35.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.36hTGX Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.0VFDmK + umask 022 + cd /home/pterjan/rpmbuild/BUILD/dmraid-1.0.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/dmraid-1.0.0-build + rm -rf dmraid/1.0.0.rc16 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/dmraid-1.0.0.rc16.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd dmraid/1.0.0.rc16 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (dmraid-1.0.0.rc16-test_devices.patch):' Patch #0 (dmraid-1.0.0.rc16-test_devices.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .test_devices --fuzz=0 patching file configure.in patching file configure patching file lib/device/scan.c + echo 'Patch #1 (ddf1_lsi_persistent_name.patch):' Patch #1 (ddf1_lsi_persistent_name.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .ddf1_lsi_persistent_name --fuzz=0 patching file lib/format/ddf/ddf1.c + echo 'Patch #2 (pdc_raid10_failure.patch):' Patch #2 (pdc_raid10_failure.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .pdc_raid10_failure --fuzz=0 patching file lib/format/ataraid/pdc.c + echo 'Patch #3 (return_error_wo_disks.patch):' Patch #3 (return_error_wo_disks.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .return_error_wo_disks --fuzz=0 patching file lib/metadata/metadata.c + echo 'Patch #4 (fix_sil_jbod.patch):' Patch #4 (fix_sil_jbod.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .fix_sil_jbod --fuzz=0 patching file lib/format/ataraid/sil.c + echo 'Patch #5 (avoid_register.patch):' Patch #5 (avoid_register.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .avoid_register --fuzz=0 patching file lib/activate/activate.c + echo 'Patch #7 (libversion.patch):' Patch #7 (libversion.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .libversion --fuzz=0 patching file lib/version.h + echo 'Patch #8 (libversion-display.patch):' Patch #8 (libversion-display.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .libversion_display --fuzz=0 patching file lib/misc/lib_context.c + echo 'Patch #9 (bz635995-data_corruption_during_activation_volume_marked_for_rebuild.patch):' Patch #9 (bz635995-data_corruption_during_activation_volume_marked_for_rebuild.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .bz635995 --fuzz=0 patching file lib/activate/activate.c Hunk #4 succeeded at 546 (offset 5 lines). patching file lib/format/ataraid/isw.c + echo 'Patch #11 (bz626417_19-enabling_registration_degraded_volume.patch):' Patch #11 (bz626417_19-enabling_registration_degraded_volume.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .bz626417_19 --fuzz=0 patching file lib/events/libdmraid-events-isw.c patching file lib/register/dmreg.c + echo 'Patch #12 (bz626417_20-cleanup_some_compilation_warning.patch):' Patch #12 (bz626417_20-cleanup_some_compilation_warning.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .bz626417_20 --fuzz=0 patching file lib/events/libdmraid-events-isw.c patching file lib/format/ataraid/isw.c patching file lib/register/dmreg.c + echo 'Patch #13 (bz626417_21-add_option_that_postpones_any_metadata_updates.patch):' Patch #13 (bz626417_21-add_option_that_postpones_any_metadata_updates.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .bz626417_21 --fuzz=0 patching file include/dmraid/lib_context.h patching file lib/metadata/reconfig.c patching file man/dmraid.8 patching file tools/commands.c + echo 'Patch #101 (lib-events-libdmraid-events-isw-strfmt.patch):' Patch #101 (lib-events-libdmraid-events-isw-strfmt.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .libdmraid_events_isw_strfmt --fuzz=0 patching file lib/events/libdmraid-events-isw.c + echo 'Patch #102 (fix-linking.patch):' Patch #102 (fix-linking.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .linking --fuzz=0 patching file lib/Makefile.in patching file make.tmpl.in + echo 'Patch #103 (libdmraid-events-soname.patch):' Patch #103 (libdmraid-events-soname.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .lib_events_soname --fuzz=0 patching file lib/Makefile.in + echo 'Patch #104 (libdmraid-events-install.patch):' Patch #104 (libdmraid-events-install.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .lib_events_install --fuzz=0 patching file lib/Makefile.in + echo 'Patch #105 (pdc-add-extra-offsets.patch):' Patch #105 (pdc-add-extra-offsets.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .pdc-extra-offsets --fuzz=0 patching file lib/format/ataraid/pdc.h + echo 'Patch #106 (activate-multiple-raid-sets.patch):' Patch #106 (activate-multiple-raid-sets.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .activate-multiple-raid --fuzz=0 patching file lib/metadata/metadata.c + echo 'Patch #107 (dmraid-1.0.0.rc16-mga-process-opt-return.patch):' Patch #107 (dmraid-1.0.0.rc16-mga-process-opt-return.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .process-opt-return --fuzz=0 patching file tools/dmevent_tool.c + echo 'Patch #108 (dmraid-1.0.0.rc16-mga-fpie.patch):' Patch #108 (dmraid-1.0.0.rc16-mga-fpie.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .fpie --fuzz=0 patching file tools/Makefile.in + echo 'Patch #110 (12_support_virtio_devices.patch):' Patch #110 (12_support_virtio_devices.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p2 -b --suffix .virtio --fuzz=0 patching file lib/device/scan.c + echo 'Patch #111 (17_isw-probe-hpa.patch):' Patch #111 (17_isw-probe-hpa.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p2 -b --suffix .hpa --fuzz=0 patching file lib/format/ataraid/isw.c patching file lib/format/ataraid/isw.h + echo 'Patch #112 (20_fix_isw_sectors_calculation.patch):' Patch #112 (20_fix_isw_sectors_calculation.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p2 -b --suffix .isw_sectors --fuzz=0 patching file lib/format/ataraid/isw.c + echo 'Patch #113 (21_fix_testing.patch):' Patch #113 (21_fix_testing.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p2 -b --suffix .block_testing --fuzz=0 patching file lib/device/scan.c + echo 'Patch #114 (21_jmicron_namefix.patch):' Patch #114 (21_jmicron_namefix.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p2 -b --suffix .jmicron_namefix --fuzz=0 patching file lib/format/ataraid/jm.c + echo 'Patch #115 (23_pdc_dump_extended_metadata.patch):' Patch #115 (23_pdc_dump_extended_metadata.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p2 -b --suffix .pdc_ext_metadata --fuzz=0 patching file lib/format/ataraid/pdc.c + echo 'Patch #116 (24_drop_p_for_partition_conditional.patch):' Patch #116 (24_drop_p_for_partition_conditional.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p2 -b --suffix ._partition_cond_p --fuzz=0 patching file lib/format/partition/dos.c + cp -af /usr/lib/rpm/mageia/config.guess /usr/lib/rpm/mageia/config.sub autoconf/ + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.JZ3WkC + umask 022 + cd /home/pterjan/rpmbuild/BUILD/dmraid-1.0.0-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd dmraid/1.0.0.rc16 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./autoconf/config.guess + '[' -f /usr/lib/rpm/mageia/config.guess ']' ++ basename ./autoconf/config.guess + cp -af /usr/lib/rpm/mageia/config.guess ./autoconf/config.guess + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./autoconf/config.sub + '[' -f /usr/lib/rpm/mageia/config.sub ']' ++ basename ./autoconf/config.sub + cp -af /usr/lib/rpm/mageia/config.sub ./autoconf/config.sub + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 ++ id -un ++ id -gn + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --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=/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-user=pterjan --with-group=pterjan --disable-libselinux --disable-libsepol --enable-led --enable-intel_led --enable-shared_lib configure: WARNING: unrecognized options: --disable-dependency-tracking checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking target system type... x86_64-mageia-linux-gnu checking for gawk... gawk checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking whether make sets $(MAKE)... yes checking for x86_64-mageia-linux-gnu-ranlib... no checking for ranlib... ranlib checking for x86_64-mageia-linux-gnu-gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... 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 for dirent.h that defines DIR... yes checking for library containing opendir... none required checking how to run the C preprocessor... gcc -E 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 fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking for unistd.h... (cached) yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for off_t... yes checking for pid_t... yes checking for size_t... yes checking for struct stat.st_rdev... yes checking whether time.h and sys/time.h may both be included... yes checking whether to enable debugging... no checking whether to enable malloc debugging... no checking whether to disable native metadata logging... yes checking whether to disable testing with mapped devices... no checking whether gcc needs -traditional... no checking return type of signal handlers... void checking for vprintf... yes checking for _doprnt... no checking for mkdir... yes checking for rmdir... yes checking for uname... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes configure: creating ./config.status config.status: creating include/Makefile config.status: creating lib/Makefile config.status: creating man/Makefile config.status: creating tools/Makefile config.status: creating tools/version.h config.status: creating Makefile config.status: creating make.tmpl config.status: WARNING: 'make.tmpl.in' seems to ignore the --datarootdir setting configure: WARNING: unrecognized options: --disable-dependency-tracking + make make -C include make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/dmraid-1.0.0-build/dmraid/1.0.0.rc16/include' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dmraid-1.0.0-build/dmraid/1.0.0.rc16/include' make -C lib make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/dmraid-1.0.0-build/dmraid/1.0.0.rc16/lib' gcc -MM -MF activate/activate.d -I. -I../include -I../lib -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DDMRAID_NATIVE_LOG -DDMRAID_LED -DDMRAID_TEST -DDMRAID_LED -DDMRAID_INTEL_LED -DHAVE_GETOPTLONG -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_AUTOREGISTER -O2 -D_LARGEFILE64_SOURCE -O2 -DDMRAID_NATIVE_LOG -DDMRAID_LED -DDMRAID_TEST -DDMRAID_LED -DDMRAID_INTEL_LED -DHAVE_GETOPTLONG -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_AUTOREGISTER -O2 -D_LARGEFILE64_SOURCE activate/activate.c; \ gcc -c -I. -I../include -I../lib -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DDMRAID_NATIVE_LOG -DDMRAID_LED -DDMRAID_TEST -DDMRAID_LED -DDMRAID_INTEL_LED -DHAVE_GETOPTLONG -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_AUTOREGISTER -O2 -D_LARGEFILE64_SOURCE -O2 -DDMRAID_NATIVE_LOG -DDMRAID_LED -DDMRAID_TEST -DDMRAID_LED -DDMRAID_INTEL_LED -DHAVE_GETOPTLONG -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_AUTOREGISTER -O2 -D_LARGEFILE64_SOURCE activate/activate.c -o activate/activate.o In file included from activate/activate.c:22: activate/devmapper.h:8: warning: header guard '_DEVMAPPER_H_' followed by '#define' of a different macro [-Wheader-guard] 8 | #ifndef _DEVMAPPER_H_ activate/devmapper.h:9: note: '_DEVMAPPER_H' is defined here; did you mean '_DEVMAPPER_H_'? 9 | #define _DEVMAPPER_H activate/activate.c: In function 'do_device': activate/activate.c:885:23: error: too many arguments to function 'f'; expected 0, have 2 885 | ret = f(rs->name, lib_name); | ^ ~~~~~~~~ activate/activate.c: In function 'register_devices': activate/activate.c:894:34: error: passing argument 3 of 'do_device' from incompatible pointer type [-Wincompatible-pointer-types] 894 | return do_device(lc, rs, dm_register_for_event); | ^~~~~~~~~~~~~~~~~~~~~ | | | int (*)(char *, char *) activate/activate.c:870:62: note: expected 'int (*)(void)' but argument is of type 'int (*)(char *, char *)' 870 | do_device(struct lib_context *lc, struct raid_set *rs, int (*f) ()) | ~~~~~~^~~~~ activate/activate.c:851:1: note: 'dm_register_for_event' declared here 851 | dm_register_for_event(char *dev_name, char *lib_name) | ^~~~~~~~~~~~~~~~~~~~~ activate/activate.c: In function 'unregister_devices': activate/activate.c:901:34: error: passing argument 3 of 'do_device' from incompatible pointer type [-Wincompatible-pointer-types] 901 | return do_device(lc, rs, dm_unregister_for_event); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | int (*)(char *, char *) activate/activate.c:870:62: note: expected 'int (*)(void)' but argument is of type 'int (*)(char *, char *)' 870 | do_device(struct lib_context *lc, struct raid_set *rs, int (*f) ()) | ~~~~~~^~~~~ activate/activate.c:860:1: note: 'dm_unregister_for_event' declared here 860 | dm_unregister_for_event(char *dev_name, char *lib_name) | ^~~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [../make.tmpl:132: activate/activate.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dmraid-1.0.0-build/dmraid/1.0.0.rc16/lib' make: *** [make.tmpl:115: lib] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.JZ3WkC (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.JZ3WkC (%build) I: [iurt_root_command] ERROR: chroot