Details

    • Bug
    • Resolution: Fixed
    • Critical
    • None
    • Lustre 2.7.0
    • None
    • centos 7.1.
    • 3
    • 9223372036854775807

    Description

      When building lustre-2.7.1 rpms in a centos 7.1 chroot environment, the build failed:

      ...
      if test -d "lustre-2.7.1"; then find "lustre-2.7.1" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "lustre-2.7.1" ||

      { sleep 5 && rm -rf "lustre-2.7.1"; }

      ; else :; fi
      rpmbuilddir=`mktemp t -d rpmbuild-lustre$USER-XXXXXXXX`; \
      make \
      rpmbuilddir="$rpmbuilddir" rpm-local || exit 1; \
      /bin/rpmbuild \
      --define "_tmppath $rpmbuilddir/TMP" \
      --define "_topdir $rpmbuilddir" \
      --define "build_src_rpm 1" \
      --define "dist %

      {nil}

      " \
      -ts lustre-2.7.1.tar.gz || exit 1; \
      cp $rpmbuilddir/SRPMS/lustre-2.7.1-*.src.rpm . || exit 1; \
      rm -rf $rpmbuilddir
      make[1]: Entering directory `/tmp.chroot/nas-2.7.1-fe'
      make[1]: Leaving directory `/tmp.chroot/nas-2.7.1-fe'
      sed: can't read /lib/modules/2.6.32-358.6.2.el6.x86_64/build/include/linux/version.h: No such file or directory
      error: line 138: Version required: Requires: kernel =
      make: *** [srpm] Error 1

      I did specify
      --with-linux=/usr/src/kernels/${kversion} \
      when running `configure`, so the path should be used instead of "/lib/modules/`uname -r`"

      Also config.log showed the version.h exists at include/generated/uapi/linux/version.h:
      ...
      configure:13640: checking for /usr/src/kernels/3.10.0-229.20.1.el7.20151203.x86_64.lustre271/include/linux/version.h
      configure:13654: result: no
      configure:13661: checking for /usr/src/kernels/3.10.0-229.20.1.el7.20151203.x86_64.lustre271/include/generated/uapi/linux/version.h
      configure:13675: result: yes

      I did not have this problem in 2.x.y build up to 2.5.3. Changes made in 2.7 broke my build.

      I will attach config.log and log-rpms files.
      :q

      Attachments

        1. config.log
          359 kB
        2. log-rpms
          26 kB
        3. nas-config.sh.mofed31.el71.271
          1 kB
        4. nas-make.sh.el71.271
          0.3 kB

        Issue Links

          Activity

            [LU-7541] rpm build failed in 2.7.1
            yujian Jian Yu made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
            yujian Jian Yu added a comment -

            Patches landed.

            yujian Jian Yu added a comment - Patches landed.

            Hi Peter,

            The above two ported patches did solve my problem.
            Please land the patches and close this ticket.

            Thanks!
            Jay

            jaylan Jay Lan (Inactive) added a comment - Hi Peter, The above two ported patches did solve my problem. Please land the patches and close this ticket. Thanks! Jay
            pjones Peter Jones added a comment -

            Jay

            Try these two patches that have already been ported to the 2.7 FE branch

            LU-6001: http://review.whamcloud.com/17678
            LU-6697: http://review.whamcloud.com/17679

            Peter

            pjones Peter Jones added a comment - Jay Try these two patches that have already been ported to the 2.7 FE branch LU-6001 : http://review.whamcloud.com/17678 LU-6697 : http://review.whamcloud.com/17679 Peter
            pjones Peter Jones made changes -
            Link Original: This issue is related to JFC-10 [ JFC-10 ]
            pjones Peter Jones made changes -
            Link New: This issue is related to LU-6697 [ LU-6697 ]
            pjones Peter Jones made changes -
            Link New: This issue is related to LU-6001 [ LU-6001 ]
            jfc John Fuchs-Chesney (Inactive) made changes -
            Link New: This issue is related to JFC-10 [ JFC-10 ]

            Hi Minh, can you create a patch for 2.7.1?
            Thanks!

            jaylan Jay Lan (Inactive) added a comment - Hi Minh, can you create a patch for 2.7.1? Thanks!
            mdiep Minh Diep added a comment -

            Jay, please apply this http://review.whamcloud.com/#/c/15181/ to see if it fixes

            mdiep Minh Diep added a comment - Jay, please apply this http://review.whamcloud.com/#/c/15181/ to see if it fixes

            People

              yujian Jian Yu
              jaylan Jay Lan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: