* [Buildroot] [PATCH] openpgm: depends on sync2/sync4
@ 2016-03-16 14:20 Gustavo Zacarias
2016-03-16 15:53 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Gustavo Zacarias @ 2016-03-16 14:20 UTC (permalink / raw)
To: buildroot
Add dependency on BR2_TOOLCHAIN_HAS_SYNC_2/4 since it uses both
__sync_fetch_and_add_2() and __sync_fetch_and_add_4() atomic builtins.
Fixes:
http://autobuild.buildroot.net/results/8f2/8f2a3571611dc9414c23808e7615f87b677557dd/
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/openpgm/Config.in | 4 ++++
package/zeromq/Config.in | 2 ++
2 files changed, 6 insertions(+)
diff --git a/package/openpgm/Config.in b/package/openpgm/Config.in
index 94816d8..632c289 100644
--- a/package/openpgm/Config.in
+++ b/package/openpgm/Config.in
@@ -1,5 +1,7 @@
config BR2_PACKAGE_OPENPGM
bool "openpgm"
+ depends on BR2_TOOLCHAIN_HAS_SYNC_2
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4
# This toolchain lack required compiler intrinsics
depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX
depends on BR2_TOOLCHAIN_HAS_THREADS
@@ -15,4 +17,6 @@ config BR2_PACKAGE_OPENPGM
https://github.com/steve-o/openpgm/
comment "openpgm needs a toolchain w/ wchar, threads"
+ depends on BR2_TOOLCHAIN_HAS_SYNC_2
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4
depends on !(BR2_TOOLCHAIN_HAS_THREADS && BR2_USE_WCHAR)
diff --git a/package/zeromq/Config.in b/package/zeromq/Config.in
index c780f25..2385606 100644
--- a/package/zeromq/Config.in
+++ b/package/zeromq/Config.in
@@ -29,6 +29,8 @@ if BR2_PACKAGE_ZEROMQ
config BR2_PACKAGE_ZEROMQ_PGM
bool "PGM/EPGM support"
+ depends on BR2_TOOLCHAIN_HAS_SYNC_2
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4
depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX # openpgm
select BR2_PACKAGE_OPENPGM
help
--
2.4.10
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] openpgm: depends on sync2/sync4
2016-03-16 14:20 [Buildroot] [PATCH] openpgm: depends on sync2/sync4 Gustavo Zacarias
@ 2016-03-16 15:53 ` Thomas Petazzoni
2016-03-16 19:09 ` Gustavo Zacarias
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2016-03-16 15:53 UTC (permalink / raw)
To: buildroot
Gustavo,
On Wed, 16 Mar 2016 11:20:13 -0300, Gustavo Zacarias wrote:
> Add dependency on BR2_TOOLCHAIN_HAS_SYNC_2/4 since it uses both
> __sync_fetch_and_add_2() and __sync_fetch_and_add_4() atomic builtins.
> Fixes:
> http://autobuild.buildroot.net/results/8f2/8f2a3571611dc9414c23808e7615f87b677557dd/
>
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> package/openpgm/Config.in | 4 ++++
> package/zeromq/Config.in | 2 ++
> 2 files changed, 6 insertions(+)
>
> diff --git a/package/openpgm/Config.in b/package/openpgm/Config.in
> index 94816d8..632c289 100644
> --- a/package/openpgm/Config.in
> +++ b/package/openpgm/Config.in
> @@ -1,5 +1,7 @@
> config BR2_PACKAGE_OPENPGM
> bool "openpgm"
> + depends on BR2_TOOLCHAIN_HAS_SYNC_2
> + depends on BR2_TOOLCHAIN_HAS_SYNC_4
> # This toolchain lack required compiler intrinsics
> depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX
Maybe we can remove this dependency then?
Blackfin provides __sync_*() for 4-bytes, but not for 2 bytes.
And indeed, the original commit that added this dependency points to
http://autobuild.buildroot.org/results/3bd/3bda860a269dd9a4e38533cc9350892c68102618/build-end.log,
which shows undefined reference for the two bytes variants.
Could you submit an updated patch that removes the Blackfin dependency?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] openpgm: depends on sync2/sync4
2016-03-16 15:53 ` Thomas Petazzoni
@ 2016-03-16 19:09 ` Gustavo Zacarias
0 siblings, 0 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2016-03-16 19:09 UTC (permalink / raw)
To: buildroot
On 16/03/16 12:53, Thomas Petazzoni wrote:
> Maybe we can remove this dependency then?
>
> Blackfin provides __sync_*() for 4-bytes, but not for 2 bytes.
>
> And indeed, the original commit that added this dependency points to
> http://autobuild.buildroot.org/results/3bd/3bda860a269dd9a4e38533cc9350892c68102618/build-end.log,
> which shows undefined reference for the two bytes variants.
>
> Could you submit an updated patch that removes the Blackfin dependency?
>
> Thanks!
>
> Thomas
Indeed, the comment in Config.in wasn't clear which gcc instrinsics it
used. I'll spin v2.
Regards.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-03-16 19:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-16 14:20 [Buildroot] [PATCH] openpgm: depends on sync2/sync4 Gustavo Zacarias
2016-03-16 15:53 ` Thomas Petazzoni
2016-03-16 19:09 ` Gustavo Zacarias
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox