Skip to contentSkip to conversation

boost: add fiber module

PATCH New Adam Duskett 2 participants 3 messages Oct 23, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 boost: add fiber module

requires NPTL which was causing the following build errors:
http://autobuild.buildroot.net/results/029/0298038fc126d15733d81c54e0bb7cb00be48b92/build-end.log
http://autobuild.buildroot.net/results/6f3/6f3a218c47204e431100799482a3ed0ec159fa15/build-end.log
http://autobuild.buildroot.net/results/63e/63e5569a90d3ace97cb6102509cbd04aeab6f5f7/build-end.log

---
 package/boost/Config.in | 6 ++++++
 package/boost/boost.mk  | 1 +
 2 files changed, 7 insertions(+)
package/boost/Config.in +6 -0
index 3b3c89b8c1..fab31a2e8f 100644
@@ -79,6 +79,12 @@ config BR2_PACKAGE_BOOST_DATE_TIME
 config BR2_PACKAGE_BOOST_EXCEPTION
 	bool "boost-exception"
 
+config BR2_PACKAGE_BOOST_FIBER
+	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
+	bool "boost-fiber"
+
+comment "boost-fiber needs a toolchain w/ NPTL"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
 config BR2_PACKAGE_BOOST_FILESYSTEM
 	bool "boost-filesystem"
 
package/boost/boost.mk +1 -0
index 598ffbe10e..0fd6c4d0de 100644
@@ -26,6 +26,7 @@ BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_CONTEXT),,context)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_COROUTINE),,coroutine)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_DATE_TIME),,date_time)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_EXCEPTION),,exception)
+BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_FILESYSTEM),,fiber)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_FILESYSTEM),,filesystem)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_GRAPH),,graph)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_GRAPH_PARALLEL),,graph_parallel)
Signature · 1 line
2.13.6
#1 lore raw

PATCH 1/1 boost: add fiber module

Sorry, I reviewed the wrong version of the patch...

But the good thing is: there are no reverse dependencies on fiber so no need to
propagate :-)

Quoted 16 lines · Adam Duskett

requires NPTL which was causing the following build errors:
http://autobuild.buildroot.net/results/029/0298038fc126d15733d81c54e0bb7cb00be48b92/build-end.log
http://autobuild.buildroot.net/results/6f3/6f3a218c47204e431100799482a3ed0ec159fa15/build-end.log
http://autobuild.buildroot.net/results/63e/63e5569a90d3ace97cb6102509cbd04aeab6f5f7/build-end.log

---
 package/boost/Config.in | 6 ++++++
 package/boost/boost.mk  | 1 +
 2 files changed, 7 insertions(+)
package/boost/Config.in +0 -0
index 3b3c89b8c1..fab31a2e8f 100644

package/boost/Config.in config BR2_PACKAGE_BOOST_DATE_TIME · line 88

Quoted 10 lines
package/boost/Config.in +6 -0
@@ -79,6 +79,12 @@ config BR2_PACKAGE_BOOST_DATE_TIME
 config BR2_PACKAGE_BOOST_EXCEPTION
 	bool "boost-exception"
 
+config BR2_PACKAGE_BOOST_FIBER
+	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
+	bool "boost-fiber"
+
+comment "boost-fiber needs a toolchain w/ NPTL"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
 config BR2_PACKAGE_BOOST_FILESYSTEM

There should be an empty line between the comment and the next config.

But I'll fix that and apply (just doing a test build now).

Regards,
Arnout

Quoted 15 lines
package/boost/Config.in +0 -0
 	bool "boost-filesystem"
 
package/boost/boost.mk +1 -0
index 598ffbe10e..0fd6c4d0de 100644
@@ -26,6 +26,7 @@ BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_CONTEXT),,context)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_COROUTINE),,coroutine)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_DATE_TIME),,date_time)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_EXCEPTION),,exception)
+BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_FILESYSTEM),,fiber)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_FILESYSTEM),,filesystem)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_GRAPH),,graph)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_GRAPH_PARALLEL),,graph_parallel)
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#2 lore raw

PATCH 1/1 boost: add fiber module

Quoted 35 lines · Arnout Vandecappelle

Sorry, I reviewed the wrong version of the patch...

But the good thing is: there are no reverse dependencies on fiber so no need to
propagate :-)

Quoted 16 lines · Adam Duskett

requires NPTL which was causing the following build errors:
http://autobuild.buildroot.net/results/029/0298038fc126d15733d81c54e0bb7cb00be48b92/build-end.log
http://autobuild.buildroot.net/results/6f3/6f3a218c47204e431100799482a3ed0ec159fa15/build-end.log
http://autobuild.buildroot.net/results/63e/63e5569a90d3ace97cb6102509cbd04aeab6f5f7/build-end.log

---
 package/boost/Config.in | 6 ++++++
 package/boost/boost.mk  | 1 +
 2 files changed, 7 insertions(+)
package/boost/Config.in +0 -0
index 3b3c89b8c1..fab31a2e8f 100644

package/boost/Config.in config BR2_PACKAGE_BOOST_DATE_TIME · line 88

Quoted 10 lines
package/boost/Config.in +6 -0
@@ -79,6 +79,12 @@ config BR2_PACKAGE_BOOST_DATE_TIME
 config BR2_PACKAGE_BOOST_EXCEPTION
 	bool "boost-exception"
 
+config BR2_PACKAGE_BOOST_FIBER
+	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
+	bool "boost-fiber"
+
+comment "boost-fiber needs a toolchain w/ NPTL"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
 config BR2_PACKAGE_BOOST_FILESYSTEM

There should be an empty line between the comment and the next config.

Quoted 1 line

But I'll fix that and apply (just doing a test build now).

Right, the test build failed because I was doing it in static - cfr.

http://autobuild.buildroot.net/results/692/692ffad93a7bd867ecc7ccbfc8c6280735d29435/build-end.log

Could you take a look at that as well? I guess there's a new stacktrace module that depends on !STATIC.

Note that there is also a new PolyCollection module, don't know if it's
header-only or not.

You can look at http://www.boost.org/doc/libs/1_65_1/ and search for "1.65" to
find out the new modules.

Regards,
Arnout

Quoted 20 lines

Regards,
Arnout

Quoted 15 lines
package/boost/Config.in +0 -0
 	bool "boost-filesystem"
 
package/boost/boost.mk +1 -0
index 598ffbe10e..0fd6c4d0de 100644
@@ -26,6 +26,7 @@ BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_CONTEXT),,context)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_COROUTINE),,coroutine)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_DATE_TIME),,date_time)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_EXCEPTION),,exception)
+BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_FILESYSTEM),,fiber)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_FILESYSTEM),,filesystem)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_GRAPH),,graph)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_GRAPH_PARALLEL),,graph_parallel)
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF