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

lustre-ppc fails to build on ppc64 el7

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.9.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      On lustre-master, building lustre-ppc on ppc64 failed with

      steps:

      sh autogen.sh
      ./configure --disable-server
      make rpms
      
      checking for /usr/src/kernels/3.10.0-327.13.1.el7.ppc64/include/generated/autoconf.h... yes
      checking for /usr/src/kernels/3.10.0-327.13.1.el7.ppc64/include/linux/version.h... no
      checking for /usr/src/kernels/3.10.0-327.13.1.el7.ppc64/include/generated/uapi/linux/version.h... yes
      checking for /usr/src/kernels/3.10.0-327.13.1.el7.ppc64/include/linux/kconfig.h... yes
      checking for external module build target... M
      checking that modules can be built at all... no
      configure: error: 
      
      Kernel modules cannot be built. Consult config.log for details.
      
      If you are trying to build with a kernel-source rpm,
      consult build/README.kernel-source
      
      error: Bad exit status from /tmp/rpmbuild-lustre-jenkins-dgtzTq18/TMP/rpm-tmp.noYrbx (%build)
      
      RPM build errors:
          Bad exit status from /tmp/rpmbuild-lustre-jenkins-dgtzTq18/TMP/rpm-tmp.noYrbx (%build)
      make: *** [rpms] Error 1
      

      config.log

      configure:13732: result: M
      configure:13745: checking that modules can be built at all
      configure:13768: cp conftest.c build && make -d modules LD=/bin/ld -m elf64ppc CC=gcc -m64 -f /tmp/rpmbuild-lustre-jenkins-kwZS97I2/BUILD/lustre-2.8.52_72_ged30857/b
      NUX_CONFIG=/usr/src/kernels/3.10.0-327.13.1.el7.ppc64/.config LINUXINCLUDE= -I/usr/src/kernels/3.10.0-327.13.1.el7.ppc64/arch/powerpc/include -Iinclude -Iarch/powerp
      usr/src/kernels/3.10.0-327.13.1.el7.ppc64/include -Iinclude2 -I/usr/src/kernels/3.10.0-327.13.1.el7.ppc64/include/uapi -Iinclude/generated -I/usr/src/kernels/3.10.0-
      /powerpc/include/uapi -Iarch/powerpc/include/generated/uapi -I/usr/src/kernels/3.10.0-327.13.1.el7.ppc64/include/uapi -Iinclude/generated/uapi -include /usr/src/kern
      .ppc64/include/linux/kconfig.h -o tmp_include_depends -o scripts -o include/config/MARKER -C /usr/src/kernels/3.10.0-327.13.1.el7.ppc64 EXTRA_CFLAGS=-Werror-implicit
      g -I/tmp/rpmbuild-lustre-jenkins-kwZS97I2/BUILD/lustre-2.8.52_72_ged30857/libcfs/include -I/tmp/rpmbuild-lustre-jenkins-kwZS97I2/BUILD/lustre-2.8.52_72_ged30857/lnet
      d-lustre-jenkins-kwZS97I2/BUILD/lustre-2.8.52_72_ged30857/lustre/include M=/tmp/rpmbuild-lustre-jenkins-kwZS97I2/BUILD/lustre-2.8.52_72_ged30857/build
      /bin/ld: unrecognized option '-Wl,-z,relro'
      /bin/ld: use the --help option for usage information
      make[2]: *** [/tmp/rpmbuild-lustre-jenkins-kwZS97I2/BUILD/lustre-2.8.52_72_ged30857/build/conftest.ko] Error 1
      make[1]: *** [modules] Error 2
      configure:13771: $? = 2
      

      Attachments

        Issue Links

          Activity

            [LU-8117] lustre-ppc fails to build on ppc64 el7

            Patch landed to master (lustre 2.9)

            simmonsja James A Simmons added a comment - Patch landed to master (lustre 2.9)

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/20404/
            Subject: LU-8117 build: fix lustre-ppc64 build on el7
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: f371db92ba89cb0a0d77e6bf8a55e2746e9014bb

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/20404/ Subject: LU-8117 build: fix lustre-ppc64 build on el7 Project: fs/lustre-release Branch: master Current Patch Set: Commit: f371db92ba89cb0a0d77e6bf8a55e2746e9014bb

            I just tested your latest patch. Works perfectly. Thank you.

            simmonsja James A Simmons added a comment - I just tested your latest patch. Works perfectly. Thank you.

            Hmm. I cannot check this. James, can you provide the fix or just description what is not handled properly? What value of target_cpu should be handled?

            dmiter Dmitry Eremin (Inactive) added a comment - Hmm. I cannot check this. James, can you provide the fix or just description what is not handled properly? What value of target_cpu should be handled?

            Also for RHEL7 on power8 the target_cpu is not handled in our build system.

            simmonsja James A Simmons added a comment - Also for RHEL7 on power8 the target_cpu is not handled in our build system.

            Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: http://review.whamcloud.com/20404
            Subject: LU-8117 build: fix lustre-ppc64 build on el7
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: b1a624e7baeaf15d0a876d05e7579f4db85f154f

            gerrit Gerrit Updater added a comment - Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: http://review.whamcloud.com/20404 Subject: LU-8117 build: fix lustre-ppc64 build on el7 Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: b1a624e7baeaf15d0a876d05e7579f4db85f154f
            pjones Peter Jones added a comment -

            Dmitry

            Could you please look into this one

            Peter

            pjones Peter Jones added a comment - Dmitry Could you please look into this one Peter

            People

              dmiter Dmitry Eremin (Inactive)
              mdiep Minh Diep
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: