package/boost: disable boost-locale for static only build
PATCH 1/1 package/boost: disable boost-locale for static only build
boost-locale build system try to link dynamically with icu see <link>shared and <runtime-link>shared in locale/build/Jamfile.v2 Related to https://svn.boost.org/trac/boost/ticket/9685
Enabling boost-locale for static only build trigger an incompatible properties combination.
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
Fixes:
http://autobuild.buildroot.net/results/c8f/c8f7aa85f5791d8ae8cf4b9085788adc5152286f
--- package/boost/Config.in | 7 +++++++ 1 file changed, 7 insertions(+)
package/boost/Config.in +7 -0
@@ -98,8 +98,15 @@ config BR2_PACKAGE_BOOST_IOSTREAMS config BR2_PACKAGE_BOOST_LOCALE bool "boost-locale" + # boost-locale build system try to link dynamically with icu + # see <link>shared and <runtime-link>shared in locale/build/Jamfile.v2 + # Related to https://svn.boost.org/trac/boost/ticket/9685 + depends on !BR2_STATIC_LIBS select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE +comment "boost-locale needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS + config BR2_PACKAGE_BOOST_LOG bool "boost-log" depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
Signature · 1 line
2.9.3
PATCH 1/1 package/boost: disable boost-locale for static only build
Hello,
package/boost/Config.in config BR2_PACKAGE_BOOST_IOSTREAMS · line 105
Quoted 13 lines · Romain Naour
package/boost/Config.in +4
-0@@ -98,8 +98,15 @@ config BR2_PACKAGE_BOOST_IOSTREAMS config BR2_PACKAGE_BOOST_LOCALE bool "boost-locale" + # boost-locale build system try to link dynamically with icu + # see <link>shared and <runtime-link>shared in locale/build/Jamfile.v2 + # Related to https://svn.boost.org/trac/boost/ticket/9685 + depends on !BR2_STATIC_LIBS select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
OK, but doesn't the problem occurs only when icu is enabled? Do we want to prevent from using boost-locale in static linking situations in all cases, or only when combined with icu?
Perhaps we should keep it simple and do like you suggest, i.e make it unavailable for all static linking configurations, regardless of icu availability. I'm just trying to figure out the best/right approach between yours and the one proposed by Yegor.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/1 package/boost: disable boost-locale for static only build
Hi Romain,
Quoted 22 lines · Thomas Petazzoni
Hello,
package/boost/Config.in config BR2_PACKAGE_BOOST_IOSTREAMS · line 105
Quoted 13 lines · Romain Naour
package/boost/Config.in +4
-0@@ -98,8 +98,15 @@ config BR2_PACKAGE_BOOST_IOSTREAMS config BR2_PACKAGE_BOOST_LOCALE bool "boost-locale" + # boost-locale build system try to link dynamically with icu + # see <link>shared and <runtime-link>shared in locale/build/Jamfile.v2 + # Related to https://svn.boost.org/trac/boost/ticket/9685 + depends on !BR2_STATIC_LIBS select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALEOK, but doesn't the problem occurs only when icu is enabled? Do we want to prevent from using boost-locale in static linking situations in all cases, or only when combined with icu?
Quoted 4 lines
Perhaps we should keep it simple and do like you suggest, i.e make it unavailable for all static linking configurations, regardless of icu availability. I'm just trying to figure out the best/right approach between yours and the one proposed by Yegor.
Have you also tested regex module? It seems to have the same structure/dependencies as locale module.
Yegor
PATCH 1/1 package/boost: disable boost-locale for static only build
Hi Yegor,
Le 15/05/2017 ? 10:30, Yegor Yefremov a ?crit :
Quoted 26 lines
Hi Romain,
Quoted 22 lines · Thomas Petazzoni
Hello,
package/boost/Config.in config BR2_PACKAGE_BOOST_IOSTREAMS · line 105
Quoted 13 lines · Romain Naour
package/boost/Config.in +4
-0@@ -98,8 +98,15 @@ config BR2_PACKAGE_BOOST_IOSTREAMS config BR2_PACKAGE_BOOST_LOCALE bool "boost-locale" + # boost-locale build system try to link dynamically with icu + # see <link>shared and <runtime-link>shared in locale/build/Jamfile.v2 + # Related to https://svn.boost.org/trac/boost/ticket/9685 + depends on !BR2_STATIC_LIBS select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALEOK, but doesn't the problem occurs only when icu is enabled? Do we want to prevent from using boost-locale in static linking situations in all cases, or only when combined with icu?
Quoted 7 lines
Quoted 4 lines
Perhaps we should keep it simple and do like you suggest, i.e make it unavailable for all static linking configurations, regardless of icu availability. I'm just trying to figure out the best/right approach between yours and the one proposed by Yegor.
Have you also tested regex module? It seems to have the same structure/dependencies as locale module.
Yes, the boost-regex module was still selected when I disabled boost-locale and rebuilt boost package (after a boost-dirclean).
Maybe I missed something, please share a defconfig if you're able to trigger the issue with boost-regex :)
Best regards,
Romain
Quoted 3 lines
Yegor