* [Buildroot] [PATCH 1/3] package/boost: disable boost-log with bfin uClibc 2014R1 toolchain
@ 2015-04-09 20:23 Romain Naour
2015-04-09 20:23 ` [Buildroot] [PATCH 2/3] package/boost: disable boost-log with bfin uClibc 2013R1 toolchain Romain Naour
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Romain Naour @ 2015-04-09 20:23 UTC (permalink / raw)
To: buildroot
pthread_spin_* functions are not implemented in the uClibc used by this toolchain.
In file included from libs/log/src/threadsafe_queue.cpp:33:
./boost/log/detail/spin_mutex.hpp: In constructor ?boost::log::v2_mt_posix::aux::spin_mutex::spin_mutex()?:
./boost/log/detail/spin_mutex.hpp:198: error: ?pthread_spin_init? was not declared in this scope
./boost/log/detail/spin_mutex.hpp: In destructor ?boost::log::v2_mt_posix::aux::spin_mutex::~spin_mutex()?:
./boost/log/detail/spin_mutex.hpp:205: error: ?pthread_spin_destroy? was not declared in this scope
./boost/log/detail/spin_mutex.hpp: In member function ?bool boost::log::v2_mt_posix::aux::spin_mutex::try_lock()?:
./boost/log/detail/spin_mutex.hpp:210: error: ?pthread_spin_trylock? was not declared in this scope
./boost/log/detail/spin_mutex.hpp: In member function ?void boost::log::v2_mt_posix::aux::spin_mutex::lock()?:
./boost/log/detail/spin_mutex.hpp:220: error: ?pthread_spin_lock? was not declared in this scope
./boost/log/detail/spin_mutex.hpp: In member function ?void boost::log::v2_mt_posix::aux::spin_mutex::unlock()?:
./boost/log/detail/spin_mutex.hpp:227: error: ?pthread_spin_unlock? was not declared in this scope
Fixes:
http://autobuild.buildroot.net/results/8cd/8cdac9cc67394aaae09ee816a9adddec762e3bd0/
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
package/boost/Config.in | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/boost/Config.in b/package/boost/Config.in
index a004fd8..8e99324 100644
--- a/package/boost/Config.in
+++ b/package/boost/Config.in
@@ -88,7 +88,8 @@ comment "boost-locale needs a toolchain w/ wchar"
depends on !BR2_USE_WCHAR
config BR2_PACKAGE_BOOST_LOG
- bool "boost-log"
+ depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2014R1 # missing pthread_spin_* in uClibc.
+ bool "boost-log"
config BR2_PACKAGE_BOOST_MATH
bool "boost-math"
--
1.9.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/3] package/boost: disable boost-log with bfin uClibc 2013R1 toolchain
2015-04-09 20:23 [Buildroot] [PATCH 1/3] package/boost: disable boost-log with bfin uClibc 2014R1 toolchain Romain Naour
@ 2015-04-09 20:23 ` Romain Naour
2015-04-09 20:23 ` [Buildroot] [PATCH 3/3] package/boost: disable boost-log with bfin uClibc 2012R2 toolchain Romain Naour
2015-04-09 21:31 ` [Buildroot] [PATCH 1/3] package/boost: disable boost-log with bfin uClibc 2014R1 toolchain Thomas Petazzoni
2 siblings, 0 replies; 4+ messages in thread
From: Romain Naour @ 2015-04-09 20:23 UTC (permalink / raw)
To: buildroot
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
package/boost/Config.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/boost/Config.in b/package/boost/Config.in
index 8e99324..1c51a8b 100644
--- a/package/boost/Config.in
+++ b/package/boost/Config.in
@@ -89,6 +89,7 @@ comment "boost-locale needs a toolchain w/ wchar"
config BR2_PACKAGE_BOOST_LOG
depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2014R1 # missing pthread_spin_* in uClibc.
+ depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2013R1 # missing pthread_spin_* in uClibc.
bool "boost-log"
config BR2_PACKAGE_BOOST_MATH
--
1.9.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 3/3] package/boost: disable boost-log with bfin uClibc 2012R2 toolchain
2015-04-09 20:23 [Buildroot] [PATCH 1/3] package/boost: disable boost-log with bfin uClibc 2014R1 toolchain Romain Naour
2015-04-09 20:23 ` [Buildroot] [PATCH 2/3] package/boost: disable boost-log with bfin uClibc 2013R1 toolchain Romain Naour
@ 2015-04-09 20:23 ` Romain Naour
2015-04-09 21:31 ` [Buildroot] [PATCH 1/3] package/boost: disable boost-log with bfin uClibc 2014R1 toolchain Thomas Petazzoni
2 siblings, 0 replies; 4+ messages in thread
From: Romain Naour @ 2015-04-09 20:23 UTC (permalink / raw)
To: buildroot
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
package/boost/Config.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/boost/Config.in b/package/boost/Config.in
index 1c51a8b..7a151fc 100644
--- a/package/boost/Config.in
+++ b/package/boost/Config.in
@@ -90,6 +90,7 @@ comment "boost-locale needs a toolchain w/ wchar"
config BR2_PACKAGE_BOOST_LOG
depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2014R1 # missing pthread_spin_* in uClibc.
depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2013R1 # missing pthread_spin_* in uClibc.
+ depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2 # missing pthread_spin_* in uClibc.
bool "boost-log"
config BR2_PACKAGE_BOOST_MATH
--
1.9.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/3] package/boost: disable boost-log with bfin uClibc 2014R1 toolchain
2015-04-09 20:23 [Buildroot] [PATCH 1/3] package/boost: disable boost-log with bfin uClibc 2014R1 toolchain Romain Naour
2015-04-09 20:23 ` [Buildroot] [PATCH 2/3] package/boost: disable boost-log with bfin uClibc 2013R1 toolchain Romain Naour
2015-04-09 20:23 ` [Buildroot] [PATCH 3/3] package/boost: disable boost-log with bfin uClibc 2012R2 toolchain Romain Naour
@ 2015-04-09 21:31 ` Thomas Petazzoni
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2015-04-09 21:31 UTC (permalink / raw)
To: buildroot
Dear Romain Naour,
On Thu, 9 Apr 2015 22:23:38 +0200, Romain Naour wrote:
> pthread_spin_* functions are not implemented in the uClibc used by this toolchain.
>
> In file included from libs/log/src/threadsafe_queue.cpp:33:
> ./boost/log/detail/spin_mutex.hpp: In constructor ?boost::log::v2_mt_posix::aux::spin_mutex::spin_mutex()?:
> ./boost/log/detail/spin_mutex.hpp:198: error: ?pthread_spin_init? was not declared in this scope
> ./boost/log/detail/spin_mutex.hpp: In destructor ?boost::log::v2_mt_posix::aux::spin_mutex::~spin_mutex()?:
> ./boost/log/detail/spin_mutex.hpp:205: error: ?pthread_spin_destroy? was not declared in this scope
> ./boost/log/detail/spin_mutex.hpp: In member function ?bool boost::log::v2_mt_posix::aux::spin_mutex::try_lock()?:
> ./boost/log/detail/spin_mutex.hpp:210: error: ?pthread_spin_trylock? was not declared in this scope
> ./boost/log/detail/spin_mutex.hpp: In member function ?void boost::log::v2_mt_posix::aux::spin_mutex::lock()?:
> ./boost/log/detail/spin_mutex.hpp:220: error: ?pthread_spin_lock? was not declared in this scope
> ./boost/log/detail/spin_mutex.hpp: In member function ?void boost::log::v2_mt_posix::aux::spin_mutex::unlock()?:
> ./boost/log/detail/spin_mutex.hpp:227: error: ?pthread_spin_unlock? was not declared in this scope
I believe a better option is probably to make this option depend on
BR2_TOOLCHAIN_HAS_THREADS_NPTL. pthread_spin_* are available in
linuxthreads, but not linuxthreads.old apparently, linuxthreads is very
rarely used. So I believe limiting to NPTL thread implementation is a
good enough approximation.
Also, it's probably a bit heavy to do one patch per toolchain version.
> config BR2_PACKAGE_BOOST_LOG
> - bool "boost-log"
> + depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2014R1 # missing pthread_spin_* in uClibc.
> + bool "boost-log"
I've fixed up the indentation as a separate commit. The 'depends on'
line should be after the 'bool' line.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-04-09 21:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-09 20:23 [Buildroot] [PATCH 1/3] package/boost: disable boost-log with bfin uClibc 2014R1 toolchain Romain Naour
2015-04-09 20:23 ` [Buildroot] [PATCH 2/3] package/boost: disable boost-log with bfin uClibc 2013R1 toolchain Romain Naour
2015-04-09 20:23 ` [Buildroot] [PATCH 3/3] package/boost: disable boost-log with bfin uClibc 2012R2 toolchain Romain Naour
2015-04-09 21:31 ` [Buildroot] [PATCH 1/3] package/boost: disable boost-log with bfin uClibc 2014R1 toolchain Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox