一个程序员的杂货铺

osd_ldiskfs.ko: No such file or directory

TLNR: Disabling ldiskfs support because complete ext4 source does not exist. If you are building using kernel-devel packages and require ldiskfs server support then ensure that the matching kernel-debuginfo-common and kernel-debuginfo-common-<arch> packages are installed.

The most important information shows as following, which is hidden in the long long building information and I missed it before.

checking ext4 source directory...
configure: WARNING:
Disabling ldiskfs support because complete ext4 source does not exist.
If you are building using kernel-devel packages and require ldiskfs
server support then ensure that the matching kernel-debuginfo-common
and kernel-debuginfo-common-<arch> packages are installed.

So, just install the matching kernel-debuginfo-common and kernel-debuginfo-common-<arch> packages and will pass the compiling.