summaryrefslogtreecommitdiffstats
path: root/package/boost
Commit message (Collapse)AuthorAgeFilesLines
* boost: context needs thread if gcc < 6Fabrice Fontaine2018-10-262-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit f3a483a81be43b0ff674400e11900605969f8f1c added -std=c++11 to boost build if context is selected and gcc is at least 4.7 however it has the side effect that cc-tool fails to find boost_system with the following error if context and system is enabled with a gcc greater than 6: configure:16312: /home/dawncrow/buildroot-test/scripts/instance-0/output/host/bin/x86_64-linux-g++ -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/dawncrow/buildroot-test/scripts/instance-0/output/host/x86_64-buildroot-linux-musl/sysroot/usr/include -L/home/dawncrow/buildroot-test/scripts/instance-0/output/host/x86_64-buildroot-linux-musl/sysroot/usr/lib conftest.o -lboost_system -latomic >&5 conftest.o: In function `boost::system::error_category::std_category::equivalent(int, std::error_condition const&) const': conftest.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition[_ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition]+0x37): undefined reference to `boost::system::detail::generic_category_instance' This error is related to the fact that since boost 1.68 and commit https://github.com/boostorg/system/commit/7b6dcf6ac668e24f11ec5dbc68d1fa0248d964df, boost system headers are now C++14 "by default" with gcc above 6: - https://github.com/boostorg/system/issues/24 - https://github.com/boostorg/system/issues/26 - https://lists.boost.org/Archives/boost/2018/08/242770.php So when building with gcc > 6, cc-tool thinks that boost has generic_category_instance but because boost was compiled with std=c++11, this function will not be in the library causing a link error Instead of "hacking" even more boost, just remove -std=c++11 from boost.mk and select BOOST_THREAD with gcc lower than 6 Fixes: - http://autobuild.buildroot.org/results/fc8f8a64751c751b2b66301967cc008509bbaa70 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Tested-by: Matt Weber <matthew.weber@rockwellcollins.com> Reviewed-by: Ferdinand van Aartsen <ferdinand@ombud.nl> Tested-by: Ferdinand van Aartsen <ferdinand@ombud.nl> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* boost: context needs C++11Fabrice Fontaine2018-10-102-1/+6
| | | | | | | | | | | | | | | | | | | | Without std=c++11, mutex is not always correctly detected with gcc 4.7, 4.8 or even 5.x. As a result, boost_thread is wrongly selected by boost_context. mutex is available on gcc 4.7.x, the issue is that boost does not correctly detect it because -std=c++11 was missing. Keep thread select for gcc version lower or equal to 4.6. mutex is available since gcc 4.4 (with std=c++0x) but common buildroot practice for C++11 packages is to have a dependency on gcc 4.7, 4.8 or 4.9 depending on the requested C++11 features. Fixes: - http://autobuild.buildroot.net/results/fb046c04fe18bec973d120e4ab33971f32ba5769 - http://autobuild.buildroot.net/results/99f1a255b78a973faeb8bf3b94d78efc54426a8b Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: update upstream status of ↵Thomas Petazzoni2018-10-101-1/+1
| | | | | | | | 0005-fix-static-detection-of-lock-free-atomic-ints.patch The patch has been accepted upstream. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: fix static detection of lock-free atomic intsFabrice Fontaine2018-10-101-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When build statically, boost is unable to detect lock-free atomics ints because it tries to link dynamically, see output/build/boost-1.67.0/bin.v2/config.log (with -d5 option): Using shell: /bin/sh -c argv[0] = '/bin/sh' argv[1] = '-c' argv[2] = ' "/home/fabrice/buildroot/output/host/bin/arm-linux-g++" -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wl,-elf2flt -static -Wl,-elf2flt -static -fPIC -pthread -O0 -fno-inline -Wall -pedantic -g -Wextra -Wno-long-long -Wno-unused-parameter -Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_THREAD_BUILD_DLL=1 -I"." -c -o "bin.v2/libs/thread/build/gcc-6.4.0/debug/threading-multi/has_atomic_flag_lockfree_test.o" "libs/thread/src/../build/has_atomic_flag_lockfree_test.cpp" ' gcc.compile.c++ bin.v2/libs/thread/build/gcc-6.4.0/debug/threading-multi/has_atomic_flag_lockfree_test.o "/home/fabrice/buildroot/output/host/bin/arm-linux-g++" -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wl,-elf2flt -static -Wl,-elf2flt -static -fPIC -pthread -O0 -fno-inline -Wall -pedantic -g -Wextra -Wno-long-long -Wno-unused-parameter -Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_THREAD_BUILD_DLL=1 -I"." -c -o "bin.v2/libs/thread/build/gcc-6.4.0/debug/threading-multi/has_atomic_flag_lockfree_test.o" "libs/thread/src/../build/has_atomic_flag_lockfree_test.cpp" 0.033561 sec system; 0.126314 sec user; 288.682473 sec clock gcc.compile.c++ bin.v2/libs/system/build/gcc-6.4.0/debug/threading-multi/error_code.o "/home/fabrice/buildroot/output/host/bin/arm-linux-g++" -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wl,-elf2flt -static -Wl,-elf2flt -static -fPIC -pthread -O0 -fno-inline -Wall -pedantic -g -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_DYN_LINK=1 -I"." -c -o "bin.v2/libs/system/build/gcc-6.4.0/debug/threading-multi/error_code.o" "libs/system/src/error_code.cpp" 0.084060 sec system; 0.644133 sec user; 8.858824 sec clock SEM: <s>gcc-link-semaphore now used by <pbin.v2/libs/system/build/gcc-6.4.0/debug/threading-multi>libboost_system.so.1.67.0 Using shell: /bin/sh -c argv[0] = '/bin/sh' argv[1] = '-c' argv[2] = ' "/home/fabrice/buildroot/output/host/bin/arm-linux-g++" -o "bin.v2/libs/system/build/gcc-6.4.0/debug/threading-multi/libboost_system.so.1.67.0" -Wl,-h -Wl,libboost_system.so.1.67.0 -shared -Wl,--start-group "bin.v2/libs/system/build/gcc-6.4.0/debug/threading-multi/error_code.o" -Wl,-Bstatic -Wl,-Bdynamic -lrt -Wl,--end-group -fPIC -pthread -g -Wl,-elf2flt -static ' gcc.link.dll bin.v2/libs/system/build/gcc-6.4.0/debug/threading-multi/libboost_system.so.1.67.0 "/home/fabrice/buildroot/output/host/bin/arm-linux-g++" -o "bin.v2/libs/system/build/gcc-6.4.0/debug/threading-multi/libboost_system.so.1.67.0" -Wl,-h -Wl,libboost_system.so.1.67.0 -shared -Wl,--start-group "bin.v2/libs/system/build/gcc-6.4.0/debug/threading-multi/error_code.o" -Wl,-Bstatic -Wl,-Bdynamic -lrt -Wl,--end-group -fPIC -pthread -g -Wl,-elf2flt -static ld (ld-elf2flt): -shared used without passing a shared library ID collect2: error: ld a retourné le statut de sortie 1 0.003123 sec system; 0.004732 sec user; 15.646509 sec clock ...failed gcc.link.dll bin.v2/libs/system/build/gcc-6.4.0/debug/threading-multi/libboost_system.so.1.67.0... Due to this wrong detection, boost_atomic is wrongly selected by boost_thread which cause a build failure on missing select To fix this, move the exe statement before the boost/thread project Fixes: - http://autobuild.buildroot.org/results/f46d38991385cbc2a4fa14eb31074e770cd79803 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* Merge branch 'next'Peter Korsgaard2018-09-072-3/+3
|\ | | | | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
| * boost: bump to version 1.68Fabrice Fontaine2018-08-202-3/+3
| | | | | | | | | | Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* | boost: enable back log on powerpc with uclibcFabrice Fontaine2018-08-181-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | boost-log builds fine with powerpc on uclibc nowadays so enable it back. By removing this dependency, build failure on azmq is also fixed as this package is currently selecting boost-log without fulfilling this dependency Fixes: - http://autobuild.buildroot.net/results/9c373d0b5a1a59e2271d71c480d55a90a67b84cb Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* | boost: context needs thread without C++11 mutexFabrice Fontaine2018-08-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract from output/build/boost-1.67.0/libs/context/build/Jamfile.v2: explicit cxx11_hdr_mutex_check ; local cxx11_mutex = [ check-target-builds cxx11_hdr_mutex_check "C++11 mutex" : : <library>/boost/thread//boost_thread ] ; So select boost_thread if gcc <= 4.7 Fixes: - http://autobuild.buildroot.net/results/fb046c04fe18bec973d120e4ab33971f32ba5769 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* | boost: thread needs atomic if GCC hasn't lock-freeFabrice Fontaine2018-08-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When gcc has not always lock-free atomic ints: - lockfree boost::atomic_flag : no boost thread needs boost atomic: output/host/usr/bin/nios2-linux-readelf -d output/staging/usr/lib/libboost_thread.so Dynamic section at offset 0x2cee0 contains 32 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libboost_system.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_atomic.so.1.67.0] Fixes: - http://autobuild.buildroot.net/results/5a7db292f1365f27e32695527701d5b827f60092 - http://autobuild.buildroot.net/results/413dff87f5329d3c5180167a8711cdedea5dec67 - http://autobuild.buildroot.net/results/a7eb4cbcdbd9412c344f45336dec58c82e84dab9 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* | boost: put back chrono select for coroutineFabrice Fontaine2018-08-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | coroutine module does use chrono directly: ./libs/coroutine/performance/asymmetric/segmented/Jamfile.v2: <library>/boost/chrono//boost_chrono ./libs/coroutine/performance/asymmetric/Jamfile.v2: <library>/boost/chrono//boost_chrono ./libs/coroutine/performance/symmetric/segmented/Jamfile.v2: <library>/boost/chrono//boost_chrono ./libs/coroutine/performance/symmetric/Jamfile.v2: <library>/boost/chrono//boost_chrono So put back select of chrono for coroutine Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* | boost: thread needs chronoFabrice Fontaine2018-08-151-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | chrono is selected by thread (see libs/thread/build/Jamfile.v2): rule usage-requirements ( properties * ) { [...] result += <library>/boost/chrono//boost_chrono ; } So add this select for BR2_PACKAGE_BOOST_THREAD and remove it from BR2_PACKAGE_BOOST_COROUTINE, BR2_PACKAGE_BOOST_LOG, BR2_PACKAGE_TYPE_ERASURE and BR2_PACKAGE_BOOST_WAVE Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* | boost: locale needs thread with icuFabrice Fontaine2018-08-151-0/+1
|/ | | | | | | | | | | | | | | | | | | | output/host/usr/bin/nios2-linux-readelf -d output/staging/usr/lib/libboost_locale.so Dynamic section at offset 0x125ec0 contains 36 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libboost_chrono.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_thread.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_system.so.1.67.0] 0x00000001 (NEEDED) Shared library: [librt.so.1] 0x00000001 (NEEDED) Shared library: [libicudata.so.60] 0x00000001 (NEEDED) Shared library: [libicui18n.so.60] 0x00000001 (NEEDED) Shared library: [libicuuc.so.60] Fixes: - http://autobuild.buildroot.net/results/57838f7cd84f37b66ab7007deaea847af8f54b72 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: detect missing selectsFabrice Fontaine2018-07-101-0/+18
| | | | | | | | | | | | | | | | | | | As suggested by Arnout during the review of http://patchwork.ozlabs.org/patch/934589, add a mechanism to detect a missing boost select by checking that we do not install a boost library which hasn't been selected by the user. To manage a change of boost configuration by the user between two builds, add a BOOST_PRE_INSTALL_TARGET_HOOKS to remove all boost libraries before installing them. Also, use ls with a wildcard instead of test to avoid trying to guess library names if boost layout is set to tagged or versionned (the wildcard will also help us to manage shared or static library) Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* boost: coroutine needs chrono, system, threadFabrice Fontaine2018-07-041-0/+3
| | | | | | | | | | | | | | output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-readelf -d output/staging/usr/lib/libboost_coroutine.so Dynamic section at offset 0xdee8 contains 31 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libboost_chrono.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_context.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_thread.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_system.so.1.67.0] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: type_erasure needs chrono, system, threadFabrice Fontaine2018-07-041-0/+3
| | | | | | | | | | | | | output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-readelf -d output/staging/usr/lib/libboost_type_erasure.so Dynamic section at offset 0xcef0 contains 30 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libboost_thread.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_chrono.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_system.so.1.67.0] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: thread needs systemFabrice Fontaine2018-07-041-0/+1
| | | | | | | | | | | output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-readelf -d output/staging/usr/lib/libboost_thread.so Dynamic section at offset 0x21f00 contains 28 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libboost_system.so.1.67.0] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: graph needs regexFabrice Fontaine2018-07-041-0/+1
| | | | | | | | | | | output/host/usr/bin/m68k-linux-readelf -d output/staging/usr/lib/libboost_graph.so Dynamic section at offset 0x47f00 contains 28 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libboost_regex.so.1.67.0] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: add selects for logFabrice Fontaine2018-07-031-0/+7
| | | | | | | | | | | | | | | | | | | | log needs atomic, chrono, thread, date_time, filesystem, system and regex output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-readelf -d output/staging/usr/lib/libboost_log.so Dynamic section at offset 0xb9ed0 contains 34 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libboost_atomic.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_chrono.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_thread.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_date_time.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_filesystem.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_system.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_regex.so.1.67.0] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: locale needs systemFabrice Fontaine2018-07-031-0/+1
| | | | | | | | | | | output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-readelf -d output/staging/usr/lib/libboost_locale.so Dynamic section at offset 0x76ef4 contains 29 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libboost_system.so.1.67.0] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: fiber needs filesystem and systemFabrice Fontaine2018-07-031-0/+2
| | | | | | | | | | | | | output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-readelf -d output/staging/usr/lib/libboost_fiber.so Dynamic section at offset 0x44ee8 contains 31 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libboost_context.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_filesystem.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_system.so.1.67.0] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: add selects for waveFabrice Fontaine2018-07-031-0/+5
| | | | | | | | | | | | | | | | | wave needs filesystem, thread, date_time, chrono and system output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-readelf -d output/staging/usr/lib/libboost_wave.so Dynamic section at offset 0x143edc contains 32 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libboost_filesystem.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_thread.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_date_time.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_chrono.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_system.so.1.67.0] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: contract needs systemFabrice Fontaine2018-07-021-0/+1
| | | | | | | | | | | output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-readelf -d output/staging/usr/lib/libboost_contract.so Dynamic section at offset 0x19f00 contains 28 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libboost_system.so.1.67.0] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: random needs systemFabrice Fontaine2018-07-021-0/+1
| | | | | | | | | | | output/host/usr/bin/m68k-linux-readelf -d output/staging/usr/lib/libboost_random.so Dynamic section at offset 0x5f20 contains 24 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libboost_system.so.1.67.0] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: test needs system and timerFabrice Fontaine2018-07-021-0/+2
| | | | | | | | | | | | output/host/usr/bin/m68k-linux-readelf -d output/staging/usr/lib/libboost_prg_exec_monitor.so Dynamic section at offset 0xdef8 contains 29 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libboost_timer.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_system.so.1.67.0] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: timer needs chrono and systemFabrice Fontaine2018-07-021-0/+2
| | | | | | | | | | | | output/host/usr/bin/m68k-linux-readelf -d output/staging/usr/lib/libboost_timer.so Dynamic section at offset 0x5ef8 contains 29 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libboost_chrono.so.1.67.0] 0x00000001 (NEEDED) Shared library: [libboost_system.so.1.67.0] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: chrono needs systemFabrice Fontaine2018-07-011-0/+1
| | | | | | | | | | | output/host/usr/bin/mips-linux-gnu-readelf -d output/staging/usr/lib/libboost_chrono.so Dynamic section at offset 0x2c0 contains 30 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libboost_system.so.1.67.0] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: filesystem needs systemFabrice Fontaine2018-07-011-0/+1
| | | | | | | | | | | output/host/usr/bin/m68k-linux-readelf -d output/staging/usr/lib/libboost_filesystem.so Dynamic section at offset 0x17f00 contains 28 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libboost_system.so.1.67.0] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: make fiber module select the context moduleFabrice Fontaine2018-06-301-2/+7
| | | | | | | | | | | | | | | | | The boost fiber module uses the boost context module, so it should select it. Due to this, the boost fiber module inherits the dependencies of boost context: it needs exception_ptr handling, and is only available on the architectures where boost context is supported. Fixes: http://autobuild.buildroot.net/results/56509d315defb95d4ac6e278a9d40cd98f61baa7 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> [Thomas: use only one comment for both gcc bug dependencies.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: coroutine selects contextFabrice Fontaine2018-06-301-1/+7
| | | | | | | Replace the coroutine dependency on context by a select Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: add BR2_PACKAGE_BOOST_CONTEXT_ARCH_SUPPORTSFabrice Fontaine2018-06-301-2/+10
| | | | | | | | Rework boost-context dependencies and manage them through the hidden BR2_PACKAGE_BOOST_CONTEXT_ARCH_SUPPORTS Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: add option for contract libraryFabrice Fontaine2018-06-242-3/+14
| | | | | | | | | | Contract library has been added in boost 1.67 and depends on NPTL Fixes: - http://autobuild.buildroot.net/results/a3dd35cfa50a1862c585a648298351c0aba257db Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* boost: bump to version 1.67.0Fabrice Fontaine2018-06-243-35/+3
| | | | | | | Remove fifth patch (already in version) Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* toolchain: allow disabling packages affected by gcc bug 85180Matt Weber2018-05-301-0/+4
| | | | | | | | | | | | | | | | | Works around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180 which is an issue where the Microblaze architecture had code that caused a infinite recursion while optimizing in versions of GCC earlier than 8.x. More BR discussion can be found on this thread. http://buildroot-busybox.2317881.n4.nabble.com/autobuild-buildroot-net-Build-results-for-2018-04-25-td192721.html Resolves: http://autobuild.buildroot.net/results/b42d68c66d8ea035845a28c5530ef0682fd95713 (boost) http://autobuild.buildroot.net/results/af976a4805fb8b3f0c17a8e3a1f901b2255caa0b (flare-engine) http://autobuild.buildroot.net/results/d20/d20700bd538ba1e9d45ab8a61ecbbba1a320ef38 (gst-ffmpeg) CC: Romain Naour <romain.naour@gmail.com> Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boost: fix build with domoticzFabrice Fontaine2018-01-161-0/+32
| | | | | | | | | | | | | | Fix domoticz build with boost 1.66 and g++5 Patch fetch from one of the answer of https://github.com/domoticz/domoticz/issues/2034: workaround suggested to the boost developers Fixes: - http://autobuild.buildroot.net/results/dec57c19e9aa2e367e23de2232c1d22a2f226a32 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boost: bump to version 1.66.0Jörg Krause2018-01-123-12/+3
| | | | | | | | Drop the metaparse module as it is header only library now. No need for legacy handling as the module is available unconditionally in Boost. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boost: do not allow selecting fiber module on mips32/mips64Thomas Petazzoni2017-11-221-0/+3
| | | | | | | | | | | | | | | | The fiber module uses the cpu_relax() macro, for which the MIPS implementation uses the "pause" instruction, only available since mips32r2 and mips64r2. In order to avoid build failures on mips32/mips64, we disallow the selection of the fiber module for such architecture variants. This solution was suggested by Arnout Vandecappelle. Fixes: http://autobuild.buildroot.net/results/0439790b6f472e3d4b2d5431a05aa5b408f62e56/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boost: fix handling of BR2_PACKAGE_BOOST_FIBER optionAdam Duskett2017-11-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Commit 657dbfa00af724c2539a08eaaf0c8044dd4051d7 ("boost: add fiber module"), introduced: BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_FILESYSTEM),,fiber) which obviously is a typo, and should have been: BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_FIBER),,fiber) Due to this, the fiber module gets compiled even if BR2_PACKAGE_BOOST_FIBER is disabled, causing build failures when NPTL is not available (the fiber library needs NPTL threads). Fixes: http://autobuild.buildroot.net/results/c8b58bf37b565e7a4dd7959e0d9c1cec993758ba/ http://autobuild.buildroot.net/results/df6f9d51ee766a6f8fca986cdc7476d148dad53e/ http://autobuild.buildroot.net/results/fecc16df052ac5b14d3b15e174c7026dfcc8fd33/ Signed-off-by: Adam Duskett <aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boost: add help messages to librariesAdam Duskett2017-10-291-1/+101
| | | | | | | All of the help messages come from http://www.boost.org/doc/libs/1_65_1/ Signed-off-by: Adam Duskett <aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boost: add option for the stacktrace libraryAdam Duskett2017-10-292-0/+10
| | | | | | | | | | | | | | | | | stacktrace requires dynamic library support, which was causing the following build errors: http://autobuild.buildroot.net/results/692ffad93a7bd867ecc7ccbfc8c6280735d29435/ http://autobuild.buildroot.net/results/6058ece804889abaaab0a29258e1de2904162d26/ http://autobuild.buildroot.net/results/12df9b345a90a4e011b8bb4cb1d1ef1c2c7040c0/ http://autobuild.buildroot.net/results/7473c433e93b3e785e44d9868fec517437f59847/ Adding an option for it allows to have it disabled by default, and make sure it only gets enabled when shared library support is available. Signed-off-by: Adam Duskett <aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boost: add fiber moduleAdam Duskett2017-10-232-0/+8
| | | | | | | | | | | | This module requires NPTL. Without support for the module, it is built unconditionally, 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 Signed-off-by: Adam Duskett <aduskett@gmail.com> [Arnout: add empty line in Config.in, reword commit message] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* boost: fix build on ppc64le hostPeter Korsgaard2017-10-221-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: http://autobuild.buildroot.net/results/57d/57d9f0ea27e5c8ba73002bd1d0b33027f27a3779/ http://autobuild.buildroot.net/results/7c3/7c3133e822c997879fe00923ba0ad7903656c2e1/ bootstrap by default runs ./tools/build/src/engine/build.sh --guess-toolset to detect what toolchain (compiler variant). On x86 this returns gcc, but on the ppc64le gcc112 autobuilder this returns xlcpp causing bootstrap.sh to get confused and bail out: ./bootstrap.sh .. Building Boost.Build engine with toolset ... tools/build/src/engine/### \### No toolset specified. Please use --toolset option. \### \### Known toolsets are: acc, borland, cc, como, clang, darwin, gcc, gcc-nocygwin, intel-darwin, intel-linux, intel-win32, kcc, kylix, metrowerks, mipspro, msvc, qcc, pathscale, pgi, sun, sunpro, tru64cxx, vacpp, xlcpp, vc7, vc8, vc9, vc10, vc11, vc12, vc14, vc141, vmsdecc \###/b2 Fix it by explicitly specifying the gcc toolset mode to bootstrap, similar to how it was already done for the bjam invocations. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boost: add workaround patch for musl issueThomas Petazzoni2017-10-211-0/+26
| | | | | | | | | | | | | | | musl has a bug in that <sched.h> defines CPU_ZERO(), which uses memset(), but it doesn't have the prototype for it. This has been fixed by upstream musl but until we rebuild our toolchains, let's have a patch for Boost that works around this problem. We will of course remove this patch once musl is updated to 1.1.17 and our toolchains have been rebuilt. Fixes: http://autobuild.buildroot.net/results/6884cff634367cb640940051a60e5e13f30f70a2/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boost: bump to 1.65.1, coroutine2 is now a header only libraryAdam Duskett2017-10-213-11/+9
| | | | | | | | | | | | | | | | The coroutine2 functionality is now provided only through headers, the compiled library has disappeared. Due to that passing "coroutine2" as argument to --without-libraries. Hence, the BR2_PACKAGE_BOOST_COROUTINE2 option is removed by this commit. We don't need Config.in.legacy handling, because coroutine2 support is now unconditionally available in boost. While at it, add LICENSE_1_0.txt sha256sum to boost.hash. Signed-off-by: Adam Duskett <Adamduskett@outlook.com> [Thomas: drop Config.in.legacy handling, reword commit log.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/boost: bump version to 1.64.0Bernd Kuhls2017-07-254-187/+3
| | | | | | | Removed patches applied upstream. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Globally replace $(HOST_DIR)/usr/bin with $(HOST_DIR)/binArnout Vandecappelle2017-07-051-2/+2
| | | | | | | | | | | Since things are no longer installed in $(HOST_DIR)/usr, the callers should also not refer to it. This is a mechanical change with git grep -l '$(HOST_DIR)/usr/bin' | xargs sed -i 's%$(HOST_DIR)/usr/bin%$(HOST_DIR)/bin%g' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* generic packages: use $(HOST_DIR) instead of $(HOST_DIR)/usr as prefixArnout Vandecappelle2017-07-051-2/+2
| | | | | | | | | | | | Remove the redundant usr/ component of the HOST_DIR paths. Since a previous commit added a symlink from $(HOST_DIR)/usr to $(HOST_DIR), everything keeps on working. This is a mechanical change with git grep -l '\$(HOST_DIR)/usr' | xargs sed -i 's%\(prefix\|PREFIX\)=\("\?\)\$(HOST_DIR)/usr%\1=\2$(HOST_DIR)%g' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boost: module context affected by GCC bug 64735Jörg Krause2017-06-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | Building boosts module context is affected by GCC bug 64735 [1]: ``` ./boost/context/execution_context_v2.hpp:298:31: error: 'exception_ptr' is not a member of 'std' auto p = std::make_tuple( std::exception_ptr{}, std::move( data) ); ``` This is because `exception_ptr` from libstdc++ is not available for architectures not supporting always lock-free atomic ints. Note, that this bug is fixed in GCC 7. Fixes: http://autobuild.buildroot.net/results/f4e/f4e8a3727f19f7df4a1c45efe3603422fafd4af5/ [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64735 Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/boost: disable boost-locale for static only build with icuRomain Naour2017-05-161-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Boost fails to build with the following error: error: Tried to build the target twice, with property sets having error: these incompatible properties: error: error: - <runtime-link>static <warnings>all error: - <runtime-link>shared <warnings>on when the following conditions are met: - BR2_STATIC_LIBS=y - BR2_PACKAGE_ICU=y - BR2_PACKAGE_BOOST_LOCALE=y - Another BR2_PACKAGE_BOOST_xyz option is enabled, which enables a feature not provided just by header files, but that requires building a library. In such a situation, Boost absolutely wants to build the libboost libraries as shared libraries. Not having boost-locale, or not having icu is sufficient to avoid the issue. So, as a simple work-around, we prevent from building boost-locale when icu and static linking are used. Fixes: http://autobuild.buildroot.net/results/c8f7aa85f5791d8ae8cf4b9085788adc5152286f/ Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Yegor Yefremov <yegorslists@googlemail.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [Thomas: - only disable boost-locale when icu is enabled - improve commit log] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/b*/Config.in: fix ordering of statementsAdam Duskett2017-04-291-2/+2
| | | | | | | | | | | | | The check-package script when ran gives warnings on ordering issues on all of these Config files. This patch cleans up all warnings related to the ordering in the Config files for packages starting with the letter b in the package directory. The appropriate ordering is: type, default, depends on, select, help See http://nightly.buildroot.org/#_config_files for more information. Signed-off-by: Adam Duskett <Adamduskett@outlook.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: use SPDX short identifier for Boost Software License 1.0Rahul Bedarkar2017-04-011-1/+1
| | | | | | | | We want to use SPDX identifier for license string as much as possible. SPDX short identifier for Boost Software License 1.0 is BSL-1.0. Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
OpenPOWER on IntegriCloud