[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lustre-discuss
Subject:    Re: [lustre-discuss] Building lustre on rocky 8.8 fails?
From:       Andreas Dilger via lustre-discuss <lustre-discuss () lists ! lustre ! org>
Date:       2024-01-06 9:22:31
Message-ID: 07670651-1E2A-4FC0-AE76-78956EEC6FA9 () ddn ! com
[Download RAW message or body]

Why not download the matching kernel and Lustre RPMs together?  I would recommend \
RHEL8 servers as the most stable, RHEL9 hasn't been run for very long as a Lustre \
server.

On Jan 5, 2024, at 02:41, Jan Andersen <jan@comind.io<mailto:jan@comind.io>> wrote:

Hi Xinliang and Andreas,

Thanks for helping with this!

I tried out your suggestions, and it compiled fine; however, things had become quite \
messy on the server, so I decided to reinstall the Rocky 8.8 and start over. Again, \
lustre built successfully, but for some reason, when you download the source code \
package from the repository, you get a slightly different version from the kernel's, \
with the result that lustre places its modules in a place the running kernel can't \
find.

So I built the kernel from source with the correct version, rebooted, cloned lustre \
again, ./configured etc, and now:

[root@mds lustre-release]# make
make  all-recursive
make[1]: Entering directory '/root/lustre-release'
Making all in ldiskfs
make[2]: Entering directory '/root/lustre-release/ldiskfs'
make[2]: *** No rule to make target '../ldiskfs/kernel_patches/series/ldiskfs-', \
needed by 'sources'.  Stop. make[2]: Leaving directory '/root/lustre-release/ldiskfs'
make[1]: *** [autoMakefile:680: all-recursive] Error 1
make[1]: Leaving directory '/root/lustre-release'
make: *** [autoMakefile:546: all] Error 2

Which I don't quite understand, because I still have all the necessary packages and \
tools from before.

Before I barge ahead and try yet another permutation, do you have any advice so I \
might avoid problems? I can reinstall the OS, which will be a bit of a pain, but not \
that bad - but then which version; 8.8 or 8.9, or even 9? Or is there a simplish \
thing I can do to avoid all that?

/jan

On 03/01/2024 02:17, Xinliang Liu wrote:
On Wed, 3 Jan 2024 at 10:08, Xinliang Liu \
<xinliang.liu@linaro.org<mailto:xinliang.liu@linaro.org> \
<mailto:xinliang.liu@linaro.org>> wrote:  Hi Jan,
   On Tue, 2 Jan 2024 at 22:29, Jan Andersen <jan@comind.io<mailto:jan@comind.io> \
<mailto:jan@comind.io>> wrote:  I have installed Rocky 8.8 on a new server (Dell \
PowerEdge R640):  [root@mds 4.18.0-513.9.1.el8_9.x86_64]# cat /etc/*release*
       Rocky Linux release 8.8 (Green Obsidian)
       NAME="Rocky Linux"
       VERSION="8.8 (Green Obsidian)"
       ID="rocky"
       ID_LIKE="rhel centos fedora"
       VERSION_ID="8.8"
       PLATFORM_ID="platform:el8"
       PRETTY_NAME="Rocky Linux 8.8 (Green Obsidian)"
       ANSI_COLOR="0;32"
       LOGO="fedora-logo-icon"
       CPE_NAME="cpe:/o:rocky:rocky:8:GA"
       HOME_URL="https://rockylinux.org/ <https://rockylinux.org/>"
       BUG_REPORT_URL="https://bugs.rockylinux.org/ <https://bugs.rockylinux.org/>"
       SUPPORT_END="2029-05-31"
       ROCKY_SUPPORT_PRODUCT="Rocky-Linux-8"
       ROCKY_SUPPORT_PRODUCT_VERSION="8.8"
       REDHAT_SUPPORT_PRODUCT="Rocky Linux"
       REDHAT_SUPPORT_PRODUCT_VERSION="8.8"
       Rocky Linux release 8.8 (Green Obsidian)
       Rocky Linux release 8.8 (Green Obsidian)
       Derived from Red Hat Enterprise Linux 8.8
       Rocky Linux release 8.8 (Green Obsidian)
       cpe:/o:rocky:rocky:8:GA
       I downloaded the kernel source (I don't remember the exact command):
       [root@mds 4.18.0-513.9.1.el8_9.x86_64]# ll /usr/src/kernels
       total 8
       drwxr-xr-x. 24 root root 4096 Jan  2 13:49 4.18.0-513.9.1.el8_9.x86_64/
       drwxr-xr-x. 23 root root 4096 Jan  2 11:41 4.18.0-513.9.1.el8_9.x86_64+debug/
       Copied the config from /boot and ran:
       yes "" | make oldconfig
       After that I cloned the Lustre source and configured (according to my notes):
       git clone git://git.whamcloud.com/fs/lustre-release.git \
<http://git.whamcloud.com/fs/lustre-release.git>  cd lustre-release
       git checkout 2.15.3
       dnf install libtool
       dnf install flex
       dnf install bison
       dnf install openmpi-devel
       dnf install python3-devel
       dnf install python3
       dnf install kernel-devel kernel-headers
       dnf install elfutils-libelf-devel
       dnf install keyutils keyutils-libs-devel
       dnf install libmount
       dnf --enablerepo=powertools install libmount-devel
       dnf install libnl3 libnl3-devel
       dnf config-manager --set-enabled powertools
       dnf install libyaml-devel
       dnf install patch
       dnf install e2fsprogs-devel
       dnf install kernel-core
       dnf install kernel-modules
       dnf install rpm-build
       dnf config-manager --enable devel
       dnf config-manager --enable powertools
       dnf config-manager --set-enabled ha
       dnf install kernel-debuginfo
       sh autogen.sh
       ./configure
       This appeared to finish without errors:
       ...
       config.status: executing libtool commands
       CC:            gcc
       LD:            /usr/bin/ld -m elf_x86_64
       CPPFLAGS:      -include /root/lustre-release/undef.h -include \
/root/lustre-release/config.h -I/root/lustre-release/lnet/include/uapi \
-I/root/lustre-release/lustre/include/uapi -I/root/lustre-release/libcfs/include \
-I/root/lustre-release/lnet/utils/ -I/root/lustre-release/lustre/include  CFLAGS:     \
-g -O2 -Wall -Werror  EXTRA_KCFLAGS: -include /root/lustre-release/undef.h -include \
/root/lustre-release/config.h  -g -I/root/lustre-release/libcfs/include \
-I/root/lustre-release/libcfs/include/libcfs -I/root/lustre-release/lnet/include/uapi \
-I/root/lustre-release/lnet/include -I/root/lustre-release/lustre/include/uapi \
-I/root/lustre-release/lustre/include -Wno-format-truncation -Wno-stringop-truncation \
-Wno-stringop-overflow  Type 'make' to build Lustre.
       However, when I run make:
       [root@mds lustre-release]# make
       make  all-recursive
       make[1]: Entering directory '/root/lustre-release'
       Making all in ldiskfs
       make[2]: Entering directory '/root/lustre-release/ldiskfs'
       make[2]: *** No rule to make target \
'../ldiskfs/kernel_patches/series/ldiskfs-', needed by 'sources'.  Stop.  This looks \
like it can't detect the ldiskfs-4.18-rhel8.8.series property.  Most probably the \
ext4 kernel source rpm (kernel-debuginfo-common-x86_64) hasn't been installed yet.  \
And like Andreas said try latest 2.15.4.  Best,
   Xinliang
       make[2]: Leaving directory '/root/lustre-release/ldiskfs'
       make[1]: *** [autoMakefile:649: all-recursive] Error 1
       make[1]: Leaving directory '/root/lustre-release'
       make: *** [autoMakefile:521: all] Error 2
       Alternatively, I tried make rpms which results in:
       ...
       rpmbuilddir=`mktemp -t -d rpmbuild-lustre-$USER-XXXXXXXX`; \
       make  \
                 rpmbuilddir="$rpmbuilddir" rpm-local || exit 1; \
       cp ./rpm/* .; \
       /usr/bin/rpmbuild \
                 --define "_tmppath $rpmbuilddir/TMP" \
                 --define "_topdir $rpmbuilddir" \
                 --define "dist %{nil}" \
                 -ts lustre-2.15.3.tar.gz || exit 1; \
       cp $rpmbuilddir/SRPMS/lustre-2.15.3-*.src.rpm . || exit 1; \
       rm -rf $rpmbuilddir
       make[1]: Entering directory '/root/lustre-release'
       make[1]: Leaving directory '/root/lustre-release'
       error: line 239: Dependency tokens must begin with alpha-numeric, '_' or '/': \
BuildRequires: %kernel_module_package_buildreqs And this might caused by lacking of \
rpm kernel-rpm-macros. Usually,  sudo dnf builddep -y lustre.spec should install all \
the build required RPMs.  make: *** [autoMakefile:1237: srpm] Error 1
       So, I'm stuck - it seems this is something I do a lot; how do I move forward \
from here?  _______________________________________________
       lustre-discuss mailing list
       lustre-discuss@lists.lustre.org<mailto:lustre-discuss@lists.lustre.org> \
                <mailto:lustre-discuss@lists.lustre.org>
       http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org \
<http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org> \
_______________________________________________ lustre-discuss mailing list
lustre-discuss@lists.lustre.org<mailto:lustre-discuss@lists.lustre.org>
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org

Cheers, Andreas
--
Andreas Dilger
Lustre Principal Architect
Whamcloud


[Attachment #3 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: \
after-white-space;" class=""> Why not download the matching kernel and Lustre RPMs \
together? &nbsp;I would recommend RHEL8 servers as the most stable, RHEL9 hasn't been \
run for very long as a Lustre server.<br class=""> <div><br class="">
<blockquote type="cite" class="">
<div class="">On Jan 5, 2024, at 02:41, Jan Andersen &lt;<a \
href="mailto:jan@comind.io" class="">jan@comind.io</a>&gt; wrote:</div> <br \
class="Apple-interchange-newline"> <div class="">
<div class="">Hi Xinliang and Andreas,<br class="">
<br class="">
Thanks for helping with this!<br class="">
<br class="">
I tried out your suggestions, and it compiled fine; however, things had become quite \
messy on the server, so I decided to reinstall the Rocky 8.8 and start over. Again, \
lustre built successfully, but for some reason, when you download the source code \
package  from the repository, you get a slightly different version from the kernel's, \
with the result that lustre places its modules in a place the running kernel can't \
find.<br class=""> <br class="">
So I built the kernel from source with the correct version, rebooted, cloned lustre \
again, ./configured etc, and now:<br class=""> <br class="">
[root@mds lustre-release]# make<br class="">
make &nbsp;all-recursive<br class="">
make[1]: Entering directory '/root/lustre-release'<br class="">
Making all in ldiskfs<br class="">
make[2]: Entering directory '/root/lustre-release/ldiskfs'<br class="">
make[2]: *** No rule to make target '../ldiskfs/kernel_patches/series/ldiskfs-', \
needed by 'sources'. &nbsp;Stop.<br class=""> make[2]: Leaving directory \
'/root/lustre-release/ldiskfs'<br class=""> make[1]: *** [autoMakefile:680: \
all-recursive] Error 1<br class=""> make[1]: Leaving directory \
                '/root/lustre-release'<br class="">
make: *** [autoMakefile:546: all] Error 2<br class="">
<br class="">
Which I don't quite understand, because I still have all the necessary packages and \
tools from before.<br class=""> <br class="">
Before I barge ahead and try yet another permutation, do you have any advice so I \
might avoid problems? I can reinstall the OS, which will be a bit of a pain, but not \
that bad - but then which version; 8.8 or 8.9, or even 9? Or is there a simplish \
thing I can  do to avoid all that?<br class="">
<br class="">
/jan<br class="">
<br class="">
On 03/01/2024 02:17, Xinliang Liu wrote:<br class="">
<blockquote type="cite" class="">On Wed, 3 Jan 2024 at 10:08, Xinliang Liu &lt;<a \
href="mailto:xinliang.liu@linaro.org" class="">xinliang.liu@linaro.org</a> &lt;<a \
href="mailto:xinliang.liu@linaro.org" \
class="">mailto:xinliang.liu@linaro.org</a>&gt;&gt; wrote:<br class=""> \
&nbsp;&nbsp;&nbsp;Hi Jan,<br class=""> &nbsp;&nbsp;&nbsp;On Tue, 2 Jan 2024 at 22:29, \
Jan Andersen &lt;<a href="mailto:jan@comind.io" class="">jan@comind.io</a> &lt;<a \
href="mailto:jan@comind.io" class="">mailto:jan@comind.io</a>&gt;&gt; wrote:<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I have installed Rocky 8.8 on a \
new server (Dell PowerEdge R640):<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[root@mds 4.18.0-513.9.1.el8_9.x86_64]# cat \
/etc/*release*<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rocky Linux \
release 8.8 (Green Obsidian)<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NAME=&quot;Rocky Linux&quot;<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;VERSION=&quot;8.8 (Green Obsidian)&quot;<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ID=&quot;rocky&quot;<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ID_LIKE=&quot;rhel centos fedora&quot;<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;VERSION_ID=&quot;8.8&quot;<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PLATFORM_ID=&quot;platform:el8&quot;<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PRETTY_NAME=&quot;Rocky Linux 8.8 \
(Green Obsidian)&quot;<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ANSI_COLOR=&quot;0;32&quot;<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LOGO=&quot;fedora-logo-icon&quot;<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CPE_NAME=&quot;cpe:/o:rocky:rocky:8:GA&quot;<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HOME_URL=&quot;<a \
href="https://rockylinux.org/" class="">https://rockylinux.org/</a> &lt;<a \
href="https://rockylinux.org/" class="">https://rockylinux.org/</a>&gt;&quot;<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BUG_REPORT_URL=&quot;<a \
href="https://bugs.rockylinux.org/" class="">https://bugs.rockylinux.org/</a> &lt;<a \
href="https://bugs.rockylinux.org/" \
class="">https://bugs.rockylinux.org/</a>&gt;&quot;<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SUPPORT_END=&quot;2029-05-31&quot;<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ROCKY_SUPPORT_PRODUCT=&quot;Rocky-Linux-8&quot;<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ROCKY_SUPPORT_PRODUCT_VERSION=&quot;8.8&quot;<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;REDHAT_SUPPORT_PRODUCT=&quot;Rocky \
Linux&quot;<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;REDHAT_SUPPORT_PRODUCT_VERSION=&quot;8.8&quot;<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rocky Linux release 8.8 (Green \
Obsidian)<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rocky Linux release \
8.8 (Green Obsidian)<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Derived \
from Red Hat Enterprise Linux 8.8<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rocky Linux release 8.8 (Green Obsidian)<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cpe:/o:rocky:rocky:8:GA<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I downloaded the kernel source (I \
don't remember the exact command):<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[root@mds 4.18.0-513.9.1.el8_9.x86_64]# ll \
/usr/src/kernels<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;total 8<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drwxr-xr-x. 24 root root 4096 \
Jan&nbsp; 2 13:49 4.18.0-513.9.1.el8_9.x86_64/<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drwxr-xr-x. 23 root root 4096 Jan&nbsp; 2 \
11:41 4.18.0-513.9.1.el8_9.x86_64+debug/<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copied the config from /boot and ran:<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yes &quot;&quot; | make \
oldconfig<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;After that I cloned \
the Lustre source and configured (according to my notes):<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;git clone <a \
href="git://git.whamcloud.com/fs/lustre-release.git" class=""> \
git://git.whamcloud.com/fs/lustre-release.git</a> &lt;<a \
href="http://git.whamcloud.com/fs/lustre-release.git" \
class="">http://git.whamcloud.com/fs/lustre-release.git</a>&gt;<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cd lustre-release<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;git checkout 2.15.3<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf install libtool<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf install flex<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf install bison<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf install openmpi-devel<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf install python3-devel<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf install python3<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf install kernel-devel kernel-headers<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf install \
elfutils-libelf-devel<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf \
install keyutils keyutils-libs-devel<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf install libmount<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf --enablerepo=powertools install \
libmount-devel<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf install \
libnl3 libnl3-devel<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf \
config-manager --set-enabled powertools<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf install libyaml-devel<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf install patch<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf install e2fsprogs-devel<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf install kernel-core<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf install kernel-modules<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf install rpm-build<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf config-manager --enable devel<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf config-manager --enable \
powertools<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf config-manager \
--set-enabled ha<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnf install \
kernel-debuginfo<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sh \
autogen.sh<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;./configure<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This appeared to finish without \
errors:<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;config.status: executing libtool \
commands<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CC:&nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; gcc<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LD:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; /usr/bin/ld -m elf_x86_64<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CPPFLAGS:&nbsp; &nbsp; &nbsp; -include \
/root/lustre-release/undef.h -include /root/lustre-release/config.h \
-I/root/lustre-release/lnet/include/uapi -I/root/lustre-release/lustre/include/uapi \
-I/root/lustre-release/libcfs/include -I/root/lustre-release/lnet/utils/ \
-I/root/lustre-release/lustre/include<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CFLAGS:&nbsp; &nbsp; &nbsp; &nbsp; -g -O2 \
-Wall -Werror<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EXTRA_KCFLAGS: \
-include /root/lustre-release/undef.h -include /root/lustre-release/config.h&nbsp; -g \
-I/root/lustre-release/libcfs/include -I/root/lustre-release/libcfs/include/libcfs \
                -I/root/lustre-release/lnet/include/uapi \
                -I/root/lustre-release/lnet/include
 -I/root/lustre-release/lustre/include/uapi -I/root/lustre-release/lustre/include \
-Wno-format-truncation -Wno-stringop-truncation -Wno-stringop-overflow<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Type 'make' to build Lustre.<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;However, when I run make:<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[root@mds lustre-release]# make<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make&nbsp; all-recursive<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make[1]: Entering directory \
'/root/lustre-release'<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Making \
all in ldiskfs<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make[2]: \
Entering directory '/root/lustre-release/ldiskfs'<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make[2]: *** No rule to make target \
'../ldiskfs/kernel_patches/series/ldiskfs-', needed by 'sources'.&nbsp; Stop.<br \
class=""> &nbsp;&nbsp;&nbsp;This looks like it can't detect the \
ldiskfs-4.18-rhel8.8.series&nbsp;property.&nbsp; Most probably the ext4 kernel source \
rpm (kernel-debuginfo-common-x86_64) hasn't been installed yet.<br class=""> \
&nbsp;&nbsp;&nbsp;And like Andreas said try latest 2.15.4.<br class=""> \
&nbsp;&nbsp;&nbsp;Best,<br class=""> &nbsp;&nbsp;&nbsp;Xinliang<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make[2]: Leaving directory \
'/root/lustre-release/ldiskfs'<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make[1]: *** [autoMakefile:649: \
all-recursive] Error 1<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make[1]: Leaving directory \
'/root/lustre-release'<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make: \
*** [autoMakefile:521: all] Error 2<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Alternatively, I tried make rpms which \
results in:<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rpmbuilddir=`mktemp -t -d \
rpmbuild-lustre-$USER-XXXXXXXX`; \<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make&nbsp; \<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp;rpmbuilddir=&quot;$rpmbuilddir&quot; rpm-local || exit 1; \<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cp ./rpm/* .; \<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/usr/bin/rpmbuild \<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp;--define &quot;_tmppath $rpmbuilddir/TMP&quot; \<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp;--define &quot;_topdir $rpmbuilddir&quot; \<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp;--define &quot;dist %{nil}&quot; \<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-ts \
lustre-2.15.3.tar.gz || exit 1; \<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cp \
$rpmbuilddir/SRPMS/lustre-2.15.3-*.src.rpm . || exit 1; \<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rm -rf $rpmbuilddir<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make[1]: Entering directory \
'/root/lustre-release'<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make[1]: Leaving directory \
'/root/lustre-release'<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error: \
line 239: Dependency tokens must begin with alpha-numeric, '_' or '/': BuildRequires: \
%kernel_module_package_buildreqs<br class=""> And this might caused by lacking of \
rpm&nbsp;kernel-rpm-macros.<br class=""> Usually,&nbsp;&nbsp;sudo dnf builddep -y \
lustre.spec should install all the build required RPMs.<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make: *** [autoMakefile:1237: srpm] Error \
1<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;So, I'm stuck - it seems \
this is something I do a lot; how do I move forward from here?<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_______________________________________________<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lustre-discuss mailing list<br \
class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a \
href="mailto:lustre-discuss@lists.lustre.org" \
class="">lustre-discuss@lists.lustre.org</a> &lt;<a \
href="mailto:lustre-discuss@lists.lustre.org" \
class="">mailto:lustre-discuss@lists.lustre.org</a>&gt;<br class=""> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a \
href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" \
class="">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a> &lt;<a \
href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" \
class="">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a>&gt;<br \
class=""> </blockquote>
_______________________________________________<br class="">
lustre-discuss mailing list<br class="">
<a href="mailto:lustre-discuss@lists.lustre.org" \
class="">lustre-discuss@lists.lustre.org</a><br class=""> \
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org<br class=""> </div>
</div>
</blockquote>
</div>
<br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); \
letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; \
text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: \
after-white-space;" class=""> <div dir="auto" style="caret-color: rgb(0, 0, 0); \
color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; \
text-transform: none; white-space: normal; word-spacing: 0px; \
-webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; \
-webkit-nbsp-mode: space; line-break: after-white-space;" class=""> <div dir="auto" \
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; \
text-align: start; text-indent: 0px; text-transform: none; white-space: normal; \
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: \
break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""> <div \
dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: \
normal; text-align: start; text-indent: 0px; text-transform: none; white-space: \
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; \
word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" \
class=""> <div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); \
letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; \
text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: \
after-white-space;" class=""> <div dir="auto" style="caret-color: rgb(0, 0, 0); \
color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; \
text-transform: none; white-space: normal; word-spacing: 0px; \
-webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; \
-webkit-nbsp-mode: space; line-break: after-white-space;" class=""> <div>Cheers, \
Andreas</div> <div>--</div>
<div>Andreas Dilger</div>
<div>Lustre&nbsp;Principal Architect</div>
<div>Whamcloud</div>
<div><br class="">
</div>
<div><br class="">
</div>
<div><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br class="">
</body>
</html>



_______________________________________________
lustre-discuss mailing list
lustre-discuss@lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org

--===============8412645198819458236==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic