* [Buildroot] [PATCH] package/graphene: needs a toolchain with threads
@ 2024-08-11 8:07 Francois Perrad
2024-08-12 20:03 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Francois Perrad @ 2024-08-11 8:07 UTC (permalink / raw)
To: buildroot
/home/autobuild/autobuild/instance-9/output-1/host/aarch64-buildroot-linux-uclibc/sysroot/usr/include/features.h:220:5: warning: #warning requested reentrant code, but thread support was disabled [-Wcpp]
fix http://autobuild.buildroot.org/results/9b3/9b357b1ef2eccd3110d0ecaaff1ae4883dff9280
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
package/graphene/Config.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/graphene/Config.in b/package/graphene/Config.in
index 60f6073a1..085efb301 100644
--- a/package/graphene/Config.in
+++ b/package/graphene/Config.in
@@ -1,6 +1,10 @@
config BR2_PACKAGE_GRAPHENE
bool "graphene"
+ depends on BR2_TOOLCHAIN_HAS_THREADS
help
A thin layer of types for graphic libraries.
https://ebassi.github.io/graphene/
+
+comment "graphene needs a toolchain w/ threads"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH] package/graphene: needs a toolchain with threads
2024-08-11 8:07 [Buildroot] [PATCH] package/graphene: needs a toolchain with threads Francois Perrad
@ 2024-08-12 20:03 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-08-12 20:03 UTC (permalink / raw)
To: Francois Perrad; +Cc: buildroot
Hello François,
On Sun, 11 Aug 2024 10:07:55 +0200
Francois Perrad <francois.perrad@gadz.org> wrote:
> /home/autobuild/autobuild/instance-9/output-1/host/aarch64-buildroot-linux-uclibc/sysroot/usr/include/features.h:220:5: warning: #warning requested reentrant code, but thread support was disabled [-Wcpp]
>
> fix http://autobuild.buildroot.org/results/9b3/9b357b1ef2eccd3110d0ecaaff1ae4883dff9280
>
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
> ---
> package/graphene/Config.in | 4 ++++
> 1 file changed, 4 insertions(+)
Thanks a lot, but I believe this is papering over the real issue.
Indeed the code has some nice:
#ifdef HAVE_PTHREAD
...
#endif
around all thread related code. However, the:
threadlib = dependency("threads")
in meson.build adds -pthread to the build command line, causing this
issue. I am not an expert in Meson so I'm not 100% sure how to fix
this, and to understand 100% what is the semantic of
dependency("threads"), but this is what needs to be fixed (or
alternatively reported upstream). Maybe meson.build needs to be changed this way:
test if pthread.h is here, and if it is:
set HAVE_PHTHREAD
threadlib = dependency("threads")
something along those lines. Could you have a look?
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] 2+ messages in thread
end of thread, other threads:[~2024-08-12 20:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-11 8:07 [Buildroot] [PATCH] package/graphene: needs a toolchain with threads Francois Perrad
2024-08-12 20:03 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox