* [Buildroot] [PATCH 1/1] package/poke: fix build with uclibc-ng < 1.0.35
@ 2021-08-08 19:12 Fabrice Fontaine
2021-08-08 20:30 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-08-08 19:12 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
Fix the folllowing build failure with uclibc-ng which is raised since
activation of uclibc-ng in commit
a4dc754178b7c24ed129e7e6f8effd555249c941:
In file included from ./sys/random.h:40,
from getrandom.c:22:
/tmp/instance-0/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:27:35: error: unknown type name 'size_t'
27 | extern int getrandom(void *__buf, size_t count, unsigned int flags)
| ^~~~~~
/tmp/instance-0/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:8:1: note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
7 | #include <features.h>
+++ |+#include <stddef.h>
8 |
Fixes:
- http://autobuild.buildroot.org/results/30105094e39374ec6d4e47e2fb5e99696f7f7981
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
...andom.c-fix-build-with-uclibc-1.0.35.patch | 72 +++++++++++++++++++
1 file changed, 72 insertions(+)
create mode 100644 package/poke/0004-lib-getrandom.c-fix-build-with-uclibc-1.0.35.patch
diff --git a/package/poke/0004-lib-getrandom.c-fix-build-with-uclibc-1.0.35.patch b/package/poke/0004-lib-getrandom.c-fix-build-with-uclibc-1.0.35.patch
new file mode 100644
index 0000000000..757dc3f760
--- /dev/null
+++ b/package/poke/0004-lib-getrandom.c-fix-build-with-uclibc-1.0.35.patch
@@ -0,0 +1,72 @@
+From a0594387565e1e6b4a8a8ba04ad13b135cc1f0b5 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Thu, 1 Apr 2021 07:49:46 +0200
+Subject: [PATCH] lib/getrandom.c: fix build with uclibc < 1.0.35
+
+Fix the following build failure with uclibc < 1.0.35 which is raised
+since the addition of getrandom module in
+https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=682cc4e678aceff32dea2a84b6e5147bdf5a20a7:
+
+In file included from ./sys/random.h:40,
+ from getrandom.c:22:
+/tmp/instance-0/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:27:35: error: unknown type name 'size_t'
+ 27 | extern int getrandom(void *__buf, size_t count, unsigned int flags)
+ | ^~~~~~
+/tmp/instance-0/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:8:1: note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
+ 7 | #include <features.h>
+ +++ |+#include <stddef.h>
+ 8 |
+
+This patch is not upstreamable as it is only a workaround for
+uclibc < 1.0.35, upstream uclibc has been patched with
+https://github.com/wbx-github/uclibc-ng/commit/00972c02c2b6e0a95d5def4a71bdfb188e091782
+
+Fixes:
+ - http://autobuild.buildroot.org/results/30105094e39374ec6d4e47e2fb5e99696f7f7981
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ jitter/gnulib-local/getrandom.c | 1 +
+ gl/getrandom.c | 1 +
+ gl-libpoke/getrandom.c | 1 +
+ 3 files changed, 3 insertions(+)
+
+diff --git a/jitter/gnulib-local/getrandom.c b/jitter/gnulib-local/getrandom.c
+index 41212fb32..0ad3f9648 100644
+--- a/jitter/gnulib-local/getrandom.c
++++ b/jitter/gnulib-local/getrandom.c
+@@ -19,6 +19,7 @@
+
+ #include <config.h>
+
++#include <stddef.h>
+ #include <sys/random.h>
+
+ #include <errno.h>
+diff --git a/gl/getrandom.c b/gl/getrandom.c
+index 41212fb32..0ad3f9648 100644
+--- a/gl/getrandom.c
++++ b/gl/getrandom.c
+@@ -19,6 +19,7 @@
+
+ #include <config.h>
+
++#include <stddef.h>
+ #include <sys/random.h>
+
+ #include <errno.h>
+diff --git a/gl-libpoke/getrandom.c b/gl-libpoke/getrandom.c
+index 41212fb32..0ad3f9648 100644
+--- a/gl-libpoke/getrandom.c
++++ b/gl-libpoke/getrandom.c
+@@ -19,6 +19,7 @@
+
+ #include <config.h>
+
++#include <stddef.h>
+ #include <sys/random.h>
+
+ #include <errno.h>
+--
+2.30.2
+
--
2.30.2
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/poke: fix build with uclibc-ng < 1.0.35
2021-08-08 19:12 [Buildroot] [PATCH 1/1] package/poke: fix build with uclibc-ng < 1.0.35 Fabrice Fontaine
@ 2021-08-08 20:30 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2021-08-08 20:30 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
On Sun, 8 Aug 2021 21:12:48 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fix the folllowing build failure with uclibc-ng which is raised since
> activation of uclibc-ng in commit
> a4dc754178b7c24ed129e7e6f8effd555249c941:
>
> In file included from ./sys/random.h:40,
> from getrandom.c:22:
> /tmp/instance-0/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:27:35: error: unknown type name 'size_t'
> 27 | extern int getrandom(void *__buf, size_t count, unsigned int flags)
> | ^~~~~~
> /tmp/instance-0/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:8:1: note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
> 7 | #include <features.h>
> +++ |+#include <stddef.h>
> 8 |
>
> Fixes:
> - http://autobuild.buildroot.org/results/30105094e39374ec6d4e47e2fb5e99696f7f7981
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> ...andom.c-fix-build-with-uclibc-1.0.35.patch | 72 +++++++++++++++++++
> 1 file changed, 72 insertions(+)
> create mode 100644 package/poke/0004-lib-getrandom.c-fix-build-with-uclibc-1.0.35.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-08 20:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-08 19:12 [Buildroot] [PATCH 1/1] package/poke: fix build with uclibc-ng < 1.0.35 Fabrice Fontaine
2021-08-08 20:30 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox