[LU-15945] 2.15.0-RC5 build fails on rhel 8.6 Created: 14/Jun/22  Updated: 14/Jun/22  Resolved: 14/Jun/22

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

Type: Bug Priority: Minor
Reporter: Shane Nehring Assignee: WC Triage
Resolution: Duplicate Votes: 0
Labels: None
Environment:

rhel 8.6 x86_64


Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

build fails with

/tmp/rpmbuild-lustre-snehring-1Hf0tY1v/BUILD/lustre-2.15.0_RC5/lustre/ptlrpc/../../lustre/target/update_trans.c:1611:16: error: 'struct task_struct' has no member named 'state'; did you mean '__state'?   if (current->state)

between 8.5 and 8.6 redhat changed the task_struct struct and introduced

RH_KABI_REPLACE_SPLIT(volatile long     state,
                              unsigned int      __state)

Not sure if it'll be possible to get this in before the 2.15.0 release proper and support 8.6. I personally am hoping to update to it and remake our scratch volume under it.

I changed that one like to be

if (current->__state)

and it does finish building successfully.



 Comments   
Comment by Shane Nehring [ 14/Jun/22 ]

*one line

Comment by Shane Nehring [ 14/Jun/22 ]

Looks like this was addressed in https://review.whamcloud.com/#/c/47329/ for 2.12

Comment by Shane Nehring [ 14/Jun/22 ]

and https://review.whamcloud.com/#/c/47327/ for 2.15 but not merged I guess

Comment by Peter Jones [ 14/Jun/22 ]

Yes- 2.15.0 went into code freeze before RHEL 8.6 is GA so only supports RHEL 8.5. We will be landing RHEL 8.6 support to b2_15 as soon as 2.15.0 is GA

Comment by Shane Nehring [ 14/Jun/22 ]

Understood. Thanks.

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