boost: require NPTL
PATCH 1/1 boost: require NPTL
pin_thread.cpp:31:39: error: '::pthread_setaffinity_np' has not been declared [1]
[1]
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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
package/boost/Config.in +3 -2
@@ -1,9 +1,10 @@ -comment "boost needs a toolchain w/ C++, threads, wchar" - depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR +comment "boost needs a toolchain w/ C++, threads, wchar, NTPL" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS_NPTL config BR2_PACKAGE_BOOST bool "boost" depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # Boost could theorically be built with threading=single, but # that unfortunately doesn't work. Until someone fixes that, # let's depend on threads.
Signature · 1 line
2.13.6
PATCH 1/1 boost: require NPTL
Hi Adam,
Quoted 19 lines · Adam Duskett
pin_thread.cpp:31:39: error: '::pthread_setaffinity_np' has not been declared [1]
[1]
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.logSigned-off-by Adam Duskett <[email protected]>--- package/boost/Config.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)package/boost/Config.in +0
-0
package/boost/Config.in line 2
Quoted 4 lines
package/boost/Config.in +2
-2@@ -1,9 +1,10 @@ -comment "boost needs a toolchain w/ C++, threads, wchar" - depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR +comment "boost needs a toolchain w/ C++, threads, wchar, NTPL" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS_NPTL
You don't need to specify both _HAS_THREADS and HAS_THREADS_NPTL - the second
impies the first.
Also in the comment you can put "NPTL threads" instead of "threads, ..., NPTL".
Oh, and it's NPTL (New Posix Threads Library), not NTPL.
package/boost/Config.in line 10
Quoted 8 lines
package/boost/Config.in +1
-0config BR2_PACKAGE_BOOST bool "boost" depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # Boost could theorically be built with threading=single, but # that unfortunately doesn't work. Until someone fixes that, # let's depend on threads.
Same here of course.
And finally: don't forget to propagate to the reverse dependencies. Yes, it is
terribly annoying, but Kconfig has no way to avoid it.
Regards,
Arnout
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