Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build a Lustre client for Rocky 8.10, I encountered issues during the build process. #3

Open
AndrewTsao opened this issue Feb 19, 2025 · 3 comments

Comments

@AndrewTsao
Copy link

Greetings, I have encountered the following issue while attempting to construct a Lustre client on Rocky 8.10. The official repository only provides a precompiled version 2.15.2 for RedHat 8.7 with support for IB network cards. During my build process, I stumbled upon an error when executing 'make rpms'. I wonder if you have ever faced such a predicament, as I followed the official method for the build. The error message is as follows.

cp $rpmbuilddir/SRPMS/lustre-2.15.6-*.src.rpm . || exit 1; \
rm -rf $rpmbuilddir
make[1]: Entering directory '/root/lustre-release'
make[1]: Leaving directory '/root/lustre-release'
error: line 243: Dependency tokens must begin with alpha-numeric, '_' or '/': BuildRequires: %kernel_module_package_buildreqs
make: *** [autoMakefile:1280: srpm] Error 1

My build commands is as follows,

git checkout v2_15_6
 sh autogen.sh
./configure --disable-server --enable-client --with-linux=/usr/src/kernels/4.18.0-553.40.1.el8_10.x86_64/ --with-o2ib=/usr/src/ofa_kernel/default --with-spec=redhat
make
make rpms
@DetlevCM
Copy link
Owner

...it wasn't that hard - is what I thought before embarking on a search... (Because I first built lustre client rpms for our servers, though without infiniband).

Well, a few headaches later it seems you'll need two more packages:

The first one will take care of the kenel macros that rpmbuild cannot find.

dnf install kernel-rpm-macros

Then you'll encounter an error referencing kernel-abi-whitelists that do not exist on Rocky 8.10... Howere there are kernel-abio-stablelists and the code happily seems to build the rpms with these two additional packages installed.

dnf install kernel-abi-stablelists.noarch

I hope this helps? Good luck!

@AndrewTsao
Copy link
Author

AndrewTsao commented Feb 20, 2025

Thank you for your patience. I'll give it a try now.

@AndrewTsao
Copy link
Author

I'm glad the package installation solved the issue and you were able to successfully generate the RPM package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants