Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-6428

Lustre client Compilation failed build with kernel 3.2

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • None
    • lustre-2.7.51
      Ubuntu 12.04
      Kernel Version: kernel 3.2.68
    • 3
    • 9223372036854775807

    Description

      While compiling the Lustre client with newer kernel. It fails with the following error:
      Command Used to compile:
      ./configure
      --with-linux=$

      {kernel_source_dir}

      --with-o2ib=$

      {dkms_tree}

      /mlnx-ofed-kernel/$

      {OFED_VERSION}

      /build
      --disable-server
      --disable-quilt
      --disable-dependency-tracking
      --disable-doc
      --disable-utils
      --disable-liblustre
      --disable-snmp
      --disable-zerocopy
      --disable-tests
      --enable-quota
      make
      Error:-
      /var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c: In function
      'll_invalidate_aliases':
      /var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:
      'struct dentry' has no member named 'd_alias'
      /var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:
      initialization from incompatible pointer type [-Werror]
      /var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:
      'struct dentry' has no member named 'd_alias'
      /var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:
      'struct dentry' has no member named 'd_alias'
      /var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:
      'struct dentry' has no member named 'd_alias'
      /var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:
      'struct dentry' has no member named 'd_alias'
      /var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:
      'struct dentry' has no member named 'd_alias'
      cc1: all warnings being treated as errors

      Attachments

        Issue Links

          Activity

            [LU-6428] Lustre client Compilation failed build with kernel 3.2

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14507/
            Subject: LU-6426 lustre: remove EIOCBRETRY handling
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 617a53daff1768d88f694ae349214d5c6606d3cf

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14507/ Subject: LU-6426 lustre: remove EIOCBRETRY handling Project: fs/lustre-release Branch: master Current Patch Set: Commit: 617a53daff1768d88f694ae349214d5c6606d3cf
            pjones Peter Jones added a comment -

            Landed for 2.8

            pjones Peter Jones added a comment - Landed for 2.8

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14060/
            Subject: LU-6428 llite: Add check of d_alias and d_child
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 1a14c28cb1136f1f67fdb14e848b2d461b26f941

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14060/ Subject: LU-6428 llite: Add check of d_alias and d_child Project: fs/lustre-release Branch: master Current Patch Set: Commit: 1a14c28cb1136f1f67fdb14e848b2d461b26f941
            simmonsja James A Simmons added a comment - - edited

            I updated to the patch to handle the debian Wheezy 3.2 kernels now. I have tested the latest patch on:

            RHEL6.5
            RHEL7.1
            debian Wheezy/Jesse running a 3.2 kernel
            Ubuntu 14.04 - linux-headers-3.11-32-generic
            linux-headers-3.11-39-generic (yes d_alias changed between each ubuntu kernel)
            SLES11 SP3
            Linux 4.0 kernel

            Each of those cases correctly compiled lustre.

            simmonsja James A Simmons added a comment - - edited I updated to the patch to handle the debian Wheezy 3.2 kernels now. I have tested the latest patch on: RHEL6.5 RHEL7.1 debian Wheezy/Jesse running a 3.2 kernel Ubuntu 14.04 - linux-headers-3.11-32-generic linux-headers-3.11-39-generic (yes d_alias changed between each ubuntu kernel) SLES11 SP3 Linux 4.0 kernel Each of those cases correctly compiled lustre.

            Ok, perfekt. I will try these patches on Wheezy + Lustre 2.5.3.90.
            Many thanks, Thomas

            thomas.stibor Thomas Stibor added a comment - Ok, perfekt. I will try these patches on Wheezy + Lustre 2.5.3.90. Many thanks, Thomas

            Thomas, there is already a fix in flight for the d_child problem. Please see LU-6426; http://review.whamcloud.com/#/c/14060

            bogl Bob Glossman (Inactive) added a comment - Thomas, there is already a fix in flight for the d_child problem. Please see LU-6426 ; http://review.whamcloud.com/#/c/14060

            People

              bogl Bob Glossman (Inactive)
              gnlwlb wu libin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: