[LTP] ltp build broken on Fedora 40?
Petr Vorel
pvorel@suse.cz
Thu Aug 29 22:50:07 CEST 2024
> > On Aug 28, 2024, at 6:48 PM, Petr Vorel <pvorel@suse.cz> wrote:
> > Hi Chuck,
> >> Hi-
> >> I'm finding that ltp 20240524 does not build on Fedora 40 due
> >> to a missing header:
> > I guess you need to backport gcc-14 fix b0ae1ee239 ("rpc_svc_1: Fix incompatible
> > pointer type error") [1] (or build with older gcc).
> >> ltp/testcases/kernel/device-drivers/tbio/tbio_kernel/ltp_tbio.c:46:10: fatal error: linux/genhd.h: No such file or directory
> >> 46 | #include <linux/genhd.h>
> >> | ^~~~~~~~~~~~~~~
> >> compilation terminated.
> Building ltp on commit b0ae1ee239 indeed fixed the problem on Fedora 40.
> I guess the "genhd.h" error misdirected me. Thanks, Petr!
You're welcome (we appreciate when kernel maintainers look into LTP),
feel free to ask if you encounter more problems.
I would say mostly the current master branch is the best LTP, I would fallback
to the latest stable release only when master does not build.
Also, in your case, for NFS testing you need just to compile
testcases/network/nfs{,v4} directories and their dependencies
(testcases/lib/ testcases/network/netstress/).
Kind regards,
Petr
More information about the ltp
mailing list