<div dir="ltr">Forgot the config errors (intentionally broke long 3rd line in gcc.. for easier reading):<div><br><div><pre class="gmail-code gmail-highlight" lang="plaintext"><span id="gmail-LC1" class="gmail-line" lang="plaintext">make -f scripts/Makefile.build obj=/software/build/lustre-release/lustre/osd-zfs</span>
<span id="gmail-LC2" class="gmail-line" lang="plaintext">   rm -f /software/build/lustre-release/lustre/osd-zfs/built-in.o; ar rcsD /software/build/lustre-release/lustre/osd-zfs/built-in.o</span>
<span id="gmail-LC3" class="gmail-line" lang="plaintext">  gcc -Wp,-MD,/software/build/lustre-release/lustre/osd-zfs/.osd_handler.o.d \</span></pre><pre class="gmail-code gmail-highlight" lang="plaintext"><span class="gmail-line" lang="plaintext"> -nostdinc </span>-isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include \</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -I./arch/x86/include -Iarch/x86/include/generated -Iinclude \</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi\</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -I./include/uapi -Iinclude/generated/uapi\</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -include /lib/modules/3.10.0-1160.6.1.el7.x86_64/source/include/linux/kconfig.h\</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration \</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -Wno-format-security -fno-delete-null-pointer-checks -std=gnu89 -O2 -m64 -mno-mmx -mno-sse -mpreferred-stack-boundary=3\</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -Wframe-larger-than=2048\</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1\</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare\</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -mindirect-branch=thunk-extern\</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -mindirect-branch-register -DRETPOLINE -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable\</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once\</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO\</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -include /software/build/zfs/zfs_config.h -I/software/build/zfs\</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -I/software/build/zfs/include -I/software/build/zfs/include/spl -include /software/build/lustre-release/undef.h\</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -include /software/build/lustre-release/config.h -g -I/software/build/lustre-release/libcfs/include\</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -I/software/build/lustre-release/libcfs/include/libcfs -I/software/build/lustre-release/lnet/include/uapi\</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -I/software/build/lustre-release/lnet/include -I/software/build/lustre-release/lustre/include/uapi\</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -I/software/build/lustre-release/lustre/include -Wno-format-truncation -Wno-stringop-truncation -Wno-stringop-overflow\</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -g -O2 -Wall -Werror  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(osd_handler)" \</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> -D"KBUILD_MODNAME=KBUILD_STR(osd_zfs)" -c -o /software/build/lustre-release/lustre/osd-zfs/.tmp_osd_handler.o \</pre><pre class="gmail-code gmail-highlight" lang="plaintext"> /software/build/lustre-release/lustre/osd-zfs/osd_handler.c</pre><pre class="gmail-code gmail-highlight" lang="plaintext"><span id="gmail-LC4" class="gmail-line" lang="plaintext">In file included from /software/build/zfs/include/sys/arc.h:32:0,</span>
<span id="gmail-LC5" class="gmail-line" lang="plaintext">                 from /software/build/lustre-release/lustre/osd-zfs/osd_internal.h:51,</span>
<span id="gmail-LC6" class="gmail-line" lang="plaintext">                 from /software/build/lustre-release/lustre/osd-zfs/osd_handler.c:52:</span>
<span id="gmail-LC7" class="gmail-line" lang="plaintext">/software/build/zfs/include/sys/zfs_context.h:45:23: fatal error: sys/types.h: No such file or directory</span>
<span id="gmail-LC8" class="gmail-line" lang="plaintext"> #include <sys/types.h></span>
<span id="gmail-LC9" class="gmail-line" lang="plaintext">                       ^</span>
<span id="gmail-LC10" class="gmail-line" lang="plaintext">compilation terminated.</span>
<span id="gmail-LC11" class="gmail-line" lang="plaintext">make[6]: *** [/software/build/lustre-release/lustre/osd-zfs/osd_handler.o] Error 1</span>
<span id="gmail-LC12" class="gmail-line" lang="plaintext">make[5]: *** [/software/build/lustre-release/lustre/osd-zfs] Error 2</span>
<span id="gmail-LC13" class="gmail-line" lang="plaintext">make[4]: *** [/software/build/lustre-release/lustre] Error 2</span>
<span id="gmail-LC14" class="gmail-line" lang="plaintext">make[3]: *** [_module_/software/build/lustre-release] Error 2</span>
<span id="gmail-LC15" class="gmail-line" lang="plaintext">make[3]: Leaving directory `/usr/src/kernels/3.10.0-1160.6.1.el7.x86_64'</span>
<span id="gmail-LC16" class="gmail-line" lang="plaintext">make[2]: *** [modules] Error 2</span>
<span id="gmail-LC17" class="gmail-line" lang="plaintext">make[2]: Leaving directory `/software/build/lustre-release'</span>
<span id="gmail-LC18" class="gmail-line" lang="plaintext">make[1]: *** [all-recursive] Error 1</span>
<span id="gmail-LC19" class="gmail-line" lang="plaintext">make[1]: Leaving directory `/software/build/lustre-release'</span>
<span id="gmail-LC20" class="gmail-line" lang="plaintext">make: *** [all] Error 2</span>
</pre><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 6, 2021 at 4:51 PM Hugo R Hernandez <<a href="mailto:hdezmora@gmail.com">hdezmora@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Christian, thanks for the hint.  Let me review and get back to you if I get with the problem. <br><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 6, 2021 at 3:45 PM Christian Kuntz <<a href="mailto:c.kuntz@opendrives.com" target="_blank">c.kuntz@opendrives.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi Hugo,<div dir="auto"><br></div><div dir="auto">The autoconf has some detection that should be able to grab the SPL information for Zfs .8+ source dirs, so you may be able to scrub it out and let the scripting handle it (you can always double check it's correct by reading the conf logs).</div><div dir="auto"><br></div><div dir="auto">Can you forward any configuration errors you are getting? If you're compiling off of the ZFS sources there were some changes to the header layout that may be causing a challenge. </div><div dir="auto"><br></div><div dir="auto">Best,</div><div dir="auto">Christian</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 6, 2021, 1:38 PM  <<a href="mailto:lustre-discuss-request@lists.lustre.org" target="_blank">lustre-discuss-request@lists.lustre.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send lustre-discuss mailing list submissions to<br>
        <a href="mailto:lustre-discuss@lists.lustre.org" rel="noreferrer" target="_blank">lustre-discuss@lists.lustre.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" rel="noreferrer noreferrer" target="_blank">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:lustre-discuss-request@lists.lustre.org" rel="noreferrer" target="_blank">lustre-discuss-request@lists.lustre.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:lustre-discuss-owner@lists.lustre.org" rel="noreferrer" target="_blank">lustre-discuss-owner@lists.lustre.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of lustre-discuss digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: Lustre version 2.14 support for CentOS 7 (Hugo R Hernandez)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 6 May 2021 11:47:44 -0500<br>
From: Hugo R Hernandez <<a href="mailto:hdezmora@gmail.com" rel="noreferrer" target="_blank">hdezmora@gmail.com</a>><br>
To: <a href="mailto:lustre-discuss@lists.lustre.org" rel="noreferrer" target="_blank">lustre-discuss@lists.lustre.org</a><br>
Subject: Re: [lustre-discuss] Lustre version 2.14 support for CentOS 7<br>
Message-ID:<br>
        <<a href="mailto:CAGBBdBhjRRpvatnyHu19Yha215xYUbmXwst0oL6DUv8QS55HeA@mail.gmail.com" rel="noreferrer" target="_blank">CAGBBdBhjRRpvatnyHu19Yha215xYUbmXwst0oL6DUv8QS55HeA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Morning Lustre Community!<br>
<br>
Has anyone experienced any issue when trying to build Lustre 2.14 with ZFS<br>
2.0.4 on CentOS7.9 running any of these two kernels:  3.10.0-1160.6.1.el7<br>
(tested during release) and 3.10.0-1160.25.1.el7 (latest).  Is there any<br>
'special recipe' you need to follow for a proper Lustre build from source?<br>
When we built for 2.10+ we used to use these flags when configuring:<br>
<br>
--with-zfs<br>
--with-zfs-obj<br>
--with-spl<br>
--with-spl-obj<br>
<br>
but ZFS 2.0.x now includes SPL as part of it as previously they were<br>
separated packages.<br>
<br>
Any hint on how to address this problem?  Help is greatly appreciated!<br>
<br>
Thanks,<br>
-Hugo<br>
<br>
<br>
<br>
On Fri, Apr 30, 2021 at 12:51 PM Hugo R Hernandez <<a href="mailto:hdezmora@gmail.com" rel="noreferrer" target="_blank">hdezmora@gmail.com</a>><br>
wrote:<br>
<br>
> Peter, I have been trying to get 2.14 ready with ZFS 2.0.4 on CentOS 7.9<br>
> but I have encountered a couple of issues.  This is what I have been doing:<br>
><br>
> ZFS:<br>
> Install dependency packages<br>
> git clone <a href="https://github.com/openzfs/zfs.git" rel="noreferrer noreferrer" target="_blank">https://github.com/openzfs/zfs.git</a><br>
> git checkout remotes/origin/zfs-2.0-release<br>
> ./autogen.sh<br>
> ./configure<br>
> make && make rpms<br>
> install libzfs4, zfs-2.0.4, zfs-dksm (have tried also installing<br>
> kmod-zfs*, libuutil3, libnvpair3, libzpool4)<br>
><br>
> Lustre:<br>
> git clone git://<a href="http://git.whamcloud.com/fs/lustre-release.git" rel="noreferrer noreferrer" target="_blank">git.whamcloud.com/fs/lustre-release.git</a><br>
> git checkout remotes/origin/b2_14<br>
> ./autogen.sh<br>
> ./configure --enable-ldiskfs --with-zfs --enable-quota --enable-utils<br>
> --enable-gss --enable-snmp --with-zfs-obj=/var/lib/dkms/zfs/2.0.4/3.10.0-<br>
> 1160.24.1.el7.x86_64/x86_64<br>
> make <<< here I have linking breaks<br>
><br>
> I get an error like this:<br>
><br>
> fatal error: sys/byteorder.h: No such file or directory<br>
>  #include <sys/byteorder.h><br>
><br>
> I wondering if I'm doing this on an updated CentOS 7.9 host running<br>
> kernel 3.10.0-1160.24.1.el7 instead of the one used for testing during<br>
> release cycle:  3.10.0-1160.6.1.el7.  is there something I'm missing or<br>
> doing wrong in this case?  Should I be able to compile then build RPMs i.e.<br>
> using now available 3.10.0-1160.25.1.el7 so we can have happy security<br>
> folks by using the latest kernel?<br>
><br>
> Please advise.  Thanks in advance!<br>
><br>
> --<br>
> *Hugo R Hernandez*<br>
><br>
> "Se seus esfor?os foram vistos com indeferen?a, n?o desanime que o sol<br>
> faze um espectacolo maravilhoso todas as manh?s enquanto a maioria das<br>
> pessoas ainda est?o dormindo"<br>
> - An?nimo brasileiro<br>
><br>
><br>
> On Thu, Apr 15, 2021 at 12:01 PM Peter Jones <<a href="mailto:pjones@whamcloud.com" rel="noreferrer" target="_blank">pjones@whamcloud.com</a>> wrote:<br>
><br>
>> Hugo<br>
>><br>
>><br>
>><br>
>> 2.14 will likely build/work against centos 7.9 even though that was not<br>
>> the primary kernel it was tested against<br>
>><br>
>><br>
>><br>
>> Peter<br>
>><br>
>><br>
>><br>
>> *From: *lustre-discuss <<a href="mailto:lustre-discuss-bounces@lists.lustre.org" rel="noreferrer" target="_blank">lustre-discuss-bounces@lists.lustre.org</a>> on<br>
>> behalf of Hugo R Hernandez via lustre-discuss <<br>
>> <a href="mailto:lustre-discuss@lists.lustre.org" rel="noreferrer" target="_blank">lustre-discuss@lists.lustre.org</a>><br>
>> *Reply-To: *Hugo R Hernandez <<a href="mailto:hdezmora@gmail.com" rel="noreferrer" target="_blank">hdezmora@gmail.com</a>><br>
>> *Date: *Thursday, April 15, 2021 at 8:50 AM<br>
>> *To: *"<a href="mailto:lustre-discuss@lists.lustre.org" rel="noreferrer" target="_blank">lustre-discuss@lists.lustre.org</a>" <<a href="mailto:lustre-discuss@lists.lustre.org" rel="noreferrer" target="_blank">lustre-discuss@lists.lustre.org</a>><br>
>> *Subject: *[lustre-discuss] Lustre version 2.14 support for CentOS 7<br>
>><br>
>><br>
>><br>
>> Hello there!  We have been planning to upgrade Lustre from 2.10+ to 2.14,<br>
>> but we encountered it supports only RHEL 8.3, SLES 15 SP2, and Ubuntu<br>
>> 20.04.   How about RHEL/CentOS 7?<br>
>><br>
>><br>
>><br>
>> <a href="https://downloads.whamcloud.com/public/lustre/lustre-2.14.0/" rel="noreferrer noreferrer" target="_blank">https://downloads.whamcloud.com/public/lustre/lustre-2.14.0/</a><br>
>><br>
>><br>
>><br>
>> We can see release 2.13 supports RHEL 7.7 (servers and clients) and<br>
>> 2.12.9 supports RHEL 7.9.  Part of this upgrade is motivated to work on a<br>
>> OST-to-DoM migration but this appears to be possible until 2.13.  Our<br>
>> desire is to use DoM to alleviate with metadata performance due to tons of<br>
>> small files.  We want at this point to verify if any 2.13 or 2.14 would<br>
>> eventually support CentOS 7.9.<br>
>><br>
>><br>
>><br>
>> Thanks in advance!<br>
>><br>
>> -Hugo<br>
>><br>
>><br>
>> --<br>
>><br>
>> "Se seus esfor?os foram vistos com indeferen?a, n?o desanime que o sol<br>
>> faze um espectacolo maravilhoso todas as manh?s enquanto a maioria das<br>
>> pessoas ainda est?o dormindo"<br>
>><br>
>> - An?nimo brasileiro<br>
>><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20210506/79071bda/attachment-0001.html" rel="noreferrer noreferrer" target="_blank">http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20210506/79071bda/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
lustre-discuss mailing list<br>
<a href="mailto:lustre-discuss@lists.lustre.org" rel="noreferrer" target="_blank">lustre-discuss@lists.lustre.org</a><br>
<a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" rel="noreferrer noreferrer" target="_blank">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br>
<br>
<br>
------------------------------<br>
<br>
End of lustre-discuss Digest, Vol 182, Issue 6<br>
**********************************************<br>
</blockquote></div>
_______________________________________________<br>
lustre-discuss mailing list<br>
<a href="mailto:lustre-discuss@lists.lustre.org" target="_blank">lustre-discuss@lists.lustre.org</a><br>
<a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" rel="noreferrer" target="_blank">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br>
</blockquote></div>
</blockquote></div>