[LTP] latest ltp not building on RHEL 9.6 ?
Chuck Lever
chuck.lever@oracle.com
Tue May 20 17:16:41 CEST 2025
On 5/19/25 8:38 PM, Li Wang wrote:
> On Tue, May 20, 2025 at 2:40 AM Chuck Lever via ltp <ltp@lists.linux.it> wrote:
>>
>> Hi -
>>
>> My daily CI builds ltp and runs it against my nfsd-testing branch.
>> For the past week or so, the ltp build fails with:
>>
>> In file included from cve-2017-16939.c:28:
>> ../../include/lapi/sched.h:18:8: error: redefinition of ‘struct sched_attr’
>> 18 | struct sched_attr {
>> | ^~~~~~~~~~
>> In file included from /usr/include/bits/sched.h:60,
>> from /usr/include/sched.h:43,
>> from ../../include/lapi/sched.h:10,
>> from cve-2017-16939.c:28:
>> /usr/include/linux/sched/types.h:102:8: note: originally defined here
>> 102 | struct sched_attr {
>> | ^~~~~~~~~~
>>
>> The test runner is a RHEL 9.6 guest. I don't see any recent changes to
>> ltp in this area, so perhaps 9.6 modified /usr/include/linux/sched.h ?
>
> I saw that LTP has already handle that conflict in lapi header file, in commit
> https://github.com/linux-test-project/ltp/commit/c48700d8cdbe6d0d78fda6e6cc658972464b5ccd
>
> Can you provide the version of your kernel-header and glibc?
>
> e.g.
> $ rpm -qf /usr/include/linux/sched/types.h
>
> $ rpm -qf /usr/include/bits/sched.h
Hi!
I test recent kernels in this set-up, so I included the output of
"uname" in case that is relevant.
[kdevops@ltp-notify ~]$ uname -r
6.15.0-rc6-g7278569740f6
[kdevops@ltp-notify ~]$ rpm -qf /usr/include/linux/sched/types.h
kernel-headers-5.14.0-570.17.1.el9_6.x86_64
[kdevops@ltp-notify ~]$ rpm -qf /usr/include/bits/sched.h
glibc-headers-2.34-168.el9_6.14.x86_64
[kdevops@ltp-notify ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux release 9.6 (Plow)
[kdevops@ltp-notify ~]$
I guess one thing I might try is running the ltp build on a stock
RHEL 9.6 kernel. I'm not sure if the test workflow replaces the
kernel headers under /usr/include.
--
Chuck Lever
More information about the ltp
mailing list