Skip to contentSkip to conversation

Failed to compile due to missing <linux/blkdev.h> header with liburing-2.9?

DISCUSSION Qu Wenruo 2 participants 4 messages Feb 8, 2025

lore
Share & tools
lore

Qu Wenruo

author
#0 lore raw

Hi,

Just find out that fsstress no longer compiles on for-next (v2025.02.02) , patches-in-queue (a494849fb48dc6b276c2a1784d6ff66c731e5572) nor master branchs (8467552f09e1672a02712653b532a84bd46ea10e)
All fails with the following error:

```
Building ltp
    [CC]    fsstress
In file included from /usr/include/liburing.h:17,
                 from fsstress.c:30:
/usr/include/liburing/compat.h:11:10: fatal error: linux/blkdev.h: No
such file or directory
   11 | #include <linux/blkdev.h>
      |          ^~~~~~~~~~~~~~~~
```

This seems to be a change in the liburing headers, as v2.8 still compiles fine.

Is there something wrong with header change?

Thanks,
Qu

#1 lore raw
Quoted 18 lines · Qu Wenruo

Hi,

Just find out that fsstress no longer compiles on for-next (v2025.02.02) , patches-in-queue (a494849fb48dc6b276c2a1784d6ff66c731e5572) nor master branchs (8467552f09e1672a02712653b532a84bd46ea10e)
All fails with the following error:

```
Building ltp
    [CC]    fsstress
In file included from /usr/include/liburing.h:17,
                 from fsstress.c:30:
/usr/include/liburing/compat.h:11:10: fatal error: linux/blkdev.h: No
such file or directory
   11 | #include <linux/blkdev.h>
      |          ^~~~~~~~~~~~~~~~
```
Quoted 4 lines

This seems to be a change in the liburing headers, as v2.8 still compiles fine.

Is there something wrong with header change?

Are you on arch linux? They messed up their packaging.

Signature · 1 line
Jens Axboe
author
#2 lore raw
Quoted 19 lines · Jens Axboe
Quoted 18 lines · Qu Wenruo

Hi,

Just find out that fsstress no longer compiles on for-next (v2025.02.02) , patches-in-queue (a494849fb48dc6b276c2a1784d6ff66c731e5572) nor master branchs (8467552f09e1672a02712653b532a84bd46ea10e)
All fails with the following error:

```
Building ltp
     [CC]    fsstress
In file included from /usr/include/liburing.h:17,
                  from fsstress.c:30:
/usr/include/liburing/compat.h:11:10: fatal error: linux/blkdev.h: No
such file or directory
    11 | #include <linux/blkdev.h>
       |          ^~~~~~~~~~~~~~~~
```
Quoted 7 lines
Quoted 4 lines

This seems to be a change in the liburing headers, as v2.8 still compiles fine.

Is there something wrong with header change?

Are you on arch linux? They messed up their packaging.

Thanks for confirming, will report back to downstream.

Thanks,
Qu

#3 lore raw
Quoted 25 lines · Qu Wenruo
Quoted 22 lines · Jens Axboe
Quoted 21 lines · Qu Wenruo

Hi,

Just find out that fsstress no longer compiles on for-next (v2025.02.02) , patches-in-queue (a494849fb48dc6b276c2a1784d6ff66c731e5572) nor master branchs (8467552f09e1672a02712653b532a84bd46ea10e)
All fails with the following error:

```
Building ltp
     [CC]    fsstress
In file included from /usr/include/liburing.h:17,
                  from fsstress.c:30:
/usr/include/liburing/compat.h:11:10: fatal error: linux/blkdev.h: No
such file or directory
    11 | #include <linux/blkdev.h>
       |          ^~~~~~~~~~~~~~~~
```

This seems to be a change in the liburing headers, as v2.8 still compiles fine.

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Is there something wrong with header change?

Are you on arch linux? They messed up their packaging.

Thanks for confirming, will report back to downstream.

Forgot to link it, but also see:

https://github.com/axboe/liburing/issues/1341

which is the same issue on Arch. They compiled the library against different heads than the version they are installing with, which caused the issue. They just need to fix their liburing package.

Signature · 1 line
Jens Axboe