Hi,
I'm trying to build lustre-2.12.7-1.src.rpm on a Centos 7.9.2009 Virtual machine. I managed to compile the client, but I have some problems with the server compilation. I have the following dependencies installed: kernel-devel epel-release libyaml-devel zlib-devel libselinux-devel kernel-debuginfo-common-x86_64 kernel-debuginfo "@Development tools" corosync corosynclib-devel corosync-debuginfo pacemaker pacemaker-debuginfo net-snmp-devel python-docutils libyaml-devel zfs-release.el7_9 libzfs4 zfs-debuginfo zfs-release libzfs4-devel libzpool4 zfs zfs-dkms zfs-dracut zfs-test If try to build for ldiskfs I get this error: rpmbuild --rebuild --without o2ib --without krb5 --without lustre-tests --with ldiskfs --without zfs lustre-2.12.7-1.src.rpm ########################### make[3]: Leaving directory `/root/rpmbuild/BUILD/lustre-2.12.7/lustre/osc' make[2]: Leaving directory `/root/rpmbuild/BUILD/lustre-2.12.7/lustre/osc' make[2]: Entering directory `/root/rpmbuild/BUILD/lustre-2.12.7/lustre' make[3]: Entering directory `/root/rpmbuild/BUILD/lustre-2.12.7/lustre' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/root/rpmbuild/BUILD/lustre-2.12.7/lustre' make[2]: Leaving directory `/root/rpmbuild/BUILD/lustre-2.12.7/lustre' make[1]: Leaving directory `/root/rpmbuild/BUILD/lustre-2.12.7/lustre' + basemodpath=/root/rpmbuild/BUILDROOT/lustre-2.12.7-1.x86_64/lib/modules/3.10.0-1160.42.2.el7.x86_64/extra/lustre + mkdir -p /root/rpmbuild/BUILDROOT/lustre-2.12.7-1.x86_64/lib/modules/3.10.0-1160.42.2.el7.x86_64/extra/lustre-osd-ldiskfs/fs + mv /root/rpmbuild/BUILDROOT/lustre-2.12.7-1.x86_64/lib/modules/3.10.0-1160.42.2.el7.x86_64/extra/lustre/fs/osd_ldiskfs.ko /root/rpmbuild/BUILDROOT/lustre-2.12.7-1.x86_64/lib/modules/3.10.0-1160.42.2.el7.x86_64/extra/lustre-osd-ldiskfs/fs/osd_ldiskfs.ko mv: cannot stat '/root/rpmbuild/BUILDROOT/lustre-2.12.7-1.x86_64/lib/modules/3.10.0-1160.42.2.el7.x86_64/extra/lustre/fs/osd_ldiskfs.ko': No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.IpMMWA (%install) ########################### If I try for ZFS I get this instead: rpmbuild --rebuild --without o2ib --without krb5 --without lustre-tests --without ldiskfs --with zfs lustre-2.12.7-1.src.rpm ########################### Making all in . In file included from /var/lib/dkms/zfs/2.0.6/source/include/sys/arc.h:32:0, from /root/rpmbuild/BUILD/lustre-2.12.7/lustre/osd-zfs/osd_internal.h:51, from /root/rpmbuild/BUILD/lustre-2.12.7/lustre/osd-zfs/osd_handler.c:52: /var/lib/dkms/zfs/2.0.6/source/include/sys/zfs_context.h:45:23: fatal error: sys/types.h: No such file or directory #include <sys/types.h> ^ compilation terminated. make[6]: *** [/root/rpmbuild/BUILD/lustre-2.12.7/lustre/osd-zfs/osd_handler.o] Error 1 make[5]: *** [/root/rpmbuild/BUILD/lustre-2.12.7/lustre/osd-zfs] Error 2 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [/root/rpmbuild/BUILD/lustre-2.12.7/lustre] Error 2 make[3]: *** [_module_/root/rpmbuild/BUILD/lustre-2.12.7] Error 2 make[2]: *** [modules] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.AChW7c (%build) ########################### I have the file but the path is not included in the compilation, it seems: [root@marco-oss tmp]# locate sys/types.h /usr/include/libspl/sys/types.h /usr/include/sys/types.h /usr/src/debug/glibc-2.17-c758a686/posix/sys/types.h /usr/src/debug/zfs-2.0.6/lib/libspl/include/sys/types.h /usr/src/zfs-2.0.6/include/os/freebsd/spl/sys/types.h /usr/src/zfs-2.0.6/include/os/linux/spl/sys/types.h /usr/src/zfs-2.0.6/lib/libspl/include/sys/types.h I found similar errors in older emails, but I struggled to find a clear solution to this. Could you give me advice on how to proceed? Thanks in advance! Regards, Marco Passerini
_______________________________________________ lustre-discuss mailing list lustre-discuss@lists.lustre.org http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org