<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    You're building lfs with warnings and -Werror turned up. These may
    be default flags on your system, but it can be problematic, as
    Intel's build process tends not to do this.&nbsp; (Cray has occasional
    issues with this, as we build our userspace tools with different
    compiler flags than Intel does)<br>
    <br>
    - Patrick<br>
    <div class="moz-cite-prefix">On 07/17/2015 11:14 AM, Sean Caron
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAA43vkXHYwLARwXJQ_UmVuqQMCLZYguoo-Et=Gmhyfw9u-p2Ng@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div dir="ltr">I was using a Git pull from Intel circa a few weeks
        ago ... same code base I had used to build Server on CentOS 7.
        <div><br>
        </div>
        <div>I tried a fresh Git pull just from yesterday and the build
          failed with an actual compilation error:</div>
        <div><br>
        </div>
        <div>
          <div>gcc -DHAVE_CONFIG_H -I. -I../.. &nbsp; -include
            /usr/src/lustre-release/config.h
            -I/usr/src/lustre-release/libcfs/include
            -I/usr/src/lustre-release/lnet/include
            -I/usr/src/lustre-release/lustre/include -D_FORTIFY_SOURCE=2
            -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1
            -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -Wall -g -O2 -O2
            -Werror -c lustre_lfsck.c</div>
          <div>lfs.c: In function &#8216;migrate_copy_timestamps&#8217;:</div>
          <div>lfs.c:481:2: error: implicit declaration of function
            &#8216;futimes&#8217; [-Werror=implicit-function-declaration]</div>
          <div>&nbsp; return futimes(fdv, tv);</div>
          <div>&nbsp; ^</div>
          <div>gcc -DHAVE_CONFIG_H -I. -I../.. &nbsp; -include
            /usr/src/lustre-release/config.h
            -I/usr/src/lustre-release/libcfs/include
            -I/usr/src/lustre-release/lnet/include
            -I/usr/src/lustre-release/lustre/include -D_FORTIFY_SOURCE=2
            -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1
            -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -Wall -g -O2 -O2
            -Werror -c obd.c</div>
          <div>gcc -DHAVE_CONFIG_H -I. -I../.. &nbsp; -include
            /usr/src/lustre-release/config.h
            -I/usr/src/lustre-release/libcfs/include
            -I/usr/src/lustre-release/lnet/include
            -I/usr/src/lustre-release/lustre/include -D_FORTIFY_SOURCE=2
            -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1
            -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -Wall -g -O2 -O2
            -Werror -c lustre_cfg.c</div>
          <div>cc1: all warnings being treated as errors</div>
          <div>make[6]: *** [lfs.o] Error 1</div>
          <div>make[6]: *** Waiting for unfinished jobs....</div>
          <div>make[6]: Leaving directory
            `/usr/src/lustre-release/lustre/utils'</div>
          <div>make[5]: *** [all-recursive] Error 1</div>
          <div>make[5]: Leaving directory
            `/usr/src/lustre-release/lustre/utils'</div>
          <div>make[4]: *** [all-recursive] Error 1</div>
          <div>make[4]: Leaving directory
            `/usr/src/lustre-release/lustre'</div>
          <div>make[3]: *** [all-recursive] Error 1</div>
          <div>make[3]: Leaving directory `/usr/src/lustre-release'</div>
          <div>make[2]: *** [all] Error 2</div>
          <div>make[2]: Leaving directory `/usr/src/lustre-release'</div>
          <div>make[1]: *** [build-stamp] Error 2</div>
          <div>make[1]: Leaving directory `/usr/src/lustre-release'</div>
          <div>dpkg-buildpackage: error: debian/rules build gave error
            exit status 2</div>
          <div>make: *** [debs] Error 2</div>
        </div>
        <div><br>
        </div>
        <div>So looks like some issues there ... I will wait a few days
          and hopefully that gets resolved and I can try again.</div>
        <div><br>
        </div>
        <div>Best,</div>
        <div><br>
        </div>
        <div>Sean</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Jul 15, 2015 at 6:10 PM,
          Christopher J. Morrone <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:morrone2@llnl.gov"
              target="_blank">morrone2@llnl.gov</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hmmm.&nbsp;
            There are certainly some puzzling things done in the lustre
            build system around O2IB options and debian packaging.&nbsp;
            Sorry, don't think I'll be of much help on this one.<br>
            <br>
            chris
            <div class="HOEnZb">
              <div class="h5"><br>
                <br>
                On 07/15/2015 02:25 PM, Christopher J. Morrone wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  What version of Lustre are you using?&nbsp; I don't can't
                  reproduce your<br>
                  problem on master.<br>
                  <br>
                  Chris<br>
                  <br>
                  On 07/15/2015 02:10 PM, Christopher J. Morrone wrote:<br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    You could try seeing if "--without-o2ib" gets you
                    what you want.&nbsp; It<br>
                    might not, but at least it is quick to try.<br>
                    <br>
                    Chris<br>
                    <br>
                    <br>
                    On 07/15/2015 01:41 PM, Sean Caron wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      Hi all,<br>
                      <br>
                      Sorry for the cross-post from the Intel Lustre
                      list but hoping I might<br>
                      get more traction here...<br>
                      <br>
                      Working with my Git pull of the Intel Lustre
                      codebase from a few weeks<br>
                      ago, I'm trying to build the client on Ubuntu
                      12.04 with a house-built<br>
                      3.4.61 kernel.<br>
                      <br>
                      Running through the build procedure roughly
                      outlined in bug report<br>
                      LU-1706 but with some changes since the last time
                      I tried:<br>
                      <br>
                      # tar xvfp lustre-release.tar<br>
                      # cd lustre-release<br>
                      # sh autogen.sh<br>
                      # ./configure --disable-server --with-o2ib=no<br>
                      &nbsp; --with-linux=/usr/src/linux
                      --with-linux-obj=/usr/src/linux<br>
                      # make debs<br>
                      <br>
                      Build fails at the module stage with the following
                      error:<br>
                      <br>
                      configure: error: bad --with-o2ib path<br>
                      make[2]: *** [kdist_config] Error 1<br>
                      make[2]: Leaving directory<br>
`/usr/src/lustre-release/debian/tmp/modules-deb/usr_src/modules/lustre'<br>
                      make[1]: *** [kdist_build] Error 2<br>
                      make[1]: Leaving directory<br>
`/usr/src/lustre-release/debian/tmp/modules-deb/usr_src/modules/lustre'<br>
                      BUILD FAILED!<br>
                      See<br>
/usr/src/lustre-release/debian/tmp/modules-deb/var_cache_modass/lustre.buildlog.3.4.61.1436900735<br>
                      <br>
                      <br>
                      for details.<br>
                      make: *** [debs] Error 7<br>
                      <br>
                      It appears it's not recognizing --with-o2ib=no as
                      outlined in<br>
                      ./configure --help or i.e. bug report LU-5953.<br>
                      <br>
                      If I take that out, build chokes because it can't
                      find Infiniband stuff<br>
                      which I suppose is to be expected since this site
                      is not using<br>
                      Infiniband.<br>
                      <br>
                      I've tried moving the parameter around towards the
                      beginning of the<br>
                      ./configure parameter list or towards the end and
                      it doesn't seem to<br>
                      make a difference.<br>
                      <br>
                      Noting the place where the install hung; I went in
                      and modified line 338<br>
                      in file:<br>
                      <br>
                      lustre-release/debian/rules<br>
                      <br>
                      to completely remove $(IB_OPTIONS) from the
                      ./configure statement on<br>
                      that line; the build still fails, but in a way
                      that's not really clear<br>
                      what the cause is:<br>
                      <br>
                      export KPKG_DEST_DIR="$(pwd)/.." &amp;&amp; \<br>
                      version=$(sed -ne '1s/^lustre (\(.*\)).*$/\1/p'
                      debian/changelog) &amp;&amp; \<br>
                      rm -rf debian/tmp/modules-deb &amp;&amp; \<br>
                      mkdir debian/tmp/modules-deb &amp;&amp; \<br>
                      pushd debian/tmp/modules-deb &amp;&amp; \<br>
                      dpkg -x
                      ../../../../lustre-source_${version}_all.deb
                      $(pwd) &amp;&amp; \<br>
                      mkdir usr_src/ &amp;&amp; \<br>
                      tar -C usr_src/ -xjf usr/src/lustre.tar.bz2
                      &amp;&amp; \<br>
                      chmod 755 usr_src/modules/lustre/debian/rules
                      &amp;&amp; \<br>
                      mkdir -p usr_share_modass &amp;&amp; \<br>
                      ln -s /usr/share/modass/include/ usr_share_modass/
                      &amp;&amp; \<br>
                      ln -s /usr/share/modass/packages/
                      usr_share_modass/ &amp;&amp; \<br>
                      echo "lustre" &gt; usr_share_modass/compliant.list
                      &amp;&amp; \<br>
                      export MA_DIR=$(pwd)/usr_share_modass &amp;&amp; \<br>
                      KVERS=${KVERS:-} &amp;&amp; \<br>
                      [ "x" != "x" ] &amp;&amp; \<br>
                      export IB_OPTIONS="--with-o2ib=" &amp;&amp; \<br>
                      export KSRC_TREE= &amp;&amp; \<br>
                      KSRC=${KSRC:-} &amp;&amp; \<br>
                      m-a build ${KSRC:+-k $KSRC} ${KVERS:+-l $KVERS} -i
                      -u $(pwd) lustre &amp;&amp; \<br>
                      popd &amp;&amp; \<br>
                      VER=$(sed -ne '1s/^lustre
                      (\(.*-[0-9][0-9]*\)).*$/\1/p'<br>
                      debian/changelog) &amp;&amp; \<br>
                      mkdir -p debs &amp;&amp; \<br>
                      mv ../linux-patch-lustre_${VER}_all.deb
                      ../lustre-dev_${VER}_*.deb \<br>
                      &nbsp; &nbsp; ../lustre-source_${VER}_all.deb
                      ../lustre-tests_${VER}_*.deb \<br>
                      &nbsp; &nbsp; ../lustre-utils_${VER}_*.deb
                      ../lustre_${VER}.dsc \<br>
                      &nbsp; &nbsp; ../lustre_${VER}_*.changes
                      ../lustre_${VER}.tar.gz \<br>
                      &nbsp; &nbsp; ../lustre-client-modules-${KVERS}_${VER}_*.deb
                      debs/<br>
                      /usr/src/lustre-release/debian/tmp/modules-deb
                      /usr/src/lustre-release<br>
                      make: *** [debs] Error 1<br>
                      <br>
                      Is this a legit bug? Am I missing something here?
                      Maybe resolved if I do<br>
                      a fresh Git pull? Any suggestions would be a huge
                      help.<br>
                      <br>
                      Thanks,<br>
                      <br>
                      Sean<br>
                      <br>
                      <br>
                      _______________________________________________<br>
                      lustre-discuss mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:lustre-discuss@lists.lustre.org"
                        target="_blank">lustre-discuss@lists.lustre.org</a><br>
                      <a moz-do-not-send="true"
                        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>
                      <br>
                    </blockquote>
                    <br>
                    .<br>
                    <br>
                  </blockquote>
                  <br>
                  .<br>
                  <br>
                </blockquote>
                <br>
                _______________________________________________<br>
                lustre-discuss mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:lustre-discuss@lists.lustre.org"
                  target="_blank">lustre-discuss@lists.lustre.org</a><br>
                <a moz-do-not-send="true"
                  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>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
lustre-discuss mailing list
<a class="moz-txt-link-abbreviated" 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>
    <br>
  </body>
</html>