[LU-16090] Fix Module.symvers path lookup on SUSE Created: 11/Aug/22  Updated: 01/Oct/22  Resolved: 10/Sep/22

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

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

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

With LU-15962 build: add in-kernel Module.symvers to symbol path the SUSE building against kernels with multiple flavors fails.

The failure is noticed in autoMakefile being generated incorrectly:

294 EXTRA_OFED_INCLUDE = -I/usr/src/linux-5.3.18-24.96/include -I/usr/src/linux-5.3.18-24.96/include/uapi
295 EXTRA_SYMBOLS = /usr/src/linux-5.3.18-24.96-obj/x86_64/preempt/Module.symvers
296 /usr/src/linux-5.3.18-24.96-obj/x86_64/default/Module.symvers
297 FGREP = /usr/bin/grep -F
298 GNICPPFLAGS =
Here we should have:

EXTRA_SYMBOLS = /usr/src/linux-5.3.18-24.96-obj/x86_64/default/Module.symvers
Fix is to select the correct Module.symvers for the SUSE kernel flavor being built.



 Comments   
Comment by Gerrit Updater [ 11/Aug/22 ]

"Shaun Tancheff <shaun.tancheff@hpe.com>" uploaded a new patch: https://review.whamcloud.com/48195
Subject: LU-16090 build: Module.symvers lookup by flavor on SUSE
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: bb016d4261d2527ea50e2983a101968d37aeb478

Comment by Gerrit Updater [ 24/Aug/22 ]

"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/48328
Subject: LU-16090 build: Module.symvers lookup by flavor on SUSE
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: 3340d89fb8fe92bae54e6c1c29fba3b2ba538c1f

Comment by Peter Jones [ 10/Sep/22 ]

Landed for 2.15.2 and 2.16

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