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

Generation and using of the config.cache in b2_15

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0, Lustre 2.15.2
    • None
    • None
    • Rocky Linux 9, kernel 5.14.0-70.17.1.el9_0.x86_64, sysofed, Lustre 2.15.1_RC1 (based on b2_15)
    • 1
    • 9223372036854775807

    Description

      We are maintaining a small CI/CD infrastructure based on GitlabCI to build different Lustre client packages for worker nodes. In the pipeline we are usually configuring Lustre build using checks caching via -C parameter: 

       ./configure --disable-tests --disable-server --enable-client --with-zfs=no --with-o2ib=yes --disable-gss --with-linux=/usr/src/kernels/${CLIENT_KERNEL_VER}.x86_64 -C

      and using `config.cache` as build cache.  This solution speeds up the build process.  However, the latest branch based on the b2_15  causes the following errors when invoking `make rpms`:

       

      config.status: creating lustre/utils/gss/Makefile
      config.status: creating lustre/osp/Makefile
      config.status: creating lustre/osp/autoMakefile
      config.status: creating lustre/lod/Makefile
      config.status: creating lustre/lod/autoMakefile
      config.status: creating snmp/Makefile
      config.status: creating snmp/autoconf/Makefile
      config.status: creating config.h
      config.status: executing depfiles commands
      config.status: executing libtool commands
      CC:            gcc
      LD:            /usr/bin/ld -m elf_x86_64
      CPPFLAGS:      -include /tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/undef.h -include /tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/config.h -I/tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/lnet/include/uapi -I/tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/lustre/include/uapi -I/tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/libcfs/include -I/tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/lnet/utils/ -I/tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/lustre/include 
      CFLAGS:        -g -O2 -Werror -Wall -Werror
      EXTRA_KCFLAGS: -include /tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/undef.h -include /tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/config.h  -g -I/tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/libcfs/include -I/tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/libcfs/include/libcfs -I/tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/lnet/include/uapi -I/tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/lnet/include -I/tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/lustre/include/uapi -I/tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/lustre/include -Wno-format-truncation -Wno-stringop-truncation -Wno-stringop-overflow
      Type 'make' to build Lustre.
      + make -j2 -s
      Making all in .
      In file included from /tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/lustre/include/lustre_compat.h:46,
                       from /tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/libcfs/libcfs/libcfs_mem.c:37:
      /tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/libcfs/include/libcfs/linux/linux-fs.h:66:18: error: redefinition of 'struct file_operations'
         66 | #define proc_ops file_operations
            |                  ^~~~~~~~~~~~~~~
      include/linux/proc_fs.h:29:8: note: in expansion of macro 'proc_ops'
         29 | struct proc_ops {
            |        ^~~~~~~~
      In file included from /tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/libcfs/include/libcfs/linux/linux-misc.h:35,
                       from /tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/libcfs/include/libcfs/libcfs.h:43,
                       from /tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/libcfs/libcfs/libcfs_mem.c:36:
      include/linux/fs.h:2060:8: note: originally defined here
       2060 | struct file_operations {
            |        ^~~~~~~~~~~~~~~
      make[7]: *** [scripts/Makefile.build:271: /tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/libcfs/libcfs/libcfs_mem.o] Error 1
      make[6]: *** [scripts/Makefile.build:514: /tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/libcfs/libcfs] Error 2
      make[5]: *** [scripts/Makefile.build:514: /tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1/libcfs] Error 2
      make[5]: *** Waiting for unfinished jobs....
      make[4]: *** [Makefile:1862: /tmp/rpmbuild-lustre--mshmt5CL/BUILD/lustre-2.15.1_RC1] Error 2
      make[3]: *** [autoMakefile:1093: modules] Error 2
      make[2]: *** [autoMakefile:625: all-recursive] Error 1
      make[1]: *** [autoMakefile:509: all] Error 2
      error: Bad exit status from /tmp/rpmbuild-lustre--mshmt5CL/TMP/rpm-tmp.Cqd8xu (%build)
      
      RPM build errors:
          Bad exit status from /tmp/rpmbuild-lustre--mshmt5CL/TMP/rpm-tmp.Cqd8xu (%build)
      make: *** [autoMakefile:1203: rpms] Error 1
      

      The build without -C works properly.

      Attachments

        Activity

          [LU-16058] Generation and using of the config.cache in b2_15
          pjones Peter Jones added a comment -

          Landed for 2.16

          pjones Peter Jones added a comment - Landed for 2.16

          "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/48101/
          Subject: LU-16058 build: proc_ops check fails with SUBARCH undefined
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 8a7aa8d5902fcffe6c8b56d0c92ee36380a26e88

          gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/48101/ Subject: LU-16058 build: proc_ops check fails with SUBARCH undefined Project: fs/lustre-release Branch: master Current Patch Set: Commit: 8a7aa8d5902fcffe6c8b56d0c92ee36380a26e88

          "Shaun Tancheff <shaun.tancheff@hpe.com>" uploaded a new patch: https://review.whamcloud.com/48101
          Subject: LU-16058 build: proc_ops check fails with SUBARCH undefined
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 282449ee0f557955299bd6fd1eee530a6b58d4b4

          gerrit Gerrit Updater added a comment - "Shaun Tancheff <shaun.tancheff@hpe.com>" uploaded a new patch: https://review.whamcloud.com/48101 Subject: LU-16058 build: proc_ops check fails with SUBARCH undefined Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 282449ee0f557955299bd6fd1eee530a6b58d4b4

          The root cause is $SUBARCH may not be defined at the time the parallel config test is generated, causing the configure test to fail when it should have succeeded.

          stancheff Shaun Tancheff added a comment - The root cause is $SUBARCH may not be defined at the time the parallel config test is generated, causing the configure test to fail when it should have succeeded.

          Yes, the first commit solves the problem. Thank you.

          wanat Dominika Wanat added a comment - Yes, the first commit solves the problem. Thank you.

          I checked master and it seems this issue currently breaks on master as well.

          It is fixed in this pending series:
          https://review.whamcloud.com/#/c/48091/

          Seems the first commit is enough:
          https://review.whamcloud.com/#/c/38349/

          stancheff Shaun Tancheff added a comment - I checked master and it seems this issue currently breaks on master as well. It is fixed in this pending series: https://review.whamcloud.com/#/c/48091/ Seems the first commit is enough: https://review.whamcloud.com/#/c/38349/

          I've checked this commits and its source code and they've already been commited to this branch.

          wanat Dominika Wanat added a comment - I've checked this commits and its source code and they've already been commited to this branch.

          These commits should resolve the config-cache issue:
          https://review.whamcloud.com/46562
          https://review.whamcloud.com/47077

          stancheff Shaun Tancheff added a comment - These commits should resolve the config-cache issue: https://review.whamcloud.com/46562 https://review.whamcloud.com/47077

          Shaun, you've some work with configure, any suggestions here?

          adilger Andreas Dilger added a comment - Shaun, you've some work with configure, any suggestions here?

          People

            stancheff Shaun Tancheff
            wanat Dominika Wanat
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: