Revert "package/log4cxx: select boost chrono and date-time with gcc < 7"
PATCH v2 1/2 Revert "package/log4cxx: select boost chrono and date-time with gcc < 7"
This reverts commit 3c2245cb65741c965f4bb87d35ac3c64f250a1ae to move these selects on boost side as the build failure was raised with gcc >= 7 (making this commit a "no-op"). Indeed, the build failure is raised with cmake < 3.21.3, because cmake assumed that boost thread depends on date-time until
https://github.com/Kitware/CMake/commit/1ad0c5ae53fc0c4f774166337f0e9c93c578cf9b.
---
Changes v1 -> v2 (after review of Yann E. Morin):
- Update commuit message to explain that this commit is a no-op and the relationship with cmake
package/log4cxx/Config.in | 2 -- 1 file changed, 2 deletions(-)
package/log4cxx/Config.in +0 -2
@@ -12,8 +12,6 @@ config BR2_PACKAGE_LOG4CXX select BR2_PACKAGE_APR_UTIL select BR2_PACKAGE_BOOST if !BR2_TOOLCHAIN_GCC_AT_LEAST_7 select BR2_PACKAGE_BOOST_ATOMIC if !BR2_TOOLCHAIN_GCC_AT_LEAST_7 - select BR2_PACKAGE_BOOST_CHRONO if !BR2_TOOLCHAIN_GCC_AT_LEAST_7 - select BR2_PACKAGE_BOOST_DATE_TIME if !BR2_TOOLCHAIN_GCC_AT_LEAST_7 select BR2_PACKAGE_BOOST_THREAD if !BR2_TOOLCHAIN_GCC_AT_LEAST_7 help Apache log4cxx is a logging framework for C++ patterned
Signature · 6 lines
2.33.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 2/2 package/boost: threads needs date-time
Fix the following build failure with gcc >= 7 raised since commit 4e267a7d3d5d350710a81ada188a1629348e4b4a because until cmake 3.21.3 and
https://github.com/Kitware/CMake/commit/1ad0c5ae53fc0c4f774166337f0e9c93c578cf9b,
cmake assumed that boost threads depends on boost date-time. As, we can't patch all cmake in the field, just select boost date-time.
-- Found Boost: /home/buildroot/autobuild/instance-3/output-1/host/sh4-buildroot-linux-uclibc/sysroot/usr/include (found version "1.77.0") found components: thread chrono atomic missing components: date_time
Fixes:
- http://autobuild.buildroot.org/results/e7443e3bc955e7eddd7bed63e2728880dabb31a7
---
Changes v1 -> v2 (after review of Yann E. Morin):
- Update commit message to explain the relationship with cmake
package/boost/Config.in | 1 + 1 file changed, 1 insertion(+)
package/boost/Config.in +1 -0
@@ -348,6 +348,7 @@ config BR2_PACKAGE_BOOST_THREAD depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::current_exception select BR2_PACKAGE_BOOST_CHRONO + select BR2_PACKAGE_BOOST_DATE_TIME select BR2_PACKAGE_BOOST_SYSTEM help Portable C++ multi-threading. C++11, C++14.
Signature · 6 lines
2.33.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2, 2/2] package/boost: threads needs date-time
Quoted 10 lines · On Fri, 19 Nov 2021 18:55:53 +0100 Fabrice Fontaine…
Fix the following build failure with gcc >= 7 raised since commit
4e267a7d3d5d350710a81ada188a1629348e4b4abecause until cmake 3.21.3 and
https://github.com/Kitware/CMake/commit/1ad0c5ae53fc0c4f774166337f0e9c93c578cf9b,
cmake assumed that boost threads depends on boost date-time. As, we can't patch all cmake in the field, just select boost date-time.-- Found Boost:
/home/buildroot/autobuild/instance-3/output-1/host/sh4-buildroot-linux-uclibc/sysroot/usr/include(found version "1.77.0") found components: thread chrono atomic missing components:date_timeFixes:
- http://autobuild.buildroot.org/results/e7443e3bc955e7eddd7bed63e2728880dabb31a7
So just to work-around a CMake < 3.21.3 bug, we force this select in Boost? This doesn't feel like a very good solution :-/
Even in Buildroot, we're still using CMake 3.16.9.
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2, 2/2] package/boost: threads needs date-time
Quoted 11 lines · Thomas Petazzoni
Quoted 8 lines · On Fri, 19 Nov 2021 18:55:53 +0100 Fabrice Fontaine…
Fix the following build failure with gcc >= 7 raised since commit
4e267a7d3d5d350710a81ada188a1629348e4b4abecause until cmake 3.21.3 and
https://github.com/Kitware/CMake/commit/1ad0c5ae53fc0c4f774166337f0e9c93c578cf9b,
cmake assumed that boost threads depends on boost date-time. As, we can't patch all cmake in the field, just select boost date-time.-- Found Boost:
/home/buildroot/autobuild/instance-3/output-1/host/sh4-buildroot-linux-uclibc/sysroot/usr/include(found version "1.77.0") found components: thread chrono atomic missing components:date_time
Quoted 7 lines
Quoted 2 lines
Fixes:
- http://autobuild.buildroot.org/results/e7443e3bc955e7eddd7bed63e2728880dabb31a7So just to work-around a CMake < 3.21.3 bug, we force this select in Boost? This doesn't feel like a very good solution :-/
Even in Buildroot, we're still using CMake 3.16.9.
So what we could do instead is to bump CMake to 3.22, and set our mininum
CMake version to 3.21.3. This is going to hurt the build time for some people, but I guess it's better than forcing boost date-time?
On the other hand, boost date-time probably has a very small additional size
cost compared to the rest of boost, so this patch is probably a better ad hoc solution. I'd just add a comment in the Config.in file to explain that this is just a workaround, with a longer explanation in the commit message.
Regards,
Arnout
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2, 2/2] package/boost: threads needs date-time
Quoted 8 lines · On Mon, 22 Nov 2021 21:53:18 +0100 Arnout Vandecappelle <[email protected]> wrote:
So what we could do instead is to bump CMake to 3.22, and set our mininum
CMake version to 3.21.3. This is going to hurt the build time for some people, but I guess it's better than forcing boost date-time?On the other hand, boost date-time probably has a very small additional size
cost compared to the rest of boost, so this patch is probably a better ad hoc solution. I'd just add a comment in the Config.in file to explain that this is just a workaround, with a longer explanation in the commit message.
Fair enough, that works for me. We need to remember to drop that workaround at some point in the future, when we require at least CMake 3.21.3.
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 6 lines · On Fri, 19 Nov 2021 18:55:52 +0100 Fabrice Fontaine…
This reverts commit
3c2245cb65741c965f4bb87d35ac3c64f250a1aeto move these selects on boost side as the build failure was raised with gcc >= 7 (making this commit a "no-op"). Indeed, the build failure is raised with cmake < 3.21.3, because cmake assumed that boost thread depends on date-time until
https://github.com/Kitware/CMake/commit/1ad0c5ae53fc0c4f774166337f0e9c93c578cf9b.
I don't understand why you say this commit is a no-op. It clearly isn't. In gcc < 7.x configurations, this commit ensures that boost chrono and boost date-time are selected.
The fact that you realize later that the build failure occurred with gcc >= 7.x, meaning this commit does not help fixing the issue does not make this commit a no-op.
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Fabrice,
Quoted 10 lines · On Sun, 21 Nov 2021 14:57:41 +0100 Thomas Petazzoni…
Quoted 6 lines · On Fri, 19 Nov 2021 18:55:52 +0100 Fabrice Fontaine…
This reverts commit
3c2245cb65741c965f4bb87d35ac3c64f250a1aeto move these selects on boost side as the build failure was raised with gcc >= 7 (making this commit a "no-op"). Indeed, the build failure is raised with cmake < 3.21.3, because cmake assumed that boost thread depends on date-time until
https://github.com/Kitware/CMake/commit/1ad0c5ae53fc0c4f774166337f0e9c93c578cf9b.
Quoted 7 lines
I don't understand why you say this commit is a no-op. It clearly isn't. In gcc < 7.x configurations, this commit ensures that boost chrono and boost date-time are selected.
The fact that you realize later that the build failure occurred with gcc >= 7.x, meaning this commit does not help fixing the issue does not make this commit a no-op.
Do you have some feedback/comment on the above questions?
Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Thomas,
Quoted 20 lines · Thomas Petazzoni
Hello Fabrice,
Quoted 14 lines · On Sun, 21 Nov 2021 14:57:41 +0100 Thomas Petazzoni…
Quoted 6 lines · On Fri, 19 Nov 2021 18:55:52 +0100 Fabrice Fontaine…
This reverts commit
3c2245cb65741c965f4bb87d35ac3c64f250a1aeto move these selects on boost side as the build failure was raised with gcc >= 7 (making this commit a "no-op"). Indeed, the build failure is raised with cmake < 3.21.3, because cmake assumed that boost thread depends on date-time until
https://github.com/Kitware/CMake/commit/1ad0c5ae53fc0c4f774166337f0e9c93c578cf9b.I don't understand why you say this commit is a no-op. It clearly isn't. In gcc < 7.x configurations, this commit ensures that boost chrono and boost date-time are selected.
Quoted 5 lines
Quoted 3 lines
The fact that you realize later that the build failure occurred with gcc >= 7.x, meaning this commit does not help fixing the issue does not make this commit a no-op.
Do you have some feedback/comment on the above questions?
Indeed, this is not a no-op so I suggest to only apply the second patch of the serie.
Quoted 8 lines
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training
https://bootlin.com
Best Regards,
Fabrice
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot