Skip to contentSkip to conversation

package/boost: boost-local needs NTPL threads

PATCH New Romain Naour 4 participants 6 messages Jul 2, 2016 – Jul 3, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/boost: boost-local needs NTPL threads

Since Boost 1.61.0 boost-local require a toolchain with NTPL threads support.

Fixes:
http://autobuild.buildroot.net/results/52c/52c198457c6a7a0a73766e8b8bed8d70997b80c0

---
 package/boost/Config.in | 4 ++++
 1 file changed, 4 insertions(+)
package/boost/Config.in +4 -0
index 0cc9a58..d47bb40 100644
@@ -98,8 +98,12 @@ config BR2_PACKAGE_BOOST_IOSTREAMS
 
 config BR2_PACKAGE_BOOST_LOCALE
 	bool "boost-locale"
+	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
 	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
 
+comment "boost-locale needs a toolchain w/ NPTL"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
+
 config BR2_PACKAGE_BOOST_LOG
 	bool "boost-log"
 	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
Signature · 1 line
2.5.5
#1 lore raw

PATCH 2/2 package/boost: add boot-type_erasure support

Until now this library wasn't handled by the Buildroot packaging, since it require a toolchain with NTPL support add a new config option to disable it when requested.

Also disable boost-type_erasure for the host variant to keep it as minimal as possible.

---
 package/boost/Config.in | 7 +++++++
 package/boost/boost.mk  | 4 +++-
 2 files changed, 10 insertions(+), 1 deletion(-)
package/boost/Config.in +7 -0
index d47bb40..ee4d1da 100644
@@ -158,6 +158,13 @@ config BR2_PACKAGE_BOOST_THREAD
 config BR2_PACKAGE_BOOST_TIMER
 	bool "boost-timer"
 
+config BR2_PACKAGE_BOOST_TYPE_ERASURE
+	bool "boost-type_erasure"
+	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
+
+comment "boost-type_erasure needs a toolchain w/ NPTL"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
+
 config BR2_PACKAGE_BOOST_WAVE
 	bool "boost-wave"
 
package/boost/boost.mk +3 -1
index fc89265..1d42f6c 100644
@@ -18,7 +18,8 @@ HOST_BOOST_FLAGS = --without-icu \
 	--without-libraries=$(subst $(space),$(comma),atomic chrono context \
 	coroutine coroutine2 date_time exception filesystem graph \
 	graph_parallel iostreams locale log math mpi program_options python \
-	random regex serialization signals system test thread timer wave)
+	random regex serialization signals system test thread timer type_erasure \
+	wave)
 
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_ATOMIC),,atomic)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_CHRONO),,chrono)
@@ -47,6 +48,7 @@ BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_SYSTEM),,system)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_TEST),,test)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_THREAD),,thread)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_TIMER),,timer)
+BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_TYPE_ERASURE),,type_erasure)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_WAVE),,wave)
 
 BOOST_TARGET_CXXFLAGS = $(TARGET_CXXFLAGS)
Signature · 1 line
2.5.5
#3 lore raw

PATCH 1/2 package/boost: boost-local needs NTPL threads

Hi Bernd,

Le 02/07/2016 ? 16:43, Bernd Kuhls a ?crit :

Quoted 9 lines

Hi Romain,

Am Sat, 02 Jul 2016 16:32:29 +0200 schrieb Romain Naour:

Quoted 2 lines

Since Boost 1.61.0 boost-local require a toolchain with NTPL threads support.

NAK, the Cortex m4 toolchain is broken, not boost:
http://lists.busybox.net/pipermail/buildroot/2016-June/163865.html

Thanks for the link.
I guess the patch 2/2 has the same issue on NTPL requirement. Still we probably need the library handling in the packaging.

Is the patch from Waldemar has been merged upstream ? For now, can we add an autobuilder exception ?

I'll mark the series rejected.

Best regards,
Romain

Quoted 8 lines

Regards, Bernd

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#4 lore raw

PATCH 1/2 package/boost: boost-local needs NTPL threads

Hi,
Romain Naour wrote,

Quoted 13 lines

Hi Bernd,

Le 02/07/2016 ? 16:43, Bernd Kuhls a ?crit :

Quoted 9 lines

Hi Romain,

Am Sat, 02 Jul 2016 16:32:29 +0200 schrieb Romain Naour:

Quoted 2 lines

Since Boost 1.61.0 boost-local require a toolchain with NTPL threads support.

NAK, the Cortex m4 toolchain is broken, not boost:
http://lists.busybox.net/pipermail/buildroot/2016-June/163865.html

Quoted 6 lines

Thanks for the link.
I guess the patch 2/2 has the same issue on NTPL requirement. Still we probably need the library handling in the packaging.

Is the patch from Waldemar has been merged upstream ? For now, can we add an autobuilder exception ?

I have sent a official patch today to buildroot and reported the issue upstream.

best regards
Waldemar

#5 lore raw

PATCH 1/2 package/boost: boost-local needs NTPL threads

Hi Waldemar,

Le 02/07/2016 ? 20:54, Waldemar Brodkorb a ?crit :

Quoted 20 lines

Hi,
Romain Naour wrote,

Quoted 17 lines

Hi Bernd,

Le 02/07/2016 ? 16:43, Bernd Kuhls a ?crit :

Quoted 9 lines

Hi Romain,

Am Sat, 02 Jul 2016 16:32:29 +0200 schrieb Romain Naour:

Quoted 2 lines

Since Boost 1.61.0 boost-local require a toolchain with NTPL threads support.

NAK, the Cortex m4 toolchain is broken, not boost:
http://lists.busybox.net/pipermail/buildroot/2016-June/163865.html

Thanks for the link.
I guess the patch 2/2 has the same issue on NTPL requirement. Still we probably need the library handling in the packaging.

Quoted 5 lines
Quoted 2 lines

Is the patch from Waldemar has been merged upstream ? For now, can we add an autobuilder exception ?

I have sent a official patch today to buildroot and reported the issue upstream.

Thank you for the patch, Thomas is looking at it.

Best regards,
Romain

Quoted 8 lines

best regards
Waldemar
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot