/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