All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/dump1090: fix dependencies
@ 2022-08-07  9:55 Fabrice Fontaine
  2022-08-07 12:40 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-08-07  9:55 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

dump1090 needs threads and gcc >= 4.9 since bump to version 7.2 in
commit e80c99e1519dafc2cf88ab4672eecda88359ecb1 to avoid the following
build failures:

In file included from dump1090.c:50:
dump1090.h:69:10: fatal error: pthread.h: No such file or directory
   69 | #include <pthread.h>
      |          ^~~~~~~~~~~

In file included from dump1090.c:50:0:
dump1090.h:68:23: fatal error: stdatomic.h: No such file or directory
 #include <stdatomic.h>
                       ^

Fixes:
 - http://autobuild.buildroot.org/results/a8993d9a09c79231358f50d2c1eb2e08cf7d5fd6
 - http://autobuild.buildroot.org/results/7367abae7dc8187e4a2aae5397618c6e1b7aa521

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/dump1090/Config.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/dump1090/Config.in b/package/dump1090/Config.in
index 897ad46679..ca3165dc74 100644
--- a/package/dump1090/Config.in
+++ b/package/dump1090/Config.in
@@ -1,7 +1,13 @@
 config BR2_PACKAGE_DUMP1090
 	bool "dump1090"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C11/stdatomic.h
 	select BR2_PACKAGE_NCURSES
 	help
 	  Dump1090 is a simple Mode S decoder for RTLSDR devices
 
 	  https://github.com/flightaware/dump1090
+
+comment "dump1090 needs a toolchain w/ threads, gcc >= 4.9"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || \
+		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
-- 
2.35.1

_______________________________________________
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 1/1] package/dump1090: fix dependencies
  2022-08-07  9:55 [Buildroot] [PATCH 1/1] package/dump1090: fix dependencies Fabrice Fontaine
@ 2022-08-07 12:40 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-08-07 12:40 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: buildroot

On Sun,  7 Aug 2022 11:55:53 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> dump1090 needs threads and gcc >= 4.9 since bump to version 7.2 in
> commit e80c99e1519dafc2cf88ab4672eecda88359ecb1 to avoid the following
> build failures:
> 
> In file included from dump1090.c:50:
> dump1090.h:69:10: fatal error: pthread.h: No such file or directory
>    69 | #include <pthread.h>
>       |          ^~~~~~~~~~~
> 
> In file included from dump1090.c:50:0:
> dump1090.h:68:23: fatal error: stdatomic.h: No such file or directory
>  #include <stdatomic.h>
>                        ^
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/a8993d9a09c79231358f50d2c1eb2e08cf7d5fd6
>  - http://autobuild.buildroot.org/results/7367abae7dc8187e4a2aae5397618c6e1b7aa521
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/dump1090/Config.in | 6 ++++++
>  1 file changed, 6 insertions(+)

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] 2+ messages in thread

end of thread, other threads:[~2022-08-07 12:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-07  9:55 [Buildroot] [PATCH 1/1] package/dump1090: fix dependencies Fabrice Fontaine
2022-08-07 12:40 ` Thomas Petazzoni 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.