[LU-14614] lustre 2.12.6 compilation failure with rhel83 and mofed 5.2.2: "/usr/bin/ld: cannot find -lrdmacm" Created: 14/Apr/21  Updated: 14/Apr/21  Resolved: 14/Apr/21

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

Type: Bug Priority: Minor
Reporter: Jay Lan (Inactive) Assignee: WC Triage
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

RHEL 8.3, MOFED 5.2.2.


Attachments: HTML File log-rpms    
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

I was hit with a compilation problem in 'make rpms':
...
Making all in mpi
libtool: link: mpicc -fPIC -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -g -O2 -Werror -DKVER=4.18.0-240.15.1.1nas.el8.t4.x86_64 -DNAS_VER=3nasC_mofed522 -Wall -Werror -Wl,-z -Wl,relro -o rr_alloc rr_alloc.o
libtool: link: mpicc -fPIC -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -g -O2 -Werror -DKVER=4.18.0-240.15.1.1nas.el8.t4.x86_64 -DNAS_VER=3nasC_mofed522 -Wall -Werror -Wl,-z -Wl,relro -o createmany_mpi createmany-mpi.o
/usr/bin/ld: cannot find -lrdmacm
/usr/bin/ld: cannot find -libverbs
/usr/bin/ld: cannot find -libumad
collect2: error: ld returned 1 exit status

[root@swbuild1 nas-2.12.6]# rpm -q librdmacm libibverbs libibumad
librdmacm-52mlnx1-1.52220.x86_64
libibverbs-52mlnx1-1.52220.x86_64
libibumad-52mlnx1-1.52220.x86_64

I did not have problem (same lustre 2.12.6) with:
SLES12 SP5 + MOFED 4.9
SLES15 SP2 + MOFED 5.2.1
RHEL 7.9 + MOFED 4.9

Hmm, my OS is actually TOSS 4, which is based on RHEL 8.3.
log-rpms is attached.



 Comments   
Comment by Jay Lan (Inactive) [ 14/Apr/21 ]

My bad. Please close this LU.

I installed rdma-core-52mlnx1. I should also install rdma-core-devel-52mlnx1. The missing one caused problem.

Comment by Peter Jones [ 14/Apr/21 ]

ok - thanks

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