Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/xxkb.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-845465-28421/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=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/xxkb.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 Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674259200 Wrote: /builddir/build/SRPMS/xxkb-1.11.1-13.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/xxkb.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-845465-28421/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=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/xxkb.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 Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674259200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.N50KlO + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf xxkb-1.11.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/xxkb-1.11.1-src.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd xxkb-1.11.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/xxkb-default-config.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.46CKGT + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + 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 xxkb-1.11.1 + xmkmf imake -DUseInstalled -I/usr/share/X11/config + sed -i 's|CCOPTIONS =|CCOPTIONS = -O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -fno-omit-frame-pointer |' Makefile + sed -i 's|EXTRA_LDOPTIONS =|EXTRA_LDOPTIONS = -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 |' Makefile + /usr/bin/make -O -j8 V=1 VERBOSE=1 gcc -O2 -Wall -O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -fno-omit-frame-pointer -I/usr/include -Dlinux LinuxMachineDefines -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 -DAPPDEFDIR=\"/usr/share/X11/app-defaults\" -DAPPDEFFILE=\"XXkb\" -DXT_RESOURCE_SEARCH -DSHAPE_EXT -c -o wlist.o wlist.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:26, from wlist.c:11: /usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ gcc: warning: LinuxMachineDefines: linker input file unused because linking not done gcc: error: LinuxMachineDefines: linker input file not found: No such file or directory make: *** [: wlist.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -O2 -Wall -O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -fno-omit-frame-pointer -I/usr/include -Dlinux LinuxMachineDefines -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 -DAPPDEFDIR=\"/usr/share/X11/app-defaults\" -DAPPDEFFILE=\"XXkb\" -DXT_RESOURCE_SEARCH -DSHAPE_EXT -c -o resource.o resource.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/string.h:26, from resource.c:15: /usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ resource.c: In function 'GetElementRes': resource.c:270:41: warning: pointer targets in passing argument 9 of 'XWMGeometry' differ in signedness [-Wpointer-sign] 270 | &tmp_geom.width, &tmp_geom.height, | ^~~~~~~~~~~~~~~ | | | unsigned int * In file included from resource.c:23: /usr/include/X11/Xutil.h:821:5: note: expected 'int *' but argument is of type 'unsigned int *' 821 | int* /* width_return */, | ^~~~ resource.c:270:58: warning: pointer targets in passing argument 10 of 'XWMGeometry' differ in signedness [-Wpointer-sign] 270 | &tmp_geom.width, &tmp_geom.height, | ^~~~~~~~~~~~~~~~ | | | unsigned int * /usr/include/X11/Xutil.h:822:5: note: expected 'int *' but argument is of type 'unsigned int *' 822 | int* /* height_return */, | ^~~~ gcc: warning: LinuxMachineDefines: linker input file unused because linking not done gcc: error: LinuxMachineDefines: linker input file not found: No such file or directory make: *** [: resource.o] Error 1 gcc -O2 -Wall -O2 -flto=auto -ffat-lto-objects -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 -fstack-clash-protection -fno-omit-frame-pointer -I/usr/include -Dlinux LinuxMachineDefines -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 -DAPPDEFDIR=\"/usr/share/X11/app-defaults\" -DAPPDEFFILE=\"XXkb\" -DXT_RESOURCE_SEARCH -DSHAPE_EXT -c -o xxkb.o xxkb.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from xxkb.c:10: /usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ xxkb.c: In function 'main': xxkb.c:313:70: warning: pointer targets in passing argument 6 of 'XQueryTree' differ in signedness [-Wpointer-sign] 313 | XQueryTree(dpy, root_win, &rwin, &parent, &children, &num); | ^~~~ | | | int * In file included from xxkb.c:13: /usr/include/X11/Xlib.h:3037:5: note: expected 'unsigned int *' but argument is of type 'int *' 3037 | unsigned int* /* nchildren_return */ | ^~~~~~~~~~~~~ xxkb.c:450:127: warning: pointer targets in passing argument 9 of 'XQueryPointer' differ in signedness [-Wpointer-sign] 450 | XQueryPointer(dpy, temp_win, &root, &child, &root_x, &root_y, &add_x, &add_y, &mask); | ^~~~~ | | | int * /usr/include/X11/Xlib.h:3006:5: note: expected 'unsigned int *' but argument is of type 'int *' 3006 | unsigned int* /* mask_return */ | ^~~~~~~~~~~~~ xxkb.c:670:94: warning: pointer targets in passing argument 6 of 'XQueryTree' differ in signedness [-Wpointer-sign] 670 | XQueryTree(dpy, temp_win, &rwin, &parent, &children, &num); | ^~~~ | | | int * /usr/include/X11/Xlib.h:3037:5: note: expected 'unsigned int *' but argument is of type 'int *' 3037 | unsigned int* /* nchildren_return */ | ^~~~~~~~~~~~~ xxkb.c: In function 'GetGrandParent': xxkb.c:954:68: warning: pointer targets in passing argument 6 of 'XQueryTree' differ in signedness [-Wpointer-sign] 954 | if (!XQueryTree(dpy, w, &rwin, &parent, &children, &num)) { | ^~~~ | | | int * /usr/include/X11/Xlib.h:3037:5: note: expected 'unsigned int *' but argument is of type 'int *' 3037 | unsigned int* /* nchildren_return */ | ^~~~~~~~~~~~~ xxkb.c: In function 'GetAppWindow': xxkb.c:974:62: warning: pointer targets in passing argument 6 of 'XQueryTree' differ in signedness [-Wpointer-sign] 974 | if (!XQueryTree(dpy, win, &rwin, &parent, &children, &num)) { | ^~~~ | | | int * /usr/include/X11/Xlib.h:3037:5: note: expected 'unsigned int *' but argument is of type 'int *' 3037 | unsigned int* /* nchildren_return */ | ^~~~~~~~~~~~~ gcc: warning: LinuxMachineDefines: linker input file unused because linking not done gcc: error: LinuxMachineDefines: linker input file not found: No such file or directory make: *** [: xxkb.o] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.46CKGT (%build) Bad exit status from /var/tmp/rpm-tmp.46CKGT (%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/xxkb.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, 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 --noclean --target riscv64 --nodeps /builddir/build/SPECS/xxkb.spec