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

'--disable-utils' makes build of 2.15.0 fail on rhel8.5

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • Lustre 2.15.0
    • Alma Linux 8.5, kernel 4.18.0-348.23.1.el8_5.x86_64

    Description

      Building Lustre 2.15 from git under Alma 8.5 using the configure cmd (taken from previous attempts with lustre-ldiskfs-dkms-2.15.0-1.el8)
      __

      ./configure --prefix=/usr --enable-modules --disable-iokit --disable-snmp --disable-doc --disable-tests --disable-maintainer-mode --disable-utils --with-linux=...

      fails with

      lstddef.h:306:22: error: static declaration of 'copy_file_range' follows non-static declaration

      As recommended here:  https://www.mail-archive.com/lustre-discuss@lists.lustre.org/msg16822.html
      omitting  

      --disable-utils

       in the configure line makes the build successful.

      Attachments

        1. config.log
          746 kB
        2. make.log
          134 kB

        Issue Links

          Activity

            [LU-15972] '--disable-utils' makes build of 2.15.0 fail on rhel8.5
            pjones Peter Jones made changes -
            Resolution New: Duplicate [ 3 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to DDN-3084 [ DDN-3084 ]

            Thanks for the report Thomas. It looks like this may already be addressed by patch https://review.whamcloud.com/46836

            LU-15652 build: On Debian detect -common kernel headers
            
            Check for a matching /usr/src/linux-headers-<ver>-common/
            and update the --with-linux argument accordingly.
            
            Also move LC_GLIBC_SUPPORT_COPY_FILE_RANGE outside
            of utils as this also breaks the dkms build on Debian
            with 'static' follows 'non static' declairation of
            copy_file_range.
            
            adilger Andreas Dilger added a comment - Thanks for the report Thomas. It looks like this may already be addressed by patch https://review.whamcloud.com/46836 LU-15652 build: On Debian detect -common kernel headers Check for a matching /usr/src/linux-headers-<ver>-common/ and update the --with-linux argument accordingly. Also move LC_GLIBC_SUPPORT_COPY_FILE_RANGE outside of utils as this also breaks the dkms build on Debian with 'static' follows 'non static' declairation of copy_file_range.
            adilger Andreas Dilger made changes -
            Link New: This issue duplicates LU-15652 [ LU-15652 ]
            thomasr Thomas Roth created issue -

            People

              wc-triage WC Triage
              thomasr Thomas Roth
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: