<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <div class="moz-text-html" lang="x-unicode">
      <div class="moz-cite-prefix">On 2/9/24 02:21, Yao Weng via
        lustre-discuss wrote:<br>
      </div>
      <blockquote type="cite" cite="mid:CAAzm6WBZDmG7ubRdVwJk1kn240LsL1bOEN5tjWORSvx0R=K0Tg@mail.gmail.com">
        <div dir="ltr">Hi, <br>
          I have a question about installing lustre on Ubuntu. There is
          no lustre-server deb package in <span style="font-family:"Helvetica Neue";font-size:13px"><a href="https://downloads.whamcloud.com/public/lustre">https://downloads.whamcloud.com/public/lustre</a>.
            We have to build the deb package ourselves<br>
            <br>
          </span></div>
      </blockquote>
      <p>You will have to probably have use 5.15.0-92-generic version,
        as of 94 the ldiskfs patches do not apply.<br>
      </p>
      <p>If you do not already have e2fsprogs with ldiskfs support you
        should get it here:<br>
        <a class="moz-txt-link-freetext" href="https://build.whamcloud.com/job/e2fsprogs-master/">https://build.whamcloud.com/job/e2fsprogs-master/</a><br>
      </p>
      <p>Next get the matching headers and sources installed:<br>
           sudo apt install linux-headers-5.15.0-92
        linux-headers-5.15.0-92-generic<br>
           sudo apt install linux-source-5.15.0=5.15.0-92.102 </p>
      <p>You can use apt-cache to find the package version:<br>
            apt-cache policy linux-source-5.15.0<br>
      </p>
      <p>Now extract the 'fs/ext4' sources from
        /usr/src/linux-source-5.15.0/linux-source-5.15.0.tar.bz2 and
        copy them to your /usr/src/linux-headers-<version>/fs/ext4<br>
      </p>
      <p>mkdir tmp<br>
        cd tmp<br>
        tar xf /usr/src/linux-source-5.15.0/linux-source-5.15.0.tar.bz2<br>
        sudo cp -v linux-source-5.15.0/fs/ext4/*
        /usr/src/linux-headers-5.15.0-92/fs/ext4/<br>
        cd .. <br>
        rm -fr tmp<br>
      </p>
      <p>Note that 5.15 for ubuntu is recently landed:<br>
          LU-17131 ldiskfs: Add Ubuntu 20.04.5 release 5.15 kernel</p>
      <p>So with the prepared sources and current lustre (master branch)
        that includes LU-17131:</p>
      <p>sh ./autogen.sh<br>
      </p>
      <p>./configure --config-cache --enable-server --enable-client \<br>
          --with-linux=/usr/src/linux-headers-5.15.0-92 \<br>
          --with-linux-obj=/usr/src/linux-headers-5.15.0-92-generic \<br>
          --enable-ldiskfs --enable-modules</p>
      <p>make -j$(nproc)<br>
      </p>
      <p># Additional ./configure options to consider:<br>
          --with-o2ib=/usr/src/ofa_kernel/x86_64/$(uname -r)<br>
          --without-zfs<br>
          --enable-gss<br>
          --enable-gss-keyring<br>
          --enable-crypto<br>
        <br>
      </p>
      <blockquote type="cite" cite="mid:CAAzm6WBZDmG7ubRdVwJk1kn240LsL1bOEN5tjWORSvx0R=K0Tg@mail.gmail.com">
        <div dir="ltr"><span style="font-family:"Helvetica Neue";font-size:13px">We use
            ubuntu 22.04<br>
          </span>
          <p style="margin:0in;font-family:Menlo;font-size:8.25pt;color:black">Distributor
            ID:        Ubuntu</p>
          <p style="margin:0in;font-family:Menlo;font-size:8.25pt;color:black">Description:        Ubuntu
            22.04.3 LTS</p>
          <p style="margin:0in;font-family:Menlo;font-size:8.25pt;color:black">Release:        22.04</p>
          <p style="margin:0in;font-family:Menlo;font-size:8.25pt;color:black">Codename:        jammy<br>
            <br>
            Kernel is <br>
          </p>
          <p style="margin:0in;font-family:Menlo;font-size:8.25pt;color:black">5.15.0-56-generic<br>
            <br>
          </p>
        </div>
      </blockquote>
      You will have to probably have use 5.15.0-92-generic
      <blockquote type="cite" cite="mid:CAAzm6WBZDmG7ubRdVwJk1kn240LsL1bOEN5tjWORSvx0R=K0Tg@mail.gmail.com">
        <div dir="ltr">
          <p style="margin:0in;font-family:Menlo;font-size:8.25pt;color:black">We got
            gcc error when run <br>
          </p>
          <p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">./configure
--with-linux=/home/<user-name>/linux-source-5.15.0/linux-source-5.15.0/<br>
              <br>
            </span></p>
          <p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">gcc: </span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(202,51,35)"><b>error</b></span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">:
              unrecognized command-line option '-V'</span></p>
          <p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">gcc:
              fatal </span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(202,51,35)"><b>error</b></span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">: no
              input files</span></p>
          <p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"> </span></p>
          <p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">gcc: </span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(202,51,35)"><b>error</b></span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">:
              unrecognized command-line option '-qversion'; did you mean
              '--version'?<br>
              <br>
              our gcc is<br>
            </span></p>
          <p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">gcc -v</span></p>
          <p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Using
              built-in specs.</span></p>
          <p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">COLLECT_GCC=gcc</span></p>
          <p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper</span></p>
          <p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa</span></p>
          <p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">OFFLOAD_TARGET_DEFAULT=1</span></p>
          <p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Target:
              x86_64-linux-gnu</span></p>
          <p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Configured
              with: ../src/configure -v --with-pkgversion='Ubuntu
              11.4.0-1ubuntu1~22.04' --with-bugurl=<a class="moz-txt-link-freetext">file:///usr/share/doc/gcc-11/README.Bugs</a>
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2
              --prefix=/usr --with-gcc-major-version-only
              --program-suffix=-11 --program-prefix=x86_64-linux-gnu-
              --enable-shared --enable-linker-build-id
              --libexecdir=/usr/lib --without-included-gettext
              --enable-threads=posix --libdir=/usr/lib --enable-nls
              --enable-bootstrap --enable-clocale=gnu
              --enable-libstdcxx-debug --enable-libstdcxx-time=yes
              --with-default-libstdcxx-abi=new
              --enable-gnu-unique-object --disable-vtable-verify
              --enable-plugin --enable-default-pie --with-system-zlib
              --enable-libphobos-checking=release
              --with-target-system-zlib=auto --enable-objc-gc=auto
              --enable-multiarch --disable-werror --enable-cet
              --with-arch-32=i686 --with-abi=m64
              --with-multilib-list=m32,m64,mx32 --enable-multilib
              --with-tune=generic
--enable-offload-targets=nvptx-none=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr
              --without-cuda-driver --enable-checking=release
              --build=x86_64-linux-gnu --host=x86_64-linux-gnu
              --target=x86_64-linux-gnu
              --with-build-config=bootstrap-lto-lean
              --enable-link-serialization=2</span></p>
          <p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Thread
              model: posix</span></p>
          <p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Supported
              LTO compression algorithms: zlib zstd</span></p>
          <p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"> </span></p>
          <p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">gcc
              version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)<span class="gmail-Apple-converted-space"> <br>
                <br>
                <br>
                Could anyone help suggest how to properly build the
                lustre package ? <br>
                <br>
                Thank you !</span></span></p>
        </div>
        <br>
        <fieldset class="moz-mime-attachment-header"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
lustre-discuss mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a> 
</pre>
      </blockquote>
      <p><br>
      </p>
    </div>
  </body>
</html>