6, from shmbitmap.c:24: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ gcc -O2 -fno-strict-aliasing -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -DONLYANSI -Ixlib -I/usr/include -Dlinux -D__riscv -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DONLYANSI -DSOUND -DJOYSTICK -DNETSUPPORT -DMITSHM -DHAVEUSLEEP -Wall -fomit-frame-pointer -O6 -ffast-math -I. -DASSEMBLY -DSOUNDSERVER=\"/usr/games/koules.sndsrv.linux\" -DSOUNDDIR=\"/usr/share/koules/sound\" -DSOUNDDEV=\"/dev/dsp\" -c -o text.o text.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from init.c:18: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:26, from text.c:6: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ gcc -O2 -fno-strict-aliasing -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -DONLYANSI -Ixlib -I/usr/include -Dlinux -D__riscv -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DONLYANSI -DSOUND -DJOYSTICK -DNETSUPPORT -DMITSHM -DHAVEUSLEEP -Wall -fomit-frame-pointer -O6 -ffast-math -I. -DASSEMBLY -DSOUNDSERVER=\"/usr/games/koules.sndsrv.linux\" -DSOUNDDIR=\"/usr/share/koules/sound\" -DSOUNDDEV=\"/dev/dsp\" -c -o font8x8.o font8x8.c rm -f libxlib.a ar clq libxlib.a init.o mem.o interface.o shmbitmap.o text.o font8x8.o ar: libdeps specified more than once make[1]: Leaving directory '/builddir/build/BUILD/koules-1.4/koules-1.4-x11/xlib' make[1]: *** [Makefile:1074: libxlib.a] Error 1 make: *** [Makefile:1072: all] Error 2 RPM build warnings: RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.wt8J3t (%build) %patchN is deprecated (42 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.wt8J3t (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, 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/koules.spec