Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/drbd.spec'], chrootPath='/var/lib/mock/f29-build-19849-10507/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': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/drbd.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/drbd-8.9.6-6.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/drbd.spec'], chrootPath='/var/lib/mock/f29-build-19849-10507/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': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/drbd.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.mPu7Cc + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf drbd-utils-8.9.6 + /usr/bin/gzip -dc /builddir/build/SOURCES/drbd-utils-8.9.6.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd drbd-utils-8.9.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (disable_drbd_checkin.patch):' Patch #0 (disable_drbd_checkin.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file scripts/global_common.conf + echo 'Patch #1 (disable_xsltproc_network_read.patch):' Patch #1 (disable_xsltproc_network_read.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file documentation/v9/Makefile.in Hunk #1 succeeded at 55 (offset -4 lines). + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.axZdEe + umask 022 + cd /builddir/build/BUILD + cd drbd-utils-8.9.6 + 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 -fasynchronous-unwind-tables -fstack-clash-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 -fasynchronous-unwind-tables -fstack-clash-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 -fasynchronous-unwind-tables -fstack-clash-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 -fasynchronous-unwind-tables -fstack-clash-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 ']' BUILDSTDERR: +++ dirname ./configure BUILDSTDERR: ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' BUILDSTDERR: ++ find . -name ltmain.sh + ./configure --build=riscv64-koji-linux-gnu --host=riscv64-koji-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=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-utils --without-km --with-udev --without-xen --with-pacemaker --with-rgmanager --with-distro=generic --with-initdir=/etc/rc.d/init.d BUILDSTDERR: configure: WARNING: unrecognized options: --disable-dependency-tracking, --with-utils, --without-km checking for riscv64-koji-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes Using systemd unit directory: /usr/lib/systemd/system Using udev rules directory: /usr/lib/udev checking for riscv64-koji-linux-gnu-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 whether ln -s works... yes checking for sed... /usr/bin/sed checking for grep... /usr/bin/grep checking for flex... /usr/bin/flex checking for rpmbuild... /usr/bin/rpmbuild checking for xsltproc... /usr/bin/xsltproc checking for tar... /usr/bin/tar checking for git... no checking for dpkg-buildpackage... no checking for udevadm... /sbin/udevadm checking for udevinfo... false BUILDSTDERR: configure: WARNING: No dpkg-buildpackage found, building Debian packages is disabled. BUILDSTDERR: configure: WARNING: Cannot update buildtag without git. You may safely ignore this warning when building from a tarball. configure: creating ./config.status config.status: creating Makefile config.status: creating user/shared/Makefile config.status: creating user/v9/Makefile config.status: creating user/v83/Makefile config.status: creating user/v84/Makefile config.status: creating scripts/Makefile config.status: creating documentation/v9/Makefile config.status: creating documentation/v83/Makefile config.status: creating documentation/v84/Makefile config.status: creating scripts/drbd.rules config.status: creating user/shared/config.h BUILDSTDERR: configure: WARNING: unrecognized options: --disable-dependency-tracking, --with-utils, --without-km + make -j4 make[1]: Entering directory '/builddir/build/BUILD/drbd-utils-8.9.6/user/shared' flex -s -odrbdmeta_scanner.c drbdmeta_scanner.fl make[1]: Leaving directory '/builddir/build/BUILD/drbd-utils-8.9.6/user/shared' make[1]: Entering directory '/builddir/build/BUILD/drbd-utils-8.9.6/user/v9' flex -s -odrbdadm_scanner.c drbdadm_scanner.fl 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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o drbdadm_parser.o drbdadm_parser.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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o drbdadm_postparse.o drbdadm_postparse.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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o drbdadm_main.o drbdadm_main.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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o drbdadm_adjust.o drbdadm_adjust.c BUILDSTDERR: drbdadm_adjust.c: In function 'need_trigger_kobj_change': BUILDSTDERR: drbdadm_adjust.c:515:6: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] BUILDSTDERR: if (major(sbuf.st_rdev) != DRBD_MAJOR) BUILDSTDERR: ^~~~~ BUILDSTDERR: drbdadm_adjust.c:517:6: warning: implicit declaration of function 'minor'; did you mean 'mknod'? [-Wimplicit-function-declaration] BUILDSTDERR: if (minor(sbuf.st_rdev) != STAILQ_FIRST(&res->me->volumes)->device_minor) BUILDSTDERR: ^~~~~ BUILDSTDERR: mknod 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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o drbdadm_dump.o drbdadm_dump.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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o drbdtool_common.o drbdtool_common.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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o drbdadm_usage_cnt.o drbdadm_usage_cnt.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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o drbd_buildtag.o ../shared/drbd_buildtag.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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o registry.o registry.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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o config_flags.o config_flags.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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -DHAVE_CTRL_ATTR_VERSION -DHAVE_CTRL_ATTR_HDRSIZE -DHAVE_CTRL_ATTR_MCAST_GROUPS -c -o libgenl.o ../shared/libgenl.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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o drbd_nla.o drbd_nla.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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o shared_tool.o ../shared/shared_tool.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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o shared_main.o ../shared/shared_main.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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o shared_parser.o ../shared/shared_parser.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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o drbdmeta.o ../shared/drbdmeta.c BUILDSTDERR: ../shared/shared_tool.c: In function 'dt_minor_of_dev': BUILDSTDERR: ../shared/shared_tool.c:599:5: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] BUILDSTDERR: major(sb.st_rdev) == LANANA_DRBD_MAJOR) BUILDSTDERR: ^~~~~ BUILDSTDERR: ../shared/shared_tool.c:600:11: warning: implicit declaration of function 'minor'; did you mean 'mknod'? [-Wimplicit-function-declaration] BUILDSTDERR: return minor(sb.st_rdev); BUILDSTDERR: ^~~~~ BUILDSTDERR: mknod 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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o drbdmeta_scanner.o ../shared/drbdmeta_scanner.c BUILDSTDERR: ../shared/drbdmeta.c:407:44: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] BUILDSTDERR: unsigned long bm_bytes(const struct md_cpu const *md, uint64_t sectors); BUILDSTDERR: ^~~~~ BUILDSTDERR: ../shared/drbdmeta.c:439:72: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] BUILDSTDERR: void md_cpu_to_disk_07(struct md_on_disk_07 *disk, const struct md_cpu const *cpu) BUILDSTDERR: ^~~~~ BUILDSTDERR: ../shared/drbdmeta.c:455:22: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] BUILDSTDERR: const struct md_cpu const *md, const int md_index, const uint64_t ll_size) BUILDSTDERR: ^~~~~ BUILDSTDERR: ../shared/drbdmeta.c:2416:44: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] BUILDSTDERR: unsigned long bm_bytes(const struct md_cpu const *md, uint64_t sectors) BUILDSTDERR: ^~~~~ 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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o drbd_strings.o ../../drbd-headers/drbd_strings.c BUILDSTDERR: drbdmeta_scanner.fl:14:13: warning: 'yyunput' declared 'static' but never defined [-Wunused-function] 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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o drbdsetup.o drbdsetup.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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o wrap_printf.o ../shared/wrap_printf.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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o drbdsetup_colors.o drbdsetup_colors.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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -c -o drbdadm_scanner.o drbdadm_scanner.c BUILDSTDERR: drbdadm_scanner.fl:23:13: warning: 'yyunput' declared 'static' but never defined [-Wunused-function] BUILDSTDERR: static void yyunput (int c, register char * yy_bp ) __attribute((unused)); BUILDSTDERR: ^~~~~~~ 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 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -I../../drbd-headers -I.. -I. -I../shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o drbdadm drbdadm_scanner.o drbdadm_parser.o drbdadm_postparse.o drbdadm_main.o drbdadm_adjust.o drbdadm_dump.o drbdtool_common.o drbdadm_usage_cnt.o drbd_buildtag.o registry.o config_flags.o libgenl.o drbd_nla.o shared_tool.o shared_main.o shared_parser.o BUILDSTDERR: /usr/bin/ld: drbdadm_adjust.o: in function `schedule_deferred_proxy_reconf': BUILDSTDERR: /builddir/build/BUILD/drbd-utils-8.9.6/user/v9/drbdadm_adjust.c:323: undefined reference to `major' BUILDSTDERR: /usr/bin/ld: /builddir/build/BUILD/drbd-utils-8.9.6/user/v9/drbdadm_adjust.c:324: undefined reference to `minor' BUILDSTDERR: /usr/bin/ld: shared_tool.o: in function `get_fd_lockfile_timeout': BUILDSTDERR: /builddir/build/BUILD/drbd-utils-8.9.6/user/v9/../shared/shared_tool.c:545: undefined reference to `major' BUILDSTDERR: /usr/bin/ld: /builddir/build/BUILD/drbd-utils-8.9.6/user/v9/../shared/shared_tool.c:546: undefined reference to `minor' BUILDSTDERR: collect2: error: ld returned 1 exit status BUILDSTDERR: make[1]: *** [Makefile:88: drbdadm] Error 1 BUILDSTDERR: make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/builddir/build/BUILD/drbd-utils-8.9.6/user/v9' BUILDSTDERR: make: *** [Makefile:77: tools] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.axZdEe (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.axZdEe (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do 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 riscv64 --nodeps /builddir/build/SPECS/drbd.spec