Client build fails on Rocky Linux 8.6

166 views
Skip to first unread message

Abhiram Chintangal

unread,
May 28, 2022, 1:56:13 AMMay 28
to beegfs-user
Hi all,

I am currently testing a beegfs instance and on one of my servers that is running Rocky 8.6. At the moment, the client module build fails with the following error:

/etc/init.d/beegfs-client rebuild
- BeeGFS module autobuild
Building beegfs client module
feature detection gives: -DKERNEL_HAS_SCHED_SIG_H -DKERNEL_HAS_STATX -DKERNEL_HAS_KREF_READ -DKERNEL_HAS_FILE_DENTRY -DKERNEL_HAS_SUPER_SETUP_BDI_NAME -DKERNEL_HAS_KERNEL_READ -DKERNEL_HAS_SKWQ_HAS_SLEEPER -DKERNEL_WAKE_UP_SYNC_KEY_HAS_3_ARGUMENTS -DKERNEL_HAS_GET_FS -DKERNEL_HAS_IOV_ITER_KVEC_NO_TYPE_FLAG_IN_DIRECTION -DKERNEL_HAS_PRINT_STACK_TRACE -DKERNEL_HAS_SOCKPTR_T -DKERNEL_HAS_TIME64 -DKERNEL_HAS_KTIME_GET_TS64 -DKERNEL_HAS_KTIME_GET_REAL_TS64 -DKERNEL_HAS_KTIME_GET_COARSE_REAL_TS64
In file included from /opt/beegfs/src/client/client_module_7/build/../source/common/toolkit/Serialization.h:27,
                 from /opt/beegfs/src/client/client_module_7/build/../source/common/net/message/control/../NetMessage.h:6,
                 from /opt/beegfs/src/client/client_module_7/build/../source/common/net/message/control/../SimpleStringMsg.h:4,
                 from /opt/beegfs/src/client/client_module_7/build/../source/common/net/message/control/AckMsgEx.h:4,
                 from /opt/beegfs/src/client/client_module_7/build/../source/net/message/NetMessageFactory.c:2:
/opt/beegfs/src/client/client_module_7/build/../source/os/OsCompat.h:11:10: fatal error: asm/kmap_types.h: No such file or directory
 #include <asm/kmap_types.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:315: /opt/beegfs/src/client/client_module_7/build/../source/net/message/NetMessageFactory.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /opt/beegfs/src/client/client_module_7/build/../source/common/toolkit/Serialization.h:27,
                 from /opt/beegfs/src/client/client_module_7/build/../source/common/net/message/NetMessage.h:6,
                 from /opt/beegfs/src/client/client_module_7/build/../source/common/net/message/session/FSyncLocalFileMsg.h:4,
                 from /opt/beegfs/src/client/client_module_7/build/../source/net/filesystem/FhgfsOpsCommKit.c:2:
/opt/beegfs/src/client/client_module_7/build/../source/os/OsCompat.h:11:10: fatal error: asm/kmap_types.h: No such file or directory
 #include <asm/kmap_types.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:315: /opt/beegfs/src/client/client_module_7/build/../source/net/filesystem/FhgfsOpsCommKit.o] Error 1
In file included from /opt/beegfs/src/client/client_module_7/build/../source/common/toolkit/Serialization.h:27,
                 from /opt/beegfs/src/client/client_module_7/build/../source/common/net/message/NetMessage.h:6,
                 from /opt/beegfs/src/client/client_module_7/build/../source/common/net/message/storage/lookup/LookupIntentRespMsg.h:4,
                 from /opt/beegfs/src/client/client_module_7/build/../source/common/toolkit/LookupIntentInfoOut.h:6,
                 from /opt/beegfs/src/client/client_module_7/build/../source/common/toolkit/MetadataTk.h:16,
                 from /opt/beegfs/src/client/client_module_7/build/../source/filesystem/FhgfsOpsHelper.h:6,
                 from /opt/beegfs/src/client/client_module_7/build/../source/net/filesystem/FhgfsOpsRemoting.c:4:
/opt/beegfs/src/client/client_module_7/build/../source/os/OsCompat.h:11:10: fatal error: asm/kmap_types.h: No such file or directory
 #include <asm/kmap_types.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:315: /opt/beegfs/src/client/client_module_7/build/../source/net/filesystem/FhgfsOpsRemoting.o] Error 1
In file included from /opt/beegfs/src/client/client_module_7/build/../source/common/toolkit/Serialization.h:27,
                 from /opt/beegfs/src/client/client_module_7/build/../source/common/net/message/NetMessage.h:6,
                 from /opt/beegfs/src/client/client_module_7/build/../source/common/net/message/session/rw/ReadLocalFileV2Msg.h:4,
                 from /opt/beegfs/src/client/client_module_7/build/../source/net/filesystem/FhgfsOpsCommKitVec.c:2:
/opt/beegfs/src/client/client_module_7/build/../source/os/OsCompat.h:11:10: fatal error: asm/kmap_types.h: No such file or directory
 #include <asm/kmap_types.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:315: /opt/beegfs/src/client/client_module_7/build/../source/net/filesystem/FhgfsOpsCommKitVec.o] Error 1
make[2]: *** [Makefile:1577: _module_/opt/beegfs/src/client/client_module_7/build/../source] Error 2
make[1]: *** [Makefile:161: module] Error 2
make: *** [AutoRebuild.mk:34: auto_rebuild] Error 2

What does this error mean? I am rocky 8.6.

Appreciate any pointers.

Best,

Abhiram

Abhiram Chintangal

unread,
May 28, 2022, 10:07:02 AMMay 28
to beegfs-user
I was able to get this going by going back to a slightly older kernel (4.18.0-348)
and now the client module builds fine.

Best,

Abhiram

James Hutton

unread,
May 31, 2022, 9:04:53 AMMay 31
to beegfs-user
This seems to be happening with nearly every 8.x update of the kernel on RHEL and it's getting really annoying (I thought we were supposed to be 'stable' for 10 years). We need to apply updates - because security - but we can't because then we'd lose access to our storage. It's taken months in the past for beegfs to push updates out, but thankfully the community here has been good at coming up with workarounds. Fingers crossed they can again this time.

Guan Xin

unread,
May 31, 2022, 10:35:42 AMMay 31
to beegfs-user
kernel-lt from elrepo is an alternative.

Philipp Falk

unread,
Jun 1, 2022, 12:30:00 PMJun 1
to fhgfs...@googlegroups.com
Hello James,

* James Hutton <crop...@gmail.com> [220531 15:04]:
> This seems to be happening with nearly every 8.x update of the kernel on
> RHEL and it's getting really annoying (I thought we were supposed to be
> 'stable' for 10 years). We need to apply updates - because security - but
> we can't because then we'd lose access to our storage. It's taken months in
> the past for beegfs to push updates out, but thankfully the community here
> has been good at coming up with workarounds. Fingers crossed they can again
> this time.

we completely understand and share your pain with this. Unfortunately, RHEL
kernels can not be considered nearly as stable as they advertise to be.
APIs change with every minor release and patches from newer kernel versions
seem to be backported without any easy-to-follow logic.

In this case though, the fix is very easy. Deleting the line

#include <asm/kmap_types.h>

from /opt/beegfs/src/client/client_module_7/source/os/OsCompat.h and
recompiling the module should do the trick and allow the compilation to
succeed. We will include some updates to support new OS releases (RHEL 8.6,
Ubuntu 22.04) with our next maintenance releases.

Please let me know if there are any issue with the fix proposed above.

Best regards
- Philipp

--
Philipp Falk | Head of Engineering | m: philip...@thinkparq.com
ThinkParQ GmbH | Trippstadter Strasse 113 | 67663 Kaiserslautern | Germany
CEO: Frank Herold | COB: Dr. Franz-Josef Pfreundt | Registered: Amtsgericht Kaiserslautern HRB 31565 I VAT-ID-No.:DE 292001792

Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or proprietary information.
Reply all
Reply to author
Forward
0 new messages