[LU-8117] lustre-ppc fails to build on ppc64 el7 Created: 09/May/16  Updated: 24/Oct/16  Resolved: 13/Jul/16

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.9.0

Type: Bug Priority: Minor
Reporter: Minh Diep Assignee: Dmitry Eremin (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocker
Duplicate
duplicates LU-8153 lustre-ppc build failed since 2016-04-04 Closed
is duplicated by LU-7978 Cannot build RPM's on RHEL7.2 PPC Resolved
Related
is related to LU-6387 Add Power8 support to Lustre Resolved
Severity: 3
Rank (Obsolete): 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


 Comments   
Comment by Peter Jones [ 10/May/16 ]

Dmitry

Could you please look into this one

Peter

Comment by Gerrit Updater [ 24/May/16 ]

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

Comment by James A Simmons [ 05/Jul/16 ]

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

Comment by Dmitry Eremin (Inactive) [ 05/Jul/16 ]

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?

Comment by James A Simmons [ 05/Jul/16 ]

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

Comment by Gerrit Updater [ 11/Jul/16 ]

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

Comment by James A Simmons [ 13/Jul/16 ]

Patch landed to master (lustre 2.9)

Generated at Sat Feb 10 02:14:47 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.