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

RHEL8 build #547

Open
MarbolanGos opened this issue Apr 7, 2023 · 1 comment
Open

RHEL8 build #547

MarbolanGos opened this issue Apr 7, 2023 · 1 comment

Comments

@MarbolanGos
Copy link

MarbolanGos commented Apr 7, 2023

Dear HPC mpifileutils tool maintenor,

For a lustre installation, I was asked to build on RHEL8.6 this tool via the specfile you provide.

Here is the file I add to use:

Name:           mpifileutils
Version:        v0.11.1
Release:        1%{?dist}
Summary:        File utilities designed for scalability and performance.

Group:          System Environment/Libraries
License:        Copyright and BSD License
URL:            https://hpc.github.io/mpifileutils
Source:         %{name}-%{version}.tar.gz
BuildRoot:      %_topdir/BUILDROOT
Requires: libcircle, lwgrp, dtcmp, libarchive, openssl, openssl-devel
BuildRequires: cmake, libattr-devel, libarchive-devel, bzip2-devel, lustre-client-devel, openssl-devel

%description
File utilities designed for scalability and performance.

%prep
%setup -q

%build
#topdir=`pwd`
#installdir=$topdir/install

cmake ./ -DWITH_DTCMP_PREFIX=${installdir} -DWITH_LibCircle_PREFIX=${installdir} -DCMAKE_INSTALL_PREFIX=%{buildroot}/usr -DENABLE_LUSTRE=ON -DENABLE_XATTRS=ON
make

%install
rm -rf %{buildroot}
make install
#make install DESTDIR=$RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_includedir}/*
%{_libdir}/*
%{_mandir}/*
%{_datadir}/*

%changelog

Also, I had to use this commandline:

QA_SKIP_BUILD_ROOT=1  rpmbuild --nodebuginfo   -ba mpifileutils.spec

I was a bit in a hurry to get the tool available so removing debuginfo and not having to use QA is not a good idea so maybe it is possible to be better int he compilation... Also, those tips can help others who need to build this tool!

I prefer not asking for a PR as the modifications are not clean but maybe it is possible to work on updating the file to meet the RHEL requirements.

Addon: I forgot to say that I needed also to load an MPI library and this was done via a "module load openmpi" (specific to my platform here)

@adammoody
Copy link
Member

Thank you, @MarbolanGos . I'll take a look and work to update the spec file.

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