D: [iurt_root_command] chroot
warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend.
Installing /home/iurt/rpmbuild/SRPMS/fceux-2.3.0-3.mga9.src.rpm
Building target platforms: aarch64
Building for target aarch64
Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.KIuGr3
+ umask 022
+ cd /home/iurt/rpmbuild/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/iurt/rpmbuild/BUILD
+ rm -rf fceux-2.3.0
+ /usr/bin/gzip -dc /home/iurt/rpmbuild/SOURCES/fceux-2.3.0.src.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd fceux-2.3.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ /usr/bin/cat /home/iurt/rpmbuild/SOURCES/fceux-2.2.2-mga-desktop.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ /usr/bin/cat /home/iurt/rpmbuild/SOURCES/fceux-server-build-flags.patch
+ rm -rf src/lua
+ rm -rf src/utils/unzip.cpp src/utils/unzip.h
+ find . -name '*.dll' -delete
+ find . -name '*.exe' -delete
+ sed -i 's/\r//' changelog.txt NewPPUtests.txt documentation/Videolog.txt fceux-server/AUTHORS fceux-server/ChangeLog fceux-server/README
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.IwDkEm
+ umask 022
+ cd /home/iurt/rpmbuild/BUILD
+ cd fceux-2.3.0
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables '
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables '
+ export FCFLAGS
+ LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ /usr/bin/make -O -j8 V=1 VERBOSE=1 -C fceux-server
make: Entering directory '/home/iurt/rpmbuild/BUILD/fceux-2.3.0/fceux-server'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables   -c -o throttle.o throttle.cpp
make: Leaving directory '/home/iurt/rpmbuild/BUILD/fceux-2.3.0/fceux-server'
make: Entering directory '/home/iurt/rpmbuild/BUILD/fceux-2.3.0/fceux-server'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables   -c -o server.o server.cpp
server.cpp: In function 'int LoadConfigFile(char*)':
server.cpp:130:50: warning: format '%a' expects argument of type 'float*', but argument 3 has type 'char**' [-Wformat=]
  130 |                                 sscanf(buf,"%*s %as",&pass);
      |                                                 ~^   ~~~~~
      |                                                  |   |
      |                                                  |   char**
      |                                                  float*
server.cpp: At global scope:
server.cpp:177:81: error: ISO C++17 does not allow dynamic exception specifications
  177 | static void AddClientToGame(ClientEntry *client, uint8 id[16], uint8 extra[64]) throw(int);
      |                                                                                 ^~~~~
server.cpp:178:74: error: ISO C++17 does not allow dynamic exception specifications
  178 | static void SendToAll(GameEntry *game, int cmd, uint8 *data, uint32 len) throw(int);
      |                                                                          ^~~~~
server.cpp:179:66: error: ISO C++17 does not allow dynamic exception specifications
  179 | static void BroadcastText(GameEntry *game, const char *fmt, ...) throw(int);
      |                                                                  ^~~~~
server.cpp:180:69: error: ISO C++17 does not allow dynamic exception specifications
  180 | static void TextToClient(ClientEntry *client, const char *fmt, ...) throw(int);
      |                                                                     ^~~~~
server.cpp:236:51: error: ISO C++17 does not allow dynamic exception specifications
  236 | static int CheckNBTCPReceive(ClientEntry *client) throw(int)
      |                                                   ^~~~~
server.cpp: In function 'int CheckNBTCPReceive(ClientEntry*)':
server.cpp:404:77: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
  404 |                                         printf("Client %d assigned to game %d as player %s <%s>\n",client->id,(GameEntry*)client->game - Games,mps, client->nickname);
      |                                                                            ~^                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                             |                                                          |
      |                                                                             int                                                        long int
      |                                                                            %ld
server.cpp: At global scope:
server.cpp:472:70: error: ISO C++17 does not allow dynamic exception specifications
  472 | static int MakeSendTCP(ClientEntry *client, uint8 *data, uint32 len) throw(int)
      |                                                                      ^~~~~
server.cpp:480:74: error: ISO C++17 does not allow dynamic exception specifications
  480 | static void SendToAll(GameEntry *game, int cmd, uint8 *data, uint32 len) throw(int)
      |                                                                          ^~~~~
server.cpp:509:69: error: ISO C++17 does not allow dynamic exception specifications
  509 | static void TextToClient(ClientEntry *client, const char *fmt, ...) throw(int)
      |                                                                     ^~~~~
server.cpp:531:66: error: ISO C++17 does not allow dynamic exception specifications
  531 | static void BroadcastText(GameEntry *game, const char *fmt, ...) throw(int)
      |                                                                  ^~~~~
server.cpp: In function 'void KillClient(ClientEntry*)':
server.cpp:565:61: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
  565 |                 printf("Player <%s> disconnected from game %d on %s",client->nickname,game-Games,ctime(&curtime));
      |                                                            ~^                         ~~~~~~~~~~
      |                                                             |                             |
      |                                                             int                           long int
      |                                                            %ld
server.cpp:571:39: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
  571 |                         printf("Game %d destroyed.\n",game-Games);
      |                                      ~^               ~~~~~~~~~~
      |                                       |                   |
      |                                       int                 long int
      |                                      %ld
server.cpp: At global scope:
server.cpp:598:81: error: ISO C++17 does not allow dynamic exception specifications
  598 | static void AddClientToGame(ClientEntry *client, uint8 id[16], uint8 extra[64]) throw(int)
      |                                                                                 ^~~~~
server.cpp: In function 'void AddClientToGame(ClientEntry*, uint8*, uint8*)':
server.cpp:626:31: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
  626 |                 printf("Game %d added\n",game-Games);
      |                              ~^          ~~~~~~~~~~
      |                               |              |
      |                               int            long int
      |                              %ld
server.cpp: In function 'int main(int, char**)':
server.cpp:50:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   50 | #define DEFAULT_CONFIG "/etc/fceux-server.conf"
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~
server.cpp:696:28: note: in expansion of macro 'DEFAULT_CONFIG'
  696 |         if(!LoadConfigFile(DEFAULT_CONFIG))
      |                            ^~~~~~~~~~~~~~
server.cpp: In function 'int CheckNBTCPReceive(ClientEntry*)':
server.cpp:326:57: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
  326 |                                                 asprintf(&ma2, "<%s> %s",client->nickname,ma);
      |                                                 ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
server.cpp:402:57: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
  402 |                                                 asprintf(&client->nickname,"*Player %s",mps);
      |                                                 ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
server.cpp: In function 'void TextToClient(ClientEntry*, const char*, ...)':
server.cpp:515:18: warning: ignoring return value of 'int vasprintf(char**, const char*, __gnuc_va_list)' declared with attribute 'warn_unused_result' [-Wunused-result]
  515 |         vasprintf(&moo, fmt, ap);
      |         ~~~~~~~~~^~~~~~~~~~~~~~~
server.cpp: In function 'void KillClient(ClientEntry*)':
server.cpp:566:25: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
  566 |                 asprintf(&bmsg, "* Player %s <%s> left.",MakeMPS(client),client->nickname);
      |                 ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
server.cpp: In function 'void BroadcastText(GameEntry*, const char*, ...)':
server.cpp:537:18: warning: ignoring return value of 'int vasprintf(char**, const char*, __gnuc_va_list)' declared with attribute 'warn_unused_result' [-Wunused-result]
  537 |         vasprintf(&moo, fmt, ap);
      |         ~~~~~~~~~^~~~~~~~~~~~~~~
make: *** [<builtin>: server.o] Error 1
make: Leaving directory '/home/iurt/rpmbuild/BUILD/fceux-2.3.0/fceux-server'
make: *** Waiting for unfinished jobs....
make: Entering directory '/home/iurt/rpmbuild/BUILD/fceux-2.3.0/fceux-server'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables   -c -o md5.o md5.cpp
make: Leaving directory '/home/iurt/rpmbuild/BUILD/fceux-2.3.0/fceux-server'
error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.IwDkEm (%build)


RPM build errors:
    Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend.
    Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.IwDkEm (%build)
I: [iurt_root_command] ERROR: chroot