This has been reported on the Gentoo bug tracker for version 0.7 with kernel headers 6.0:
x86_64-pc-linux-gnu-g++ -Wall -Wextra -O3 -I../include -D_FILE_OFFSET_BITS=64 -std=c++11 -Wold-style-cast -pipe -march=native -fno-diagnostics-color -O2 -o fd.o -c fd.cc
In file included from ../include/crucible/btrfs.h:17,
from ../include/crucible/fs.h:11,
from extentwalker.cc:5:
/usr/include/linux/btrfs.h:633:45: error: flexible array member btrfs_ioctl_same_args::info not at end of struct crucible::BtrfsExtentSame
633 | struct btrfs_ioctl_same_extent_info info[];
| ^~~~
This has been reported on the Gentoo bug tracker for version 0.7 with kernel headers 6.0:
Link: https://bugs.gentoo.org/876391