st_head *new) | ^~~ /usr/include/btrfs/list.h: In function 'void hlist_move_list(hlist_head*, hlist_head*)': /usr/include/btrfs/list.h:1017:12: error: expected type-specifier before '->' token 1017 | new->first = old->first; | ^~ /usr/include/btrfs/list.h:1018:16: error: expected type-specifier before '->' token 1018 | if (new->first) | ^~ /usr/include/btrfs/list.h:1018:16: error: expected ')' before '->' token 1018 | if (new->first) | ~ ^~ | ) /usr/include/btrfs/list.h:1019:20: error: expected type-specifier before '->' token 1019 | new->first->pprev = &new->first; | ^~ /usr/include/btrfs/extent-cache.h: In function 'int cache_tree_empty(cache_tree*)': /usr/include/btrfs/extent-cache.h:78:16: error: expected primary-expression before 'const' 78 | return RB_EMPTY_ROOT(&tree->root); | ^~~~~~~~~~~~~ /usr/include/btrfs/extent-cache.h:78:16: error: expected ')' before 'const' 78 | return RB_EMPTY_ROOT(&tree->root); | ^~~~~~~~~~~~~ /usr/include/btrfs/extent-cache.h:78:16: error: expected ')' before ';' token 78 | return RB_EMPTY_ROOT(&tree->root); | ^~~~~~~~~~~~~ /usr/include/btrfs/extent-cache.h:78:16: note: to match this '(' 78 | return RB_EMPTY_ROOT(&tree->root); | ^~~~~~~~~~~~~ In file included from /usr/include/btrfs/extent-cache.h:27, from /usr/include/btrfs/ctree.h:33: /usr/include/btrfs/extent-cache.h:78:16: error: invalid operands of types 'void' and 'long int' to binary 'operator==' 78 | return RB_EMPTY_ROOT(&tree->root); | ^ make[2]: *** [Makefile:596: Btrfs.lo] Error 1 make[2]: Entering directory '/builddir/build/BUILD/snapper-0.10.1/snapper' /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2 -DCONF_DIR='"/etc/sysconfig"' -D_FILE_OFFSET_BITS=64 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -std=c++11 -Wall -Wextra -Wformat -Wnon-virtual-dtor -Wno-unused-parameter -Wsuggest-override -c -o AsciiFile.lo AsciiFile.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2 -DCONF_DIR=\"/etc/sysconfig\" -D_FILE_OFFSET_BITS=64 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -std=c++11 -Wall -Wextra -Wformat -Wnon-virtual-dtor -Wno-unused-parameter -Wsuggest-override -c AsciiFile.cc -fPIC -DPIC -o .libs/AsciiFile.o make[2]: Leaving directory '/builddir/build/BUILD/snapper-0.10.1/snapper' make[1]: *** [Makefile:566: all-recursive] Error 1 make: *** [Makefile:469: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.MMGAhW (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.MMGAhW (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, 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 --target riscv64 --nodeps /builddir/build/SPECS/snapper.spec