From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/boost: atomics needs always lockfree atomic bytes
Date: Sat, 5 Dec 2020 22:00:06 +0100 [thread overview]
Message-ID: <20201205220006.6697e97f@windsurf.home> (raw)
In-Reply-To: <20201127174829.172699-1-fontaine.fabrice@gmail.com>
Hello Fabrice,
On Fri, 27 Nov 2020 18:48:29 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Since version 1.74.0, boost atomics needs a toolchain that always
> supports lockfree atomic bytes so add dependendy on
> BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS:
> https://github.com/boostorg/atomic/issues/42
>
> Fixes:
> - http://autobuild.buildroot.org/results/c03a786791e3aa7801cf1bff9934c4a105f54ce1
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Thanks for the research! A couple of comments/questions below.
> diff --git a/package/bitcoin/Config.in b/package/bitcoin/Config.in
> index 65af15293d..8c5d9fb8fa 100644
> --- a/package/bitcoin/Config.in
> +++ b/package/bitcoin/Config.in
> @@ -10,6 +10,7 @@ config BR2_PACKAGE_BITCOIN_ARCH_SUPPORTS
> config BR2_PACKAGE_BITCOIN
> bool "bitcoin"
> depends on BR2_INSTALL_LIBSTDCPP
> + depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS # boost-thread
> depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::future
> depends on BR2_PACKAGE_BITCOIN_ARCH_SUPPORTS
> depends on BR2_TOOLCHAIN_HAS_THREADS # boost
> @@ -36,7 +37,8 @@ config BR2_PACKAGE_BITCOIN
> https://bitcoincore.org
>
> comment "bitcoin needs a toolchain w/ C++, threads, wchar"
> - depends on BR2_PACKAGE_BITCOIN_ARCH_SUPPORTS
> + depends on BR2_PACKAGE_BITCOIN_ARCH_SUPPORTS || \
This should be a && here, as we want to see the comment only if the
arch is supported *and* lock free atomics are provided.
> config BR2_PACKAGE_BOOST_THREAD
> bool "boost-thread"
> + depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS # boost-atomic
> depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::current_exception
> - select BR2_PACKAGE_BOOST_ATOMIC if !BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS
> + select BR2_PACKAGE_BOOST_ATOMIC
Are you sure there ? boost-atomic was only needed by boost-thread *if*
the toolchain did not provide lock free atomic ints. But anyway, now
boost-atomic always requires lockfree atomic ints.
So are you sure boost-atomic still has to be selected here ?
> comment "gqrx needs a toolchain w/ C++, threads, wchar, dynamic library"
> depends on BR2_USE_MMU # gnuradio
> - depends on BR2_TOOLCHAIN_HAS_SYNC_4 || BR2_TOOLCHAIN_HAS_ATOMIC
This should have been a && here.
> + depends on BR2_TOOLCHAIN_HAS_SYNC_4 || BR2_TOOLCHAIN_HAS_ATOMIC || \
> + BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS
And so another && it should be there.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
prev parent reply other threads:[~2020-12-05 21:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-27 17:48 [Buildroot] [PATCH 1/1] package/boost: atomics needs always lockfree atomic bytes Fabrice Fontaine
2020-12-05 21:00 ` Thomas Petazzoni [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201205220006.6697e97f@windsurf.home \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox