[lustre-discuss] Compiling b2_15 with zfs-2.3.0
Alex Vodeyko
alex.vodeyko at gmail.com
Mon Feb 17 03:49:48 PST 2025
Hi,
I've got the following error while compiling the latest b2_15 lustre
head on rhel8.10 with zfs-2.3.0 and 4.18.0-553.27.1.el8_lustre.x86_64
kernel (from lustre-2.15.6)
Making all in .
In file included from include/linux/kernel.h:10,
from
/tmp/rpmbuild-lustre-root-EBq5OI5z/BUILD/lustre-2.15.6_11_ged826bd_dirty/libcfs/include/libcfs/libcfs.h:35,
from
/tmp/rpmbuild-lustre-root-EBq5OI5z/BUILD/lustre-2.15.6_11_ged826bd_dirty/lustre/osd-zfs/osd_index.c:39:
/tmp/rpmbuild-lustre-root-EBq5OI5z/BUILD/lustre-2.15.6_11_ged826bd_dirty/lustre/osd-zfs/osd_index.c:
In function ‘osd_dir_it_next’:
/tmp/rpmbuild-lustre-root-EBq5OI5z/BUILD/lustre-2.15.6_11_ged826bd_dirty/lustre/osd-zfs/osd_index.c:1333:21:
error: invalid application of ‘sizeof’ to incomplete type ‘char[]’
BUILD_BUG_ON(sizeof(za->za_name) > sizeof(it->ozi_name));
^
include/linux/compiler.h:439:19: note: in definition of macro
‘__compiletime_assert’
bool __cond = !(condition); \
^~~~~~~~~
include/linux/compiler.h:462:2: note: in expansion of macro
‘_compiletime_assert’
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro
‘compiletime_assert’
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^~~~~~~~~~~~~~~~
/tmp/rpmbuild-lustre-root-EBq5OI5z/BUILD/lustre-2.15.6_11_ged826bd_dirty/lustre/osd-zfs/osd_index.c:1333:2:
note: in expansion of macro ‘BUILD_BUG_ON’
BUILD_BUG_ON(sizeof(za->za_name) > sizeof(it->ozi_name));
^~~~~~~~~~~~
make[7]: *** [scripts/Makefile.build:317:
/tmp/rpmbuild-lustre-root-EBq5OI5z/BUILD/lustre-2.15.6_11_ged826bd_dirty/lustre/osd-zfs/osd_index.o]
Error 1
make[6]: *** [scripts/Makefile.build:558:
/tmp/rpmbuild-lustre-root-EBq5OI5z/BUILD/lustre-2.15.6_11_ged826bd_dirty/lustre/osd-zfs]
Error 2
make[6]: *** Waiting for unfinished jobs....
make[5]: *** [scripts/Makefile.build:558:
/tmp/rpmbuild-lustre-root-EBq5OI5z/BUILD/lustre-2.15.6_11_ged826bd_dirty/lustre]
Error 2
make[4]: *** [Makefile:1619:
_module_/tmp/rpmbuild-lustre-root-EBq5OI5z/BUILD/lustre-2.15.6_11_ged826bd_dirty]
Error 2
make[3]: *** [autoMakefile:1154: modules] Error 2
make[2]: *** [autoMakefile:692: all-recursive] Error 1
make[1]: *** [autoMakefile:552: all] Error 2
error: Bad exit status from
/tmp/rpmbuild-lustre-root-EBq5OI5z/TMP/rpm-tmp.NTKKgC (%build)
RPM build errors:
line 306: second Summary
Bad exit status from
/tmp/rpmbuild-lustre-root-EBq5OI5z/TMP/rpm-tmp.NTKKgC (%build)
make: *** [autoMakefile:1265: rpms] Error 1
Could you please help with it?
Many thanks,
Alex
More information about the lustre-discuss
mailing list