[lustre-discuss] Compiling debian client packages
Hanno Rein
hanno.rein at utoronto.ca
Tue Jul 22 08:51:27 PDT 2025
Hello,
I have successfully compiled (and installed) debian packages for all the lustre server components. However, I'm running into problems trying to compile debian packages for the clients.
I'm configuring lustre version 2.16.57 with the following options:
./configure --with-linux=/usr/src/linux-headers-6.1.0-37-amd64 --disable-ldiskfs --with-zfs --enable-client --disable-server
When trying to compile with make I get the following errors:
In file included from /home/rein/lustre-release2/lustre/osd-zfs/osd_handler.c:30:
/home/rein/lustre-release2/lustre/include/md_object.h:20:3: error: #error "client code should not depend on md_object.h"
20 | # error "client code should not depend on md_object.h"
| ^~~~~
CC [M] /home/rein/lustre-release2/lnet/lnet/adler.o
In file included from /home/rein/lustre-release2/lustre/osd-zfs/osd_handler.c:32:
/home/rein/lustre-release2/lustre/osd-zfs/osd_internal.h:385:33: error: field ‘od_brw_stats’ has incomplete type
385 | struct brw_stats od_brw_stats;
| ^~~~~~~~~~~~
/home/rein/lustre-release2/lustre/osd-zfs/osd_handler.c: In function ‘osd_mount’:
/home/rein/lustre-release2/lustre/osd-zfs/osd_handler.c:1180:14: error: implicit declaration of function ‘lprocfs_init_brw_stats’; did you mean ‘lprocfs_init_ldlm_stats’? [-Werror=implicit-function-declaration]
1180 | rc = lprocfs_init_brw_stats(&o->od_brw_stats);
| ^~~~~~~~~~~~~~~~~~~~~~
| lprocfs_init_ldlm_stats
When I don't disable the server parts, e.g.
./configure --with-linux=/usr/src/linux-headers-6.1.0-37-amd64 --disable-ldiskfs --with-zfs --enable-client
then the compilation works fine, but make debs complains:
dpkg-genchanges: warning: package lustre-client-utils in control file but not in files list
and as a result no client debs are created (only the server ones).
Any hints on how to fix this would be greatly appreciated!
Thank you!
Hanno
More information about the lustre-discuss
mailing list