D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/cboard-0.7.5-3.mga9.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.VqhuMY + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf cboard-0.7.5 + /usr/bin/bzip2 -dc /home/pterjan/rpmbuild/SOURCES/cboard-0.7.5.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd cboard-0.7.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ElLGwq + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd cboard-0.7.5 + '[' 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 -fcommon' + autoreconf -vfi autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: running: autopoint --force Copying file m4/codeset.m4 Copying file m4/extern-inline.m4 Copying file m4/fcntl-o.m4 Copying file m4/glibc2.m4 Copying file m4/glibc21.m4 Copying file m4/intdiv0.m4 Copying file m4/intl.m4 Copying file m4/intldir.m4 Copying file m4/intmax.m4 Copying file m4/inttypes-pri.m4 Copying file m4/inttypes_h.m4 Copying file m4/lcmessage.m4 Copying file m4/lock.m4 Copying file m4/longlong.m4 Copying file m4/printf-posix.m4 Copying file m4/size_max.m4 Copying file m4/stdint_h.m4 Copying file m4/threadlib.m4 Copying file m4/uintmax_t.m4 Copying file m4/visibility.m4 Copying file m4/wchar_t.m4 Copying file m4/wint_t.m4 Copying file m4/xsize.m4 Copying file po/Makevars.template autoreconf: running: aclocal --force -I m4 autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: /usr/bin/autoconf --force configure.ac:8: warning: 'AM_CONFIG_HEADER': this macro is obsolete. configure.ac:8: You should use the 'AC_CONFIG_HEADERS' macro instead. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:1089: AM_CONFIG_HEADER is expanded from... configure.ac:8: the top level configure.ac:37: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:37: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:37: the top level configure.ac:66: warning: The macro `AC_HEADER_STDC' is obsolete. configure.ac:66: You should run autoupdate. ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from... configure.ac:66: the top level configure.ac:111: warning: The macro `AC_HEADER_TIME' is obsolete. configure.ac:111: You should run autoupdate. ./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from... configure.ac:111: the top level configure.ac:122: warning: The macro `AC_TYPE_SIGNAL' is obsolete. configure.ac:122: You should run autoupdate. ./lib/autoconf/types.m4:776: AC_TYPE_SIGNAL is expanded from... configure.ac:122: the top level configure.ac:142: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:142: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:142: the top level autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing libchess/Makefile.am:12: warning: source file '$(top_srcdir)/osdep/strsep.c' is in a subdirectory, libchess/Makefile.am:12: but option 'subdir-objects' is disabled automake: warning: possible forward-incompatibility. automake: At least one source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, this automake: behavior may change in a future Automake major version, with object automake: files being placed in the same subdirectory as the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. libchess/Makefile.am:16: warning: source file '$(top_srcdir)/osdep/err.c' is in a subdirectory, libchess/Makefile.am:16: but option 'subdir-objects' is disabled src/Makefile.am:23: warning: source file '$(top_srcdir)/osdep/strsep.c' is in a subdirectory, src/Makefile.am:23: but option 'subdir-objects' is disabled src/Makefile.am:27: warning: source file '$(top_srcdir)/osdep/err.c' is in a subdirectory, src/Makefile.am:27: but option 'subdir-objects' is disabled autoreconf: Leaving directory '.' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fcommon' + 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 + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./build/config.guess + '[' -f /usr/lib/rpm/mageia/config.guess ']' ++ basename ./build/config.guess + cp -af /usr/lib/rpm/mageia/config.guess ./build/config.guess + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./build/config.sub + '[' -f /usr/lib/rpm/mageia/config.sub ']' ++ basename ./build/config.sub + cp -af /usr/lib/rpm/mageia/config.sub ./build/config.sub + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/mageia/config.guess ']' ++ basename ./config.guess + cp -af /usr/lib/rpm/mageia/config.guess ./config.guess + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/mageia/config.sub ']' ++ basename ./config.sub + cp -af /usr/lib/rpm/mageia/config.sub ./config.sub + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --bindir=/usr/games --datadir=/usr/share/games checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking target system type... x86_64-mageia-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports the include directive... yes (GNU style) checking for x86_64-mageia-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for wchar.h... yes checking for minix/config.h... no checking for sys/time.h... yes checking for vfork.h... no checking for sys/select.h... yes checking for sys/socket.h... yes checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking for a sed that does not truncate output... /usr/bin/sed checking whether NLS is requested... yes checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking for x86_64-mageia-linux-gnu-g++... no checking for x86_64-mageia-linux-gnu-c++... no checking for x86_64-mageia-linux-gnu-gpp... no checking for x86_64-mageia-linux-gnu-aCC... no checking for x86_64-mageia-linux-gnu-CC... no checking for x86_64-mageia-linux-gnu-cxx... no checking for x86_64-mageia-linux-gnu-cc++... no checking for x86_64-mageia-linux-gnu-cl.exe... no checking for x86_64-mageia-linux-gnu-FCC... no checking for x86_64-mageia-linux-gnu-KCC... no checking for x86_64-mageia-linux-gnu-RCC... no checking for x86_64-mageia-linux-gnu-xlC_r... no checking for x86_64-mageia-linux-gnu-xlC... no checking for x86_64-mageia-linux-gnu-clang++... no checking for g++... g++ checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking dependency style of g++... none checking for gawk... (cached) gawk checking for x86_64-mageia-linux-gnu-gcc... gcc checking whether the compiler supports GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to enable C11 features... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) none checking how to run the C preprocessor... gcc -E checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for x86_64-mageia-linux-gnu-ranlib... no checking for ranlib... ranlib checking for x86_64-mageia-linux-gnu-pkg-config... /usr/bin/x86_64-mageia-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking for ncursesw via pkg-config... yes checking for working ncursesw/curses.h... yes checking for working ncursesw.h... no checking for working ncurses.h... yes checking for Curses Panel library with ncursesw/panel.h... yes checking for Curses Menu library with ncursesw/menu.h... yes checking for Curses Form library with ncursesw/form.h... yes checking if PERL support is wanted... no checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for sys/wait.h that is POSIX.1 compatible... yes checking for egrep... (cached) /usr/bin/grep -E checking for fcntl.h... yes checking for paths.h... yes checking for sys/socket.h... (cached) yes checking for limits.h... yes checking for sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking for wchar.h... (cached) yes checking for getopt.h... yes checking for sys/param.h... yes checking for regex.h... yes checking for stdarg.h... yes checking for paths.h... (cached) yes checking for err.h... yes checking for __progname... yes checking for glob.h... yes checking if glob.h defines GLOB_NOMATCH... yes checking for _Bool... yes checking for stdbool.h that conforms to C99... yes checking for an ANSI C-conforming const... yes checking for pid_t... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for working alloca.h... yes checking for alloca... yes checking for working memcmp... yes checking for vprintf... yes checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for GNU libc compatible malloc... yes checking for GNU libc compatible realloc... yes checking types of arguments for select... int,fd_set *,struct timeval * checking return type of signal handlers... void checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking for strftime... yes checking for bzero... yes checking for dup2... yes checking for getcwd... yes checking for gethostbyname... yes checking for memset... yes checking for mkdir... yes checking for mkfifo... yes checking for regcomp... yes checking for select... yes checking for socket... yes checking for strcasecmp... yes checking for strdup... yes checking for strerror... yes checking for strrchr... yes checking for strstr... yes checking for vasprintf... yes checking for strsep... yes checking for strchr... yes checking for strncasecmp... yes checking for strpbrk... yes checking for putenv... yes checking for mkstemp... yes checking if debugging is wanted... no checking for Unix98 pty support... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating doc/Makefile config.status: creating data/Makefile config.status: creating libchess/Makefile config.status: creating po/Makefile.in config.status: creating doc/cboard.6 config.status: creating config.h config.status: executing depfiles commands config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile + /usr/bin/make -O -j12 V=1 VERBOSE=1 /usr/bin/make all-recursive Making all in libchess make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/libchess' gcc -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fcommon -c -o move.o move.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/libchess' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/libchess' gcc -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fcommon -c -o pgn.o pgn.c pgn.c: In function 'pgn_open': pgn.c:2509:7: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 2509 | asprintf (&p, "%s/%s", buf, filename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/libchess' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/libchess' rm -f libchess.a ar cru libchess.a pgn.o move.o ranlib libchess.a make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/libchess' Making all in src make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_PATH=\"/usr/share/games/cboard\" -I../libchess -DLOCALE_DIR=\"/usr/share/locale\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fcommon -c -o cboard-input.o `test -f 'input.c' || echo './'`input.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_PATH=\"/usr/share/games/cboard\" -I../libchess -DLOCALE_DIR=\"/usr/share/locale\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fcommon -c -o cboard-message.o `test -f 'message.c' || echo './'`message.c message.c: In function 'build_message_lines': message.c:130:3: warning: ignoring return value of 'vasprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 130 | vasprintf (&line, fmt, ap); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_PATH=\"/usr/share/games/cboard\" -I../libchess -DLOCALE_DIR=\"/usr/share/locale\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fcommon -c -o cboard-misc.o `test -f 'misc.c' || echo './'`misc.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_PATH=\"/usr/share/games/cboard\" -I../libchess -DLOCALE_DIR=\"/usr/share/locale\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fcommon -c -o cboard-colors.o `test -f 'colors.c' || echo './'`colors.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_PATH=\"/usr/share/games/cboard\" -I../libchess -DLOCALE_DIR=\"/usr/share/locale\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fcommon -c -o cboard-window.o `test -f 'window.c' || echo './'`window.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_PATH=\"/usr/share/games/cboard\" -I../libchess -DLOCALE_DIR=\"/usr/share/locale\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fcommon -c -o cboard-engine.o `test -f 'engine.c' || echo './'`engine.c engine.c: In function 'parse_xboard_line': engine.c:550:19: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 550 | system (cmd); | ^~~~~~~~~~~~ engine.c: In function 'add_engine_command': engine.c:666:3: warning: ignoring return value of 'vasprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 666 | vasprintf (&line, fmt, ap); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_PATH=\"/usr/share/games/cboard\" -I../libchess -DLOCALE_DIR=\"/usr/share/locale\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fcommon -c -o cboard-rcfile.o `test -f 'rcfile.c' || echo './'`rcfile.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_PATH=\"/usr/share/games/cboard\" -I../libchess -DLOCALE_DIR=\"/usr/share/locale\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fcommon -c -o cboard-menu.o `test -f 'menu.c' || echo './'`menu.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_PATH=\"/usr/share/games/cboard\" -I../libchess -DLOCALE_DIR=\"/usr/share/locale\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fcommon -c -o cboard-tags.o `test -f 'tags.c' || echo './'`tags.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_PATH=\"/usr/share/games/cboard\" -I../libchess -DLOCALE_DIR=\"/usr/share/locale\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fcommon -c -o cboard-filebrowser.o `test -f 'filebrowser.c' || echo './'`filebrowser.c filebrowser.c: In function 'file_browser': filebrowser.c:378:11: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 378 | getcwd (path, sizeof (path)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ filebrowser.c:382:5: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 382 | getcwd (path, sizeof (path) - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_PATH=\"/usr/share/games/cboard\" -I../libchess -DLOCALE_DIR=\"/usr/share/locale\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fcommon -c -o cboard-cboard.o `test -f 'cboard.c' || echo './'`cboard.c cboard.c: In function 'print_piece': cboard.c:924:5: error: format not a string literal and no format arguments [-Werror=format-security] 924 | mvwprintw (w, l + y, c, f_pieces[0]); | ^~~~~~~~~ cboard.c: In function 'update_status_notify': cboard.c:2399:3: warning: ignoring return value of 'vasprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 2399 | vasprintf (&line, fmt, ap); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ cboard.c: In function 'signal_save_pgn': cboard.c:5912:3: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 5912 | asprintf (&buf, "%s/signal-%i-%li.pgn", p, sig, now); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cboard.c: In function 'main': cboard.c:6017:35: warning: '/cc.data' directive output may be truncated writing 8 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 6017 | snprintf (buf, sizeof (buf), "%s/cc.data", datadir); | ^~~~~~~~ In file included from /usr/include/stdio.h:894, from cboard.c:23: In function 'snprintf', inlined from 'main' at cboard.c:6017:3: /usr/include/bits/stdio2.h:71:10: note: '__builtin___snprintf_chk' output between 9 and 4104 bytes into a destination of size 4096 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ cboard.c: In function 'main': cboard.c:6019:35: warning: '/nag.data' directive output may be truncated writing 9 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 6019 | snprintf (buf, sizeof (buf), "%s/nag.data", datadir); | ^~~~~~~~~ In function 'snprintf', inlined from 'main' at cboard.c:6019:3: /usr/include/bits/stdio2.h:71:10: note: '__builtin___snprintf_chk' output between 10 and 4105 bytes into a destination of size 4096 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ cboard.c: In function 'main': cboard.c:6021:35: warning: '/config' directive output may be truncated writing 7 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 6021 | snprintf (buf, sizeof (buf), "%s/config", datadir); | ^~~~~~~ In function 'snprintf', inlined from 'main' at cboard.c:6021:3: /usr/include/bits/stdio2.h:71:10: note: '__builtin___snprintf_chk' output between 8 and 4103 bytes into a destination of size 4096 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [Makefile:482: cboard-cboard.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cboard-0.7.5/src' make[1]: *** [Makefile:418: all-recursive] Error 1 make: *** [Makefile:359: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.ElLGwq (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.ElLGwq (%build) I: [iurt_root_command] ERROR: chroot