All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/fio: fix build
@ 2026-01-02 20:17 Bernd Kuhls
  2026-01-02 20:52 ` Thomas Petazzoni via buildroot
  2026-01-13 19:48 ` Arnout Vandecappelle via buildroot
  0 siblings, 2 replies; 3+ messages in thread
From: Bernd Kuhls @ 2026-01-02 20:17 UTC (permalink / raw)
  To: buildroot; +Cc: Ezequiel Garcia

Buildroot commit 215133c0fc2819f059fbb35071ab2e0987f5107d bumped fio from
3.38 to 3.41. Upstream commit
https://github.com/axboe/fio/commit/4175f4dbec5d1d9e5e0490026e98b1806188e098
was added to fio 3.40 including FALLOC_FL_ZERO_RANGE which causes build
errors.

Added upstream commit which not only fixes musl builds but also uclibc.

Fixes:
musl: https://autobuild.buildroot.net/results/8e9/8e946c7104be0295a9a2b946fe4a82bba0e28db8/
uclibc: https://autobuild.buildroot.net/results/ece/ece6ff1b20fa3482a88ffb3a6167b2bba9b06101/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 package/fio/0001-fix-musl-builds.patch | 38 ++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 package/fio/0001-fix-musl-builds.patch

diff --git a/package/fio/0001-fix-musl-builds.patch b/package/fio/0001-fix-musl-builds.patch
new file mode 100644
index 0000000000..16c3d3836d
--- /dev/null
+++ b/package/fio/0001-fix-musl-builds.patch
@@ -0,0 +1,38 @@
+From ccce76d2850d6e52da3d7986c950af068fbfe0fd Mon Sep 17 00:00:00 2001
+From: Arthur Gautier <arthur.gautier@arista.com>
+Date: Sat, 13 Dec 2025 20:07:11 -0800
+Subject: [PATCH] fix musl builds
+
+This commit fixes the build on musl which fails with the following
+error:
+```
+oslib/linux-blkzoned.c: In function 'blkzoned_move_zone_wp':
+oslib/linux-blkzoned.c:389:37: error: 'FALLOC_FL_ZERO_RANGE' undeclared (first use in this function)
+  389 |                 ret = fallocate(fd, FALLOC_FL_ZERO_RANGE, z->wp, length);
+      |                                     ^~~~~~~~~~~~~~~~~~~~
+oslib/linux-blkzoned.c:389:37: note: each undeclared identifier is reported only once for each function it appears in
+make: *** [Makefile:501: oslib/linux-blkzoned.o] Error 1
+make: *** Waiting for unfinished jobs....
+```
+
+Signed-off-by: Arthur Gautier <arthur.gautier@arista.com>
+
+Upstream: https://github.com/axboe/fio/commit/ccce76d2850d6e52da3d7986c950af068fbfe0fd
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ oslib/linux-blkzoned.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/oslib/linux-blkzoned.c b/oslib/linux-blkzoned.c
+index 78e25fca91..c45ef623de 100644
+--- a/oslib/linux-blkzoned.c
++++ b/oslib/linux-blkzoned.c
+@@ -25,6 +25,7 @@
+ #ifndef BLKFINISHZONE
+ #define BLKFINISHZONE _IOW(0x12, 136, struct blk_zone_range)
+ #endif
++#include <linux/falloc.h>
+ 
+ /*
+  * If the uapi headers installed on the system lacks zone capacity support,
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/fio: fix build
  2026-01-02 20:17 [Buildroot] [PATCH 1/1] package/fio: fix build Bernd Kuhls
@ 2026-01-02 20:52 ` Thomas Petazzoni via buildroot
  2026-01-13 19:48 ` Arnout Vandecappelle via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-01-02 20:52 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: buildroot, Ezequiel Garcia

On Fri,  2 Jan 2026 21:17:43 +0100
Bernd Kuhls <bernd@kuhls.net> wrote:

> Buildroot commit 215133c0fc2819f059fbb35071ab2e0987f5107d bumped fio from
> 3.38 to 3.41. Upstream commit
> https://github.com/axboe/fio/commit/4175f4dbec5d1d9e5e0490026e98b1806188e098
> was added to fio 3.40 including FALLOC_FL_ZERO_RANGE which causes build
> errors.
> 
> Added upstream commit which not only fixes musl builds but also uclibc.
> 
> Fixes:
> musl: https://autobuild.buildroot.net/results/8e9/8e946c7104be0295a9a2b946fe4a82bba0e28db8/
> uclibc: https://autobuild.buildroot.net/results/ece/ece6ff1b20fa3482a88ffb3a6167b2bba9b06101/
> 
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
>  package/fio/0001-fix-musl-builds.patch | 38 ++++++++++++++++++++++++++
>  1 file changed, 38 insertions(+)
>  create mode 100644 package/fio/0001-fix-musl-builds.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/fio: fix build
  2026-01-02 20:17 [Buildroot] [PATCH 1/1] package/fio: fix build Bernd Kuhls
  2026-01-02 20:52 ` Thomas Petazzoni via buildroot
@ 2026-01-13 19:48 ` Arnout Vandecappelle via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2026-01-13 19:48 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: Arnout Vandecappelle, buildroot

In reply of:
> Buildroot commit 215133c0fc2819f059fbb35071ab2e0987f5107d bumped fio from
> 3.38 to 3.41. Upstream commit
> https://github.com/axboe/fio/commit/4175f4dbec5d1d9e5e0490026e98b1806188e098
> was added to fio 3.40 including FALLOC_FL_ZERO_RANGE which causes build
> errors.
> 
> Added upstream commit which not only fixes musl builds but also uclibc.
> 
> Fixes:
> musl: https://autobuild.buildroot.net/results/8e9/8e946c7104be0295a9a2b946fe4a82bba0e28db8/
> uclibc: https://autobuild.buildroot.net/results/ece/ece6ff1b20fa3482a88ffb3a6167b2bba9b06101/
> 
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>

Applied to 2025.11.x. Thanks

> ---
>  package/fio/0001-fix-musl-builds.patch | 38 ++++++++++++++++++++++++++
>  1 file changed, 38 insertions(+)
>  create mode 100644 package/fio/0001-fix-musl-builds.patch
> 
> diff --git a/package/fio/0001-fix-musl-builds.patch b/package/fio/0001-fix-musl-builds.patch
> new file mode 100644
> index 0000000000..16c3d3836d
> --- /dev/null
> +++ b/package/fio/0001-fix-musl-builds.patch
> @@ -0,0 +1,38 @@
> +From ccce76d2850d6e52da3d7986c950af068fbfe0fd Mon Sep 17 00:00:00 2001
> +From: Arthur Gautier <arthur.gautier@arista.com>
> +Date: Sat, 13 Dec 2025 20:07:11 -0800
> +Subject: [PATCH] fix musl builds
> +
> +This commit fixes the build on musl which fails with the following
> +error:
> +```
> +oslib/linux-blkzoned.c: In function 'blkzoned_move_zone_wp':
> +oslib/linux-blkzoned.c:389:37: error: 'FALLOC_FL_ZERO_RANGE' undeclared (first use in this function)
> +  389 |                 ret = fallocate(fd, FALLOC_FL_ZERO_RANGE, z->wp, length);
> +      |                                     ^~~~~~~~~~~~~~~~~~~~
> +oslib/linux-blkzoned.c:389:37: note: each undeclared identifier is reported only once for each function it appears in
> +make: *** [Makefile:501: oslib/linux-blkzoned.o] Error 1
> +make: *** Waiting for unfinished jobs....
> +```
> +
> +Signed-off-by: Arthur Gautier <arthur.gautier@arista.com>
> +
> +Upstream: https://github.com/axboe/fio/commit/ccce76d2850d6e52da3d7986c950af068fbfe0fd
> +
> +Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> +---
> + oslib/linux-blkzoned.c | 1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/oslib/linux-blkzoned.c b/oslib/linux-blkzoned.c
> +index 78e25fca91..c45ef623de 100644
> +--- a/oslib/linux-blkzoned.c
> ++++ b/oslib/linux-blkzoned.c
> +@@ -25,6 +25,7 @@
> + #ifndef BLKFINISHZONE
> + #define BLKFINISHZONE _IOW(0x12, 136, struct blk_zone_range)
> + #endif
> ++#include <linux/falloc.h>
> + 
> + /*
> +  * If the uapi headers installed on the system lacks zone capacity support,
> -- 
> 2.47.3
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-01-13 19:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-02 20:17 [Buildroot] [PATCH 1/1] package/fio: fix build Bernd Kuhls
2026-01-02 20:52 ` Thomas Petazzoni via buildroot
2026-01-13 19:48 ` Arnout Vandecappelle via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.