All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/trinity: fix musl build
@ 2022-04-19  9:00 Fabrice Fontaine
  2022-04-23 15:05 ` Arnout Vandecappelle
  2022-05-24 15:04 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2022-04-19  9:00 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

Fix the following build failure on musl:

In file included from /nvmedata/autobuild/instance-17/output-1/host/powerpc64-buildroot-linux-musl/sysroot/usr/include/asm/ioctl.h:12,
                 from /nvmedata/autobuild/instance-17/output-1/host/powerpc64-buildroot-linux-musl/sysroot/usr/include/linux/ioctl.h:5,
                 from /nvmedata/autobuild/instance-17/output-1/host/powerpc64-buildroot-linux-musl/sysroot/usr/include/linux/fs.h:14,
                 from ioctls/vfs.c:3:
ioctls/vfs.c:109:35: error: 'loff_t' undeclared here (not in a function); did you mean 'off_t'?
  109 |  { .name = "FIOQSIZE", .request = FIOQSIZE, },
      |                                   ^~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/b7f46072751a8d70fa02f1c625c5279f70bec853

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 .../0003-Use-fcntl-h-for-dev_t-mode_t.patch   | 46 +++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 package/trinity/0003-Use-fcntl-h-for-dev_t-mode_t.patch

diff --git a/package/trinity/0003-Use-fcntl-h-for-dev_t-mode_t.patch b/package/trinity/0003-Use-fcntl-h-for-dev_t-mode_t.patch
new file mode 100644
index 0000000000..c4d9811b8a
--- /dev/null
+++ b/package/trinity/0003-Use-fcntl-h-for-dev_t-mode_t.patch
@@ -0,0 +1,46 @@
+From b1a0aef9978d4a41e7e601c277d4fb1b0cfbed89 Mon Sep 17 00:00:00 2001
+From: Dave Jones <davej@codemonkey.org.uk>
+Date: Thu, 26 Aug 2021 11:17:34 -0400
+Subject: [PATCH] Use fcntl.h for dev_t & mode_t
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Should fix:
+
+In file included from /usr/include/bits/statx.h:31,
+                 from /usr/include/sys/stat.h:446,
+                 from include/files.h:3,
+                 from include/shm.h:6,
+                 from syscalls/x86/modify_ldt.c:12:
+/usr/include/linux/stat.h:57:2: error: unknown type name ‘__s64’
+  __s64 tv_sec;
+  ^~~~~
+/usr/include/linux/stat.h:58:2: error: unknown type name ‘__u32’
+  __u32 tv_nsec;
+  ^~~~~
+/usr/include/linux/stat.h:59:2: error: unknown type name ‘__s32’
+  __s32 __reserved;
+  ^~~~~
+/usr/include/linux/stat.h:101:2: error: unknown type name ‘__u32’
+  __u32 stx_mask; /* What results were written [uncond] */
+
+[Retrieved from:
+https://github.com/kernelslacker/trinity/commit/b1a0aef9978d4a41e7e601c277d4fb1b0cfbed89]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ include/files.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/files.h b/include/files.h
+index 2a8e0e2d..ba3cc98f 100644
+--- a/include/files.h
++++ b/include/files.h
+@@ -1,6 +1,6 @@
+ #pragma once
+ 
+-#include <sys/stat.h>
++#include <fcntl.h>
+ #include "fd.h"
+ 
+ unsigned long get_o_flags(void);
-- 
2.35.1

_______________________________________________
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/trinity: fix musl build
  2022-04-19  9:00 [Buildroot] [PATCH 1/1] package/trinity: fix musl build Fabrice Fontaine
@ 2022-04-23 15:05 ` Arnout Vandecappelle
  2022-05-24 15:04 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2022-04-23 15:05 UTC (permalink / raw)
  To: Fabrice Fontaine, buildroot



On 19/04/2022 11:00, Fabrice Fontaine wrote:
> Fix the following build failure on musl:
> 
> In file included from /nvmedata/autobuild/instance-17/output-1/host/powerpc64-buildroot-linux-musl/sysroot/usr/include/asm/ioctl.h:12,
>                   from /nvmedata/autobuild/instance-17/output-1/host/powerpc64-buildroot-linux-musl/sysroot/usr/include/linux/ioctl.h:5,
>                   from /nvmedata/autobuild/instance-17/output-1/host/powerpc64-buildroot-linux-musl/sysroot/usr/include/linux/fs.h:14,
>                   from ioctls/vfs.c:3:
> ioctls/vfs.c:109:35: error: 'loff_t' undeclared here (not in a function); did you mean 'off_t'?
>    109 |  { .name = "FIOQSIZE", .request = FIOQSIZE, },
>        |                                   ^~~~~~~~
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/b7f46072751a8d70fa02f1c625c5279f70bec853
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   .../0003-Use-fcntl-h-for-dev_t-mode_t.patch   | 46 +++++++++++++++++++
>   1 file changed, 46 insertions(+)
>   create mode 100644 package/trinity/0003-Use-fcntl-h-for-dev_t-mode_t.patch
> 
> diff --git a/package/trinity/0003-Use-fcntl-h-for-dev_t-mode_t.patch b/package/trinity/0003-Use-fcntl-h-for-dev_t-mode_t.patch
> new file mode 100644
> index 0000000000..c4d9811b8a
> --- /dev/null
> +++ b/package/trinity/0003-Use-fcntl-h-for-dev_t-mode_t.patch
> @@ -0,0 +1,46 @@
> +From b1a0aef9978d4a41e7e601c277d4fb1b0cfbed89 Mon Sep 17 00:00:00 2001
> +From: Dave Jones <davej@codemonkey.org.uk>
> +Date: Thu, 26 Aug 2021 11:17:34 -0400
> +Subject: [PATCH] Use fcntl.h for dev_t & mode_t
> +MIME-Version: 1.0
> +Content-Type: text/plain; charset=UTF-8
> +Content-Transfer-Encoding: 8bit
> +
> +Should fix:
> +
> +In file included from /usr/include/bits/statx.h:31,
> +                 from /usr/include/sys/stat.h:446,
> +                 from include/files.h:3,
> +                 from include/shm.h:6,
> +                 from syscalls/x86/modify_ldt.c:12:
> +/usr/include/linux/stat.h:57:2: error: unknown type name ‘__s64’
> +  __s64 tv_sec;
> +  ^~~~~
> +/usr/include/linux/stat.h:58:2: error: unknown type name ‘__u32’
> +  __u32 tv_nsec;
> +  ^~~~~
> +/usr/include/linux/stat.h:59:2: error: unknown type name ‘__s32’
> +  __s32 __reserved;
> +  ^~~~~
> +/usr/include/linux/stat.h:101:2: error: unknown type name ‘__u32’
> +  __u32 stx_mask; /* What results were written [uncond] */
> +
> +[Retrieved from:
> +https://github.com/kernelslacker/trinity/commit/b1a0aef9978d4a41e7e601c277d4fb1b0cfbed89]
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +---
> + include/files.h | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/include/files.h b/include/files.h
> +index 2a8e0e2d..ba3cc98f 100644
> +--- a/include/files.h
> ++++ b/include/files.h
> +@@ -1,6 +1,6 @@
> + #pragma once
> +
> +-#include <sys/stat.h>
> ++#include <fcntl.h>
> + #include "fd.h"
> +
> + unsigned long get_o_flags(void);
_______________________________________________
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/trinity: fix musl build
  2022-04-19  9:00 [Buildroot] [PATCH 1/1] package/trinity: fix musl build Fabrice Fontaine
  2022-04-23 15:05 ` Arnout Vandecappelle
@ 2022-05-24 15:04 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2022-05-24 15:04 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Fix the following build failure on musl:
 > In file included from /nvmedata/autobuild/instance-17/output-1/host/powerpc64-buildroot-linux-musl/sysroot/usr/include/asm/ioctl.h:12,
 >                  from /nvmedata/autobuild/instance-17/output-1/host/powerpc64-buildroot-linux-musl/sysroot/usr/include/linux/ioctl.h:5,
 >                  from /nvmedata/autobuild/instance-17/output-1/host/powerpc64-buildroot-linux-musl/sysroot/usr/include/linux/fs.h:14,
 >                  from ioctls/vfs.c:3:
 > ioctls/vfs.c:109:35: error: 'loff_t' undeclared here (not in a function); did you mean 'off_t'?
 >   109 |  { .name = "FIOQSIZE", .request = FIOQSIZE, },
 >       |                                   ^~~~~~~~

 > Fixes:
 >  - http://autobuild.buildroot.org/results/b7f46072751a8d70fa02f1c625c5279f70bec853

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2022.02.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
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:[~2022-05-24 15:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-19  9:00 [Buildroot] [PATCH 1/1] package/trinity: fix musl build Fabrice Fontaine
2022-04-23 15:05 ` Arnout Vandecappelle
2022-05-24 15:04 ` Peter Korsgaard

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.