Mock Version: 5.2 Mock Version: 5.2 Mock Version: 5.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/colrdx.spec'], chrootPath='/var/lib/mock/f40-build-2340613-59717/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/colrdx.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1706054400 Wrote: /builddir/build/SRPMS/colrdx-1.02-32.fc40.src.rpm RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/colrdx.spec'], chrootPath='/var/lib/mock/f40-build-2340613-59717/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/colrdx.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1706054400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8G9jSp + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf colrdx-1.02 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/colrdx-1.02.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd colrdx-1.02 + rm -rf /builddir/build/BUILD/colrdx-1.02-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/colrdx-1.02-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (colrdx-install.patch): + echo 'Patch #0 (colrdx-install.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .install --fuzz=0 patching file Makefile + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.wEWeyM + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -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 ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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 ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -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 -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -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 -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd colrdx-1.02 + make -j64 'CFLAGS=-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' gcc -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 -O2 -Wall -I/usr/include/ncurses colrdx.c \ -lncurses -o colrdx colrdx.c: In function ‘main’: colrdx.c:136:13: warning: variable ‘x’ set but not used [-Wunused-but-set-variable] 136 | int x, y = 0; /* Window cursor position */ | ^ In file included from colrdx.c:25: colrdx.c: In function ‘my_wdelch’: colrdx.c:601:35: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’} 601 | oc = mvwinch(win,savey,win->_maxx); | ^~ /usr/include/ncurses/ncurses.h:1326:59: note: in definition of macro ‘mvwinch’ 1326 | #define mvwinch(win,y,x) (wmove((win),(y),(x)) == ERR ? NCURSES_CAST(chtype, ERR) : winch(win)) | ^ colrdx.c:603:31: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’} 603 | mvwinsch(win,savey,win->_maxx, oc); | ^~ /usr/include/ncurses/ncurses.h:1330:59: note: in definition of macro ‘mvwinsch’ 1330 | #define mvwinsch(win,y,x,c) (wmove((win),(y),(x)) == ERR ? ERR : winsch((win),(c))) | ^ colrdx.c:606:23: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’} 606 | while (y < win->_maxy) | ^~ colrdx.c:608:45: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’} 608 | oc = mvwinch(win, y + 1, win->_maxx); | ^~ /usr/include/ncurses/ncurses.h:1326:59: note: in definition of macro ‘mvwinch’ 1326 | #define mvwinch(win,y,x) (wmove((win),(y),(x)) == ERR ? NCURSES_CAST(chtype, ERR) : winch(win)) | ^ colrdx.c:611:41: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’} 611 | mvwinsch(win, y + 1, win->_maxx, oc); | ^~ /usr/include/ncurses/ncurses.h:1330:59: note: in definition of macro ‘mvwinsch’ 1330 | #define mvwinsch(win,y,x,c) (wmove((win),(y),(x)) == ERR ? ERR : winsch((win),(c))) | ^ colrdx.c:612:41: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’} 612 | mvwinsch(win, y + 0, win->_maxx, c); | ^~ /usr/include/ncurses/ncurses.h:1330:59: note: in definition of macro ‘mvwinsch’ 1330 | #define mvwinsch(win,y,x,c) (wmove((win),(y),(x)) == ERR ? ERR : winsch((win),(c))) | ^ colrdx.c:593:13: warning: variable ‘x’ set but not used [-Wunused-but-set-variable] 593 | int x,y,savex,savey; | ^ colrdx.c: In function ‘my_waddch’: colrdx.c:633:24: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’} 633 | y = win->_maxy; | ^~ colrdx.c:637:40: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’} 637 | wmove(win,y,win->_maxx); | ^~ colrdx.c: In function ‘status’: colrdx.c:759:26: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’} 759 | while (x++ <= win->_maxx) | ^~ colrdx.c:705:15: warning: variable ‘y’ set but not used [-Wunused-but-set-variable] 705 | int x,y; | ^ colrdx.c: In function ‘my_wclear’: colrdx.c:770:17: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’} 770 | i = (win->_maxx+1)*(win->_maxy+1); | ^~ colrdx.c:770:32: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’} 770 | i = (win->_maxx+1)*(win->_maxy+1); | ^~ colrdx.c: In function ‘main’: colrdx.c:283:30: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 283 | for (fgets(txbuff, TXWINHEIGHT * COLS, f); !feof(f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ colrdx.c:284:41: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 284 | fgets(txbuff, TXWINHEIGHT * COLS, f) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:8: colrdx] Error 1 RPM build warnings: RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.wEWeyM (%build) %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.wEWeyM (%build) Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/colrdx.spec'\n", 1)] Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/colrdx.spec'