[LU-15699] rpmbuild --without mpi files when mpich-devel and openmpi-devel are installed Created: 27/Mar/22  Updated: 05/Jul/22  Resolved: 11/Jun/22

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0, Lustre 2.15.1

Type: Bug Priority: Minor
Reporter: Shaun Tancheff Assignee: Shaun Tancheff
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

When mpich and openmpi are both installed [on CentOS]

[shaun@cent8 lustre-wc-rel]$ yum list installed | grep mpi
compiler-rt.x86_64                            12.0.1-1.module_el8.5.0+2598+6a7729ff             @appstream          
mpi-selector.x86_64                           1.0.3-1.54103                                     @System             
mpich.x86_64                                  3.4.1-1.el8                                       @appstream          
mpich-devel.x86_64                            3.4.1-1.el8                                       @appstream          
openmpi.x86_64                                4.1.1-2.el8                                       @appstream          
openmpi-devel.x86_64                          4.1.1-2.el8                                       @appstream          
rpm-mpi-hooks.noarch                          8-2.el8                                           @appstream          

rpmbuild --rebuild --without mpi

fails with a error like the following:

+++ /usr/bin/tclsh /usr/share/Modules/libexec/modulecmd.tcl sh load mpi/mpich-x86_64
Loading mpi/mpich-x86_64
ERROR: mpi/mpich-x86_64 cannot be loaded due to a conflict.
HINT: Might try "module unload mpi" first.
+ eval test 0 = '1;'
++ test 0 = 1
error: Bad exit status from /var/tmp/rpm-tmp.GG6c1Y (%build)



 Comments   
Comment by Gerrit Updater [ 27/Mar/22 ]

"Shaun Tancheff <shaun.tancheff@hpe.com>" uploaded a new patch: https://review.whamcloud.com/46938
Subject: LU-15699 build: without mpi build fails
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: ce9cef821e6970d512cb32003a53537e149912e6

Comment by Gerrit Updater [ 11/Jun/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/46938/
Subject: LU-15699 build: without mpi build fails
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: b07b6cd6c9622c44f45c017862103d2093e0aba1

Comment by Peter Jones [ 11/Jun/22 ]

Landed for 2.16

Comment by Gerrit Updater [ 23/Jun/22 ]

"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/47712
Subject: LU-15699 build: without mpi build fails
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: 9bacd0d305485c9e546ad1b268a8abdcd0372ef3

Comment by Gerrit Updater [ 05/Jul/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47712/
Subject: LU-15699 build: without mpi build fails
Project: fs/lustre-release
Branch: b2_15
Current Patch Set:
Commit: be7cd429ef10ad206f7e8ee23069311ad6b499f0

Generated at Sat Feb 10 03:20:33 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.