ous-unwind-tables -fstack-clash-protection -Wall -I. -I../shared -c -o drbd_strings.o drbd_strings.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. -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. -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. -I../shared -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o drbdadm-84 drbdadm_scanner.o drbdadm_parser.o drbdadm_main.o drbdadm_adjust.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 /usr/bin/ld: drbdadm_parser.o: in function `.LANCHOR1': /builddir/build/BUILD/drbd-utils-9.5.0/user/v84/drbdadm.h:254: multiple definition of `setup_options'; drbdadm_scanner.o:/builddir/build/BUILD/drbd-utils-9.5.0/user/v84/drbdadm.h:254: first defined here /usr/bin/ld: drbdadm_main.o: in function `.LANCHOR0': /builddir/build/BUILD/drbd-utils-9.5.0/user/v84/drbdadm.h:254: multiple definition of `setup_options'; drbdadm_scanner.o:/builddir/build/BUILD/drbd-utils-9.5.0/user/v84/drbdadm.h:254: first defined here /usr/bin/ld: drbdadm_adjust.o:/builddir/build/BUILD/drbd-utils-9.5.0/user/v84/drbdadm.h:254: multiple definition of `setup_options'; drbdadm_scanner.o:/builddir/build/BUILD/drbd-utils-9.5.0/user/v84/drbdadm.h:254: first defined here /usr/bin/ld: drbdadm_usage_cnt.o: in function `.LANCHOR0': /builddir/build/BUILD/drbd-utils-9.5.0/user/v84/drbdadm.h:254: multiple definition of `setup_options'; drbdadm_scanner.o:/builddir/build/BUILD/drbd-utils-9.5.0/user/v84/drbdadm.h:254: first defined here /usr/bin/ld: shared_tool.o: in function `.LANCHOR0': /builddir/build/BUILD/drbd-utils-9.5.0/user/v84/./drbdadm.h:254: multiple definition of `setup_options'; drbdadm_scanner.o:/builddir/build/BUILD/drbd-utils-9.5.0/user/v84/drbdadm.h:254: first defined here /usr/bin/ld: shared_parser.o:/builddir/build/BUILD/drbd-utils-9.5.0/user/v84/./drbdadm.h:254: multiple definition of `setup_options'; drbdadm_scanner.o:/builddir/build/BUILD/drbd-utils-9.5.0/user/v84/drbdadm.h:254: first defined here collect2: error: ld returned 1 exit status make[1]: *** [Makefile:84: drbdadm-84] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/builddir/build/BUILD/drbd-utils-9.5.0/user/v84' make: *** [Makefile:78: tools] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.xQjKat (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.xQjKat (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, 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 --target riscv64 --nodeps /builddir/build/SPECS/drbd.spec