Mock Version: 6.0 Mock Version: 6.0 Mock Version: 6.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target ppc64le --nodeps /builddir/build/SPECS/tree-pkg.spec'], chrootPath='/var/lib/mock/f42-build-56359862-6543621/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=201600uid=1000gid=425user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b6373k1i:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b6373k1i:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '8dbb255857914e12878e8f85ad248a4a', '-D', '/var/lib/mock/f42-build-56359862-6543621/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b6373k1i:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target ppc64le --nodeps /builddir/build/SPECS/tree-pkg.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: ppc64le Building for target ppc64le setting SOURCE_DATE_EPOCH=1730678400 Wrote: /builddir/build/SRPMS/tree-pkg-2.1.0-7.fc42.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target ppc64le --nodeps /builddir/build/SPECS/tree-pkg.spec'], chrootPath='/var/lib/mock/f42-build-56359862-6543621/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=201600uid=1000gid=425user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b6373k1i:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b6373k1i:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'bd7a816fc661406f821795e631cd841a', '-D', '/var/lib/mock/f42-build-56359862-6543621/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b6373k1i:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target ppc64le --nodeps /builddir/build/SPECS/tree-pkg.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: ppc64le Building for target ppc64le setting SOURCE_DATE_EPOCH=1730678400 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.u8hQ4E + umask 022 + cd /builddir/build/BUILD/tree-pkg-2.1.0-build + test -d /builddir/build/BUILD/tree-pkg-2.1.0-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/tree-pkg-2.1.0-build + /usr/bin/rm -rf /builddir/build/BUILD/tree-pkg-2.1.0-build + /usr/bin/mkdir -p /builddir/build/BUILD/tree-pkg-2.1.0-build + /usr/bin/mkdir -p /builddir/build/BUILD/tree-pkg-2.1.0-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.hevuEp + umask 022 + cd /builddir/build/BUILD/tree-pkg-2.1.0-build + cd /builddir/build/BUILD/tree-pkg-2.1.0-build + rm -rf tree-2.1.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/tree-2.1.0.tgz + STATUS=0 + '[' 0 -ne 0 ']' + cd tree-2.1.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/tree-license-fsf-addr.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/tree-args.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/tree-size-field-len.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/tree-static-analysis.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/tree-static-analysis-2.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + sed -e s/LINUX/__linux__/ -i tree.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.SB9wrj + umask 022 + cd /builddir/build/BUILD/tree-pkg-2.1.0-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 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection ' + 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 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -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 tree-2.1.0 + 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 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection ' + 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 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -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 ++ getconf LFS_CFLAGS + /usr/bin/make -O -j8 V=1 VERBOSE=1 'CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -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 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection ' 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -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 ' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -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 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -c -o hash.o hash.c In file included from hash.c:18: tree.h:85:30: error: expected ‘;’, identifier or ‘(’ before ‘bool’ 85 | typedef enum {FALSE=0, TRUE} bool; | ^~~~ tree.h:85:30: warning: useless type name in empty declaration make: *** [Makefile:100: hash.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -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 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -c -o color.o color.c In file included from color.c:18: tree.h:85:30: error: expected ‘;’, identifier or ‘(’ before ‘bool’ 85 | typedef enum {FALSE=0, TRUE} bool; | ^~~~ tree.h:85:30: warning: useless type name in empty declaration make: *** [Makefile:100: color.o] Error 1 gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -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 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -c -o unix.o unix.c In file included from unix.c:18: tree.h:85:30: error: expected ‘;’, identifier or ‘(’ before ‘bool’ 85 | typedef enum {FALSE=0, TRUE} bool; | ^~~~ tree.h:85:30: warning: useless type name in empty declaration make: *** [Makefile:100: unix.o] Error 1 gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -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 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -c -o file.o file.c In file included from file.c:18: tree.h:85:30: error: expected ‘;’, identifier or ‘(’ before ‘bool’ 85 | typedef enum {FALSE=0, TRUE} bool; | ^~~~ tree.h:85:30: warning: useless type name in empty declaration file.c: In function ‘fprune’: file.c:174:55: error: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types] 174 | if (topsort) qsort(dir,count,sizeof(struct _info *),topsort); | ^~~~~~~ | | | int (*)(void) In file included from tree.h:21: /usr/include/stdlib.h:971:34: note: expected ‘__compar_fn_t’ {aka ‘int (*)(const void *, const void *)’} but argument is of type ‘int (*)(void)’ 971 | __compar_fn_t __compar) __nonnull ((1, 4)); | ~~~~~~~~~~~~~~^~~~~~~~ /usr/include/stdlib.h:948:15: note: ‘__compar_fn_t’ declared here 948 | typedef int (*__compar_fn_t) (const void *, const void *); | ^~~~~~~~~~~~~ make: *** [Makefile:100: file.o] Error 1 gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -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 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -c -o list.o list.c In file included from list.c:18: tree.h:85:30: error: expected ‘;’, identifier or ‘(’ before ‘bool’ 85 | typedef enum {FALSE=0, TRUE} bool; | ^~~~ tree.h:85:30: warning: useless type name in empty declaration list.c: In function ‘listdir’: list.c:150:54: error: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types] 150 | if (topsort) qsort(dir, n, sizeof(struct _info *), topsort); | ^~~~~~~ | | | int (*)(void) In file included from tree.h:21: /usr/include/stdlib.h:971:34: note: expected ‘__compar_fn_t’ {aka ‘int (*)(const void *, const void *)’} but argument is of type ‘int (*)(void)’ 971 | __compar_fn_t __compar) __nonnull ((1, 4)); | ~~~~~~~~~~~~~~^~~~~~~~ /usr/include/stdlib.h:948:15: note: ‘__compar_fn_t’ declared here 948 | typedef int (*__compar_fn_t) (const void *, const void *); | ^~~~~~~~~~~~~ make: *** [Makefile:100: list.o] Error 1 gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -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 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -c -o info.o info.c In file included from info.c:18: tree.h:85:30: error: expected ‘;’, identifier or ‘(’ before ‘bool’ 85 | typedef enum {FALSE=0, TRUE} bool; | ^~~~ tree.h:85:30: warning: useless type name in empty declaration make: *** [Makefile:100: info.o] Error 1 gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -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 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -c -o filter.o filter.c In file included from filter.c:18: tree.h:85:30: error: expected ‘;’, identifier or ‘(’ before ‘bool’ 85 | typedef enum {FALSE=0, TRUE} bool; | ^~~~ tree.h:85:30: warning: useless type name in empty declaration make: *** [Makefile:100: filter.o] Error 1 gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -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 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -c -o tree.o tree.c In file included from tree.c:19: tree.h:85:30: error: expected ‘;’, identifier or ‘(’ before ‘bool’ 85 | typedef enum {FALSE=0, TRUE} bool; | ^~~~ tree.h:85:30: warning: useless type name in empty declaration tree.c:49:21: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(struct _info **, struct _info **)’ [-Wincompatible-pointer-types] 49 | int (*basesort)() = alnumsort; | ^~~~~~~~~ tree.h:202:5: note: ‘alnumsort’ declared here 202 | int alnumsort(struct _info **, struct _info **); | ^~~~~~~~~ tree.c:77:12: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(struct _info **, struct _info **)’ [-Wincompatible-pointer-types] 77 | {"name", alnumsort}, | ^~~~~~~~~ tree.c:77:12: note: (near initialization for ‘sorts[0].cmpfunc’) tree.h:202:5: note: ‘alnumsort’ declared here 202 | int alnumsort(struct _info **, struct _info **); | ^~~~~~~~~ tree.c:78:15: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(struct _info **, struct _info **)’ [-Wincompatible-pointer-types] 78 | {"version", versort}, | ^~~~~~~ tree.c:78:15: note: (near initialization for ‘sorts[1].cmpfunc’) tree.h:203:5: note: ‘versort’ declared here 203 | int versort(struct _info **a, struct _info **b); | ^~~~~~~ tree.c:79:12: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(struct _info **, struct _info **)’ [-Wincompatible-pointer-types] 79 | {"size", fsizesort}, | ^~~~~~~~~ tree.c:79:12: note: (near initialization for ‘sorts[2].cmpfunc’) tree.h:208:5: note: ‘fsizesort’ declared here 208 | int fsizesort(struct _info **a, struct _info **b); | ^~~~~~~~~ tree.c:80:13: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(struct _info **, struct _info **)’ [-Wincompatible-pointer-types] 80 | {"mtime", mtimesort}, | ^~~~~~~~~ tree.c:80:13: note: (near initialization for ‘sorts[3].cmpfunc’) tree.h:205:5: note: ‘mtimesort’ declared here 205 | int mtimesort(struct _info **, struct _info **); | ^~~~~~~~~ tree.c:81:13: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(struct _info **, struct _info **)’ [-Wincompatible-pointer-types] 81 | {"ctime", ctimesort}, | ^~~~~~~~~ tree.c:81:13: note: (near initialization for ‘sorts[4].cmpfunc’) tree.h:206:5: note: ‘ctimesort’ declared here 206 | int ctimesort(struct _info **, struct _info **); | ^~~~~~~~~ tree.c: In function ‘main’: tree.c:275:20: error: assignment to ‘int (*)(void)’ from incompatible pointer type ‘int (*)(struct _info **, struct _info **)’ [-Wincompatible-pointer-types] 275 | basesort = mtimesort; | ^ tree.h:205:5: note: ‘mtimesort’ declared here 205 | int mtimesort(struct _info **, struct _info **); | ^~~~~~~~~ tree.c:278:20: error: assignment to ‘int (*)(void)’ from incompatible pointer type ‘int (*)(struct _info **, struct _info **)’ [-Wincompatible-pointer-types] 278 | basesort = ctimesort; | ^ tree.h:206:5: note: ‘ctimesort’ declared here 206 | int ctimesort(struct _info **, struct _info **); | ^~~~~~~~~ tree.c:285:20: error: assignment to ‘int (*)(void)’ from incompatible pointer type ‘int (*)(struct _info **, struct _info **)’ [-Wincompatible-pointer-types] 285 | basesort = versort; | ^ tree.h:203:5: note: ‘versort’ declared here 203 | int versort(struct _info **a, struct _info **b); | ^~~~~~~ tree.c:389:23: error: assignment to ‘int (*)(void)’ from incompatible pointer type ‘int (*)(struct _info **, struct _info **)’ [-Wincompatible-pointer-types] 389 | topsort = dirsfirst; | ^ tree.h:201:5: note: ‘dirsfirst’ declared here 201 | int dirsfirst(struct _info **, struct _info **); | ^~~~~~~~~ tree.c:394:23: error: assignment to ‘int (*)(void)’ from incompatible pointer type ‘int (*)(struct _info **, struct _info **)’ [-Wincompatible-pointer-types] 394 | topsort = filesfirst; | ^ tree.h:200:5: note: ‘filesfirst’ declared here 200 | int filesfirst(struct _info **, struct _info **); | ^~~~~~~~~~ tree.c: In function ‘unix_getfulltree’: tree.c:985:51: error: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types] 985 | if (topsort) qsort(sav,n,sizeof(struct _info *),topsort); | ^~~~~~~ | | | int (*)(void) In file included from tree.h:21: /usr/include/stdlib.h:971:34: note: expected ‘__compar_fn_t’ {aka ‘int (*)(const void *, const void *)’} but argument is of type ‘int (*)(void)’ 971 | __compar_fn_t __compar) __nonnull ((1, 4)); | ~~~~~~~~~~~~~~^~~~~~~~ /usr/include/stdlib.h:948:15: note: ‘__compar_fn_t’ declared here 948 | typedef int (*__compar_fn_t) (const void *, const void *); | ^~~~~~~~~~~~~ tree.c: In function ‘filesfirst’: tree.c:1005:10: error: too many arguments to function ‘basesort’; expected 0, have 2 1005 | return basesort(a, b); | ^~~~~~~~ ~ tree.c: In function ‘dirsfirst’: tree.c:1013:10: error: too many arguments to function ‘basesort’; expected 0, have 2 1013 | return basesort(a, b); | ^~~~~~~~ ~ make: *** [Makefile:100: tree.o] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.SB9wrj (%build) Bad exit status from /var/tmp/rpm-tmp.SB9wrj (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M bd7a816fc661406f821795e631cd841a -D /var/lib/mock/f42-build-56359862-6543621/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.b6373k1i:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin \'--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"\' \'--setenv=PS1= \\s-\\v\\$ \' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c \'/usr/bin/rpmbuild -bb --noclean --target ppc64le --nodeps /builddir/build/SPECS/tree-pkg.spec\'\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.13/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.13/site-packages/mockbuild/util.py", line 610, 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: # /usr/bin/systemd-nspawn -q -M bd7a816fc661406f821795e631cd841a -D /var/lib/mock/f42-build-56359862-6543621/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.b6373k1i:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --noclean --target ppc64le --nodeps /builddir/build/SPECS/tree-pkg.spec'