Skip to content

GTK4-4.17.1-GCC-13.3.0.eb fails to build on EL8 due to missing linux/udmabuf.h #26522

Description

@PhoenixEmik

Description

The GTK4-4.17.1-GCC-13.3.0.eb easyconfig fails during compilation on an EL8-based system because the system kernel headers do not provide:

linux/udmabuf.h

The failure affects multiple GTK test-suite targets that compile:

testsuite/gdk/udmabuf.c

Environment

EasyBuild: 5.3.1
Easyconfig: GTK4-4.17.1-GCC-13.3.0.eb
GTK: 4.17.1
Toolchain: GCC 13.3.0
OS: Rocky Linux 8 / EL8

The kernel-headers package is installed, but the required header is unavailable:

rpm -q kernel-headers
rpm -ql kernel-headers | grep '/linux/udmabuf.h$'

First failure

The first failure occurs while building the GDK dmabuf-support test:

FAILED: testsuite/gdk/dmabuf-support.p/udmabuf.c.o
../gtk-4.17.1/testsuite/gdk/udmabuf.c:11:10: fatal error: linux/udmabuf.h: No such file or directory
   11 | #include <linux/udmabuf.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.

Additional failure

Skipping only the dmabuf-support test is not sufficient because the GSK compare-render test also directly compiles the same source file:

FAILED: testsuite/gsk/compare-render.p/.._gdk_udmabuf.c.o
gcc ... \
    -o testsuite/gsk/compare-render.p/.._gdk_udmabuf.c.o \
    -c ../gtk-4.17.1/testsuite/gdk/udmabuf.c

../gtk-4.17.1/testsuite/gdk/udmabuf.c:11:10: fatal error: linux/udmabuf.h: No such file or directory
   11 | #include <linux/udmabuf.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.

Therefore, a patch that only conditionally disables:

testsuite/gdk/dmabuf-support

does not fully resolve the build failure.

Cause

GTK 4.17.1 unconditionally includes:

#include <linux/udmabuf.h>

in:

testsuite/gdk/udmabuf.c

That source file is used by at least these two test-suite targets:

testsuite/gdk/dmabuf-support
testsuite/gsk/compare-render

EL8 kernel headers do not provide linux/udmabuf.h, so both targets fail during compilation.

The GTK libraries themselves do not appear to require this header; the failure is limited to the GTK test suite.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions