of type 'struct lxc_mount_attr *' 317 | struct mount_attr *__uattr, size_t __usize) | ~~~~~~~~~~~~~~~~~~~^~~~~~~ conf.c: In function 'lxc_idmapped_mounts_parent': conf.c:4126:37: error: passing argument 4 of 'mount_setattr' from incompatible pointer type [-Werror=incompatible-pointer-types] 4126 | &attr, sizeof(attr)); | ^~~~~ | | | struct lxc_mount_attr * /usr/include/sys/mount.h:317:46: note: expected 'struct mount_attr *' but argument is of type 'struct lxc_mount_attr *' 317 | struct mount_attr *__uattr, size_t __usize) | ~~~~~~~~~~~~~~~~~~~^~~~~~~ cc1: some warnings being treated as errors make[3]: *** [Makefile:4872: conf.o] Error 1 make[3]: Entering directory '/builddir/build/BUILD/lxc-4.0.12/src/lxc' gcc -DHAVE_CONFIG_H -I. -I../../src -fPIE -Wvla -std=gnu11 -fms-extensions -fdiagnostics-color -Wimplicit-fallthrough=5 -Wcast-align -Wstrict-prototypes -fno-strict-aliasing -fstack-clash-protection -fstack-protector-strong --param=ssp-buffer-size=4 -g -Werror=implicit-function-declaration -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Winit-self -Wunused-but-set-variable -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=return-type -Werror=incompatible-pointer-types -Wformat=2 -Wshadow -Wendif-labels -Werror=overflow -fdiagnostics-show-option -Werror=shift-count-overflow -Werror=shift-overflow=2 -Wdate-time -Wnested-externs -fasynchronous-unwind-tables -pipe -fexceptions -Warray-bounds -Wrestrict -Wreturn-local-addr -Wstringop-overflow -DLXCROOTFSMOUNT=\"/usr/lib64/lxc/rootfs\" -DLXCPATH=\"/var/lib/lxc\" -DLXC_GLOBAL_CONF=\"/etc/lxc/lxc.conf\" -DLXCINITDIR=\"/usr/libexec\" -DLIBEXECDIR=\"/usr/libexec\" -DLXCTEMPLATEDIR=\"/usr/share/lxc/templates\" -DLXCTEMPLATECONFIG=\"/usr/share/lxc/config\" -DLOGPATH=\"/var/log/lxc\" -DLXC_DEFAULT_CONFIG=\"/etc/lxc/default.conf\" -DLXC_USERNIC_DB=\"/run/lxc/nics\" -DLXC_USERNIC_CONF=\"/etc/lxc/lxc-usernet\" -DDEFAULT_CGROUP_PATTERN=\"\" -DRUNTIME_PATH=\"/run\" -DSBINDIR=\"/usr/sbin\" -DAPPARMOR_CACHE_DIR=\"/var/cache/lxc/apparmor\" -I ../../src -I ../../src/include -I ../../src/lxc -I ../../src/lxc/storage -I ../../src/lxc/cgroups -DHAVE_OPENSSL -DHAVE_SECCOMP -DHAVE_SELINUX -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 -Wvla -std=gnu11 -fms-extensions -c -o network.o network.c make[3]: Leaving directory '/builddir/build/BUILD/lxc-4.0.12/src/lxc' make[2]: *** [Makefile:441: all-recursive] Error 1 make[1]: *** [Makefile:380: all] Error 2 make: *** [Makefile:539: all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.PNYp6k (%build) RPM build warnings: RPM build errors: extra tokens at the end of %endif directive in line 29: %endif # with_seccomp extra tokens at the end of %endif directive in line 39: %endif # with_static_init extra tokens at the end of %endif directive in line 214: %endif # with_static_init Bad exit status from /var/tmp/rpm-tmp.PNYp6k (%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/lxc.spec