#1150398 gfs2-utils: FTBFS on arm64: unknown type name '__u128'

Package:
gfs2-utils
Source:
gfs2-utils
Description:
Global File System 2 - filesystem tools
Submitter:
Viktor Pashaiev
Date:
2026-10-10 18:37:03 UTC
Severity:
normal
Tags:
#1150398#5
Date:
2026-10-09 09:26:07 UTC
From:
To:
Dear Maintainer,

gfs2-utils fails to build from source on arm64:

/usr/include/aarch64-linux-gnu/asm/sigcontext.h:81:9: error: unknown type name '__u128'; did you mean '__u32'?

Root cause:
gfs2-utils provides an internal compatibility header gfs2/include/linux/types.h which is exposed via -I compiler flags.
When source files in gfs2/edit (extended.c, journal.c, hexedit.c) include <signal.h>, glibc's <bits/sigcontext.h> includes the kernel UAPI header <asm/sigcontext.h>, which in turn includes <linux/types.h>.
Due to the include path order, the compiler includes the internal gfs2/include/linux/types.h instead of system /usr/include/linux/types.h.
The internal header only defines endian types (__le16 through __be64) and lacks the 128-bit kernel integer types (__s128 and __u128) used by arm64's struct fpsimd_context.

Fix:
Define __s128 and __u128 under #ifdef __SIZEOF_INT128__ in gfs2/include/linux/types.h.
Patch is attached below.
--- a/gfs2/include/linux/types.h
+++ b/gfs2/include/linux/types.h
@@ -24,4 +24,9 @@
 typedef uint64_t __bitwise __le64;
 typedef uint64_t __bitwise __be64;

+#ifdef __SIZEOF_INT128__
+typedef __signed__ __int128 __s128 __attribute__((aligned(16)));
+typedef unsigned __int128 __u128 __attribute__((aligned(16)));
+#endif
+
 #endif /* LINUX_TYPES_H */

#1150398#10
Date:
2026-10-10 18:35:00 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
gfs2-utils, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1150398@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Valentin Vidic <vvidic@debian.org> (supplier of updated gfs2-utils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 09 Oct 2026 20:03:09 +0200
Source: gfs2-utils
Architecture: source
Version: 3.6.1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian HA Maintainers <debian-ha-maintainers@lists.alioth.debian.org>
Changed-By: Valentin Vidic <vvidic@debian.org>
Closes: 1150398
Changes:
 gfs2-utils (3.6.1-3) unstable; urgency=medium
 .
   * debian/patches: fix FTBFS on arm64 (Closes: #1150398)
   * debian/watch: use gitlab instead of pagure
   * debian/control: remove optional fields
   * debian/upstream/metadata: add gitlab links
Checksums-Sha1:
 9cbfbebfa408f0d459dd87ee7b55c447b9e4eb4d 2161 gfs2-utils_3.6.1-3.dsc
 2b47a570e7a5322f1737ca7a05847be4d9dfac6e 9916 gfs2-utils_3.6.1-3.debian.tar.xz
 413342dc16f8348ae7f815ff9aa46e64b1210788 6090 gfs2-utils_3.6.1-3_source.buildinfo
Checksums-Sha256:
 9605fcaf9b43d9ceffc798adc26b71236f3edebcc94348cad56c556fe439be65 2161 gfs2-utils_3.6.1-3.dsc
 27f98d58bb87d4a2bfd394c162f90a609a99684d1a4af8530501a7192c436365 9916 gfs2-utils_3.6.1-3.debian.tar.xz
 980302d75cbb8b1ac9ac7722f09dda85e42a7b1bb47b04857bbd2f426e275377 6090 gfs2-utils_3.6.1-3_source.buildinfo
Files:
 8027de5f02163ce1d054c9fcfa580332 2161 admin optional gfs2-utils_3.6.1-3.dsc
 bc3fc67d71d35111914d445e047f3433 9916 admin optional gfs2-utils_3.6.1-3.debian.tar.xz
 1066a534b3143e1d99f1c19aada408e8 6090 admin optional gfs2-utils_3.6.1-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEExaW53cM9k/u2PWfIMofYmpfNqHsFAmrJMoASHHZ2aWRpY0Bk
ZWJpYW4ub3JnAAoJEDKH2JqXzah7f4sQAL5NuLD5xqBF1y8jlDg8bz3lGvPAU+H5
HHLTRfbia+dJ63Q5Em/irFnSMbSxkRM/Qp3NH192SXUXYdyD6I9VTmCIJ6VZ+K9P
EITlIB5oT55lGfPSuqQyASh+EWtkrBKv4zNbBrm5XeBpb7Ab9ZRTMId2VSRkQpc/
YUMLFtX/5Ij8si088Oefu5mdf95Onm0dAyBl7AXO/1lK5QcTK8KoRWOEJ6AoMowR
PAS4ORLF4uL/x9VumMAJV5XTUoKvPzF7UP48FBqeFzhebQKrmqeN0O18VxTnc/XB
8NCBeVgkbpqFi4jOQDVJux8zH40K6X6dvTYd+KYOrILY0K0YBHkwkANrw2k/ogtC
9EwldNJhOv9F2KGRmiBgZJlwMoop4fXD5cyOaWhi9cKFnQ9EkpQtGpw23eSA22uo
9UbgNxznQzZr1Ssr+r+DdAytnR6Ky9f4BjTtnB2RLlqmzpAzqBXywmXlVqsjw+nM
f1bR28WqJDBvEXOBlWwrN/TR61m5A4fdXHvte1R+oW+PR8OXLFliDrqE6LygFnsG
r0QQqoVXjWhGdlVXB0k0RChoe/rHiKGyALlgekrIjEsf5W13oMt8RkISJVgS0bUi
8+FCbXgWsc8LJ+eBlYRWKijbMFknjao1GBLNWcZun3iVS40rdo7oCCPkgr0HuEC3
2j59pf8wI13K
=01F3
-----END PGP SIGNATURE-----