ations -Wnested-externs -Winline -Wwrite-strings -Wundef -Wshadow -Wsign-compare -pipe -fno-strict-aliasing -I/builddir/build/BUILD/tftp-hpa-5.2 -c misc.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 -W -Wall -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wwrite-strings -Wundef -Wshadow -Wsign-compare -pipe -fno-strict-aliasing -I/builddir/build/BUILD/tftp-hpa-5.2 -c remap.c sed -e 's/@@VERSION@@/5.2/g' < tftpd.8.in > tftpd.8 tftpd.c: In function 'tftp_recvfile': tftpd.c:1673:69: warning: argument 'oap' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] 1673 | static void tftp_recvfile(const struct formats *pf, struct tftphdr *oap, int oacklen) | ~~~~~~~~~~~~~~~~^~~ main.c:194:20: warning: inlining failed in call to 'usage': call is unlikely and code size would grow [-Winline] 194 | static inline void usage(int errcode) | ^~~~~ main.c:249:25: note: called from here 249 | usage(EX_USAGE); | ^~~~~~~~~~~~~~~ main.c:194:20: warning: inlining failed in call to 'usage': call is unlikely and code size would grow [-Winline] 194 | static inline void usage(int errcode) | ^~~~~ main.c:271:25: note: called from here 271 | usage(EX_USAGE); | ^~~~~~~~~~~~~~~ main.c:194:20: warning: inlining failed in call to 'usage': call is unlikely and code size would grow [-Winline] 194 | static inline void usage(int errcode) | ^~~~~ main.c:284:21: note: called from here 284 | usage(*optx == 'h' ? 0 : EX_USAGE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:194:20: warning: inlining failed in call to 'usage': call is unlikely and code size would grow [-Winline] 194 | static inline void usage(int errcode) | ^~~~~ main.c:289:17: note: called from here 289 | usage(EX_USAGE); | ^~~~~~~~~~~~~~~ gcc -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld tftp.o main.o ../common/libcommon.a -lreadline -ltermcap /builddir/build/BUILD/tftp-hpa-5.2/lib/libxtra.a -o tftp /usr/bin/ld: main.o: in function `.LANCHOR0': /builddir/build/BUILD/tftp-hpa-5.2/tftp/main.c:101: multiple definition of `toplevel'; tftp.o:/builddir/build/BUILD/tftp-hpa-5.2/tftp/tftp.c:51: first defined here collect2: error: ld returned 1 exit status make[1]: *** [Makefile:12: tftp] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/tftp-hpa-5.2/tftp' make: *** [Makefile:7: tftp.build] Error 2 make: *** Waiting for unfinished jobs.... gcc -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld tftpd.o recvfrom.o misc.o remap.o ../common/libcommon.a /builddir/build/BUILD/tftp-hpa-5.2/lib/libxtra.a -o tftpd make[1]: Leaving directory '/builddir/build/BUILD/tftp-hpa-5.2/tftpd' error: Bad exit status from /var/tmp/rpm-tmp.SM91MC (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.SM91MC (%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/tftp.spec