m /usr/include/SDL/SDL_stdinc.h:34, BUILDSTDERR: from /usr/include/SDL/SDL_main.h:26, BUILDSTDERR: from /usr/include/SDL/SDL.h:30, BUILDSTDERR: from apricots.h:20, BUILDSTDERR: from all.cpp:9: BUILDSTDERR: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] BUILDSTDERR: # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" BUILDSTDERR: ^~~~~~~ g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -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/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DAP_PATH=\"/usr/share/apricots/\" -DAP_AUDIO_OPENAL -c -o ai.o `test -f 'ai.cpp' || echo './'`ai.cpp BUILDSTDERR: cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++ BUILDSTDERR: In file included from /usr/include/sys/types.h:25, BUILDSTDERR: from /usr/include/SDL/SDL_stdinc.h:34, BUILDSTDERR: from /usr/include/SDL/SDL_main.h:26, BUILDSTDERR: from /usr/include/SDL/SDL.h:30, BUILDSTDERR: from apricots.h:20, BUILDSTDERR: from ai.cpp:6: BUILDSTDERR: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] BUILDSTDERR: # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" BUILDSTDERR: ^~~~~~~ /bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -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/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DAP_PATH=\"/usr/share/apricots/\" -DAP_AUDIO_OPENAL -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o apricots SDLfont.o shape.o setup.o sampleio.o init.o game.o finish.o fall.o drawall.o drak.o collide.o apricots.o all.o ai.o -lalut -lopenal -lSDL -lpthread BUILDSTDERR: g++: error: unrecognized command line option '--as-needed' make[3]: Leaving directory '/builddir/build/BUILD/apricots-0.2.6/apricots' BUILDSTDERR: make[3]: *** [Makefile:396: apricots] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/apricots-0.2.6/apricots' BUILDSTDERR: make[2]: *** [Makefile:458: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/apricots-0.2.6' BUILDSTDERR: make[1]: *** [Makefile:342: all-recursive] Error 1 BUILDSTDERR: make: *** [Makefile:284: all] Error 2 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.9JIrAz (%build) RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.9JIrAz (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, 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/apricots.spec