Revert "package/log4cxx: select boost chrono and date-time with gcc < 7"
PATCH 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.
--- 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 2/2 package/boost: threads needs date-time
Fix the following build failure with gcc >= 7 raised since commit 4e267a7d3d5d350710a81ada188a1629348e4b4a because cmake assumes that boost threads needs 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
--- 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
Fabrice, All,
On 2021-11-19 17:54 +0100, Fabrice Fontaine spake thusly:
Quoted 3 lines
This reverts commit
3c2245cb65741c965f4bb87d35ac3c64f250a1aeto move these selects on boost side as the build failure was raised with gcc >= 7.
So, if I understand correctly, if we just apply this revert, but not the following patch, we break the build again, right? If so, then it makes the history not bi-sectable.
Instead, the boost patch must be applied first, and once that is done, then we can apply this revert.
If the above is correct, just say so, we can re-order the patches when applying...
Regards,
Yann E. MORIN.
Quoted 25 lines
Signed-off-by Fabrice Fontaine <[email protected]>--- 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++ patternedSignature · 6 lines
2.33.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Yann,
Quoted 11 lines · Yann E. MORIN
Fabrice, All,
On 2021-11-19 17:54 +0100, Fabrice Fontaine spake thusly:
Quoted 3 lines
This reverts commit
3c2245cb65741c965f4bb87d35ac3c64f250a1aeto move these selects on boost side as the build failure was raised with gcc >= 7.So, if I understand correctly, if we just apply this revert, but not the following patch, we break the build again, right? If so, then it makes the history not bi-sectable.
No, basically the patch that I'm reverting is a "no-op". It does not fix anything as the build failure is raised with gcc >=7, not gcc < 7.
I made this mistake, because the build failure is only raised since cmake >= 3.21.3 and
https://github.com/Kitware/CMake/commit/1ad0c5ae53fc0c4f774166337f0e9c93c578cf9b.
cmake has the following behavior:
- if it "recognizes" the boost version, it will set the boost thread
dependencies to chrono date_time atomic.
- However, if it does not recognize it (i.e. with cmake < 3.21.3 and
boost 1.77.0), it will set the boost thread dependencies to chrono atomic.
Quoted 38 lines
Instead, the boost patch must be applied first, and once that is done, then we can apply this revert.
If the above is correct, just say so, we can re-order the patches when applying...
Regards,
Yann E. MORIN.Quoted 21 lines
Signed-off-by Fabrice Fontaine <[email protected]>--- package/log4cxx/Config.in | 2 -- 1 file changed, 2 deletions(-)package/log4cxx/Config.in +0
-3@@ -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 --2.33.0
Quoted 4 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot--
.-----------------.--------------------.------------------.--------------------.
Quoted 5 lines
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |'------------------------------^-------^------------------^--------------------'
Best Regards,
Fabrice
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 12 lines · Fabrice Fontaine
Hi Yann,
Quoted 8 lines · Yann E. MORIN
Fabrice, All,
On 2021-11-19 17:54 +0100, Fabrice Fontaine spake thusly:
Quoted 3 lines
This reverts commit
3c2245cb65741c965f4bb87d35ac3c64f250a1aeto move these selects on boost side as the build failure was raised with gcc >= 7.
Quoted 8 lines
Quoted 3 lines
So, if I understand correctly, if we just apply this revert, but not the following patch, we break the build again, right? If so, then it makes the history not bi-sectable.
No, basically the patch that I'm reverting is a "no-op". It does not fix anything as the build failure is raised with gcc >=7, not gcc < 7.
I made this mistake, because the build failure is only raised since cmake >= 3.21.3 and
In fact, I made another mistake, the build failure is raised with cmake < 3.21.3.
I really hate cmake ;-). I'll send a v2 with an updated commit log.
Quoted 51 lines
https://github.com/Kitware/CMake/commit/1ad0c5ae53fc0c4f774166337f0e9c93c578cf9b.
cmake has the following behavior:
- if it "recognizes" the boost version, it will set the boost thread
dependencies to chronodate_timeatomic.
- However, if it does not recognize it (i.e. with cmake < 3.21.3 and
boost 1.77.0), it will set the boost thread dependencies to chrono atomic.Quoted 38 lines
Instead, the boost patch must be applied first, and once that is done, then we can apply this revert.
If the above is correct, just say so, we can re-order the patches when applying...
Regards,
Yann E. MORIN.Quoted 21 lines
Signed-off-by Fabrice Fontaine <[email protected]>--- package/log4cxx/Config.in | 2 -- 1 file changed, 2 deletions(-)package/log4cxx/Config.in +0
-3@@ -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 --2.33.0
Quoted 4 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot--
.-----------------.--------------------.------------------.--------------------.Quoted 5 lines
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |'------------------------------^-------^------------------^--------------------'
Quoted 3 lines
Best Regards,
Fabrice
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Fabrice, All,
(typing this without light, I accidentally broke the bulb... Hopefully, there will be less typoes than in my usual mails, as I am extra careful what key I am typing. Hey, that's not even guaranteed! ;-] )
On 2021-11-19 18:43 +0100, Fabrice Fontaine spake thusly:
Quoted 11 lines
Quoted 9 lines · Fabrice Fontaine
Quoted 7 lines · Yann E. MORIN
On 2021-11-19 17:54 +0100, Fabrice Fontaine spake thusly:
Quoted 3 lines
This reverts commit
3c2245cb65741c965f4bb87d35ac3c64f250a1aeto move these selects on boost side as the build failure was raised with gcc >= 7.So, if I understand correctly, if we just apply this revert, but not the following patch, we break the build again, right? If so, then it makes the history not bi-sectable.
No, basically the patch that I'm reverting is a "no-op".
Aj, OK, so the order indeed does not matter much. But semantically, it does matter, and that the revert comes first is then correct, with your explanations.
Quoted 7 lines
Quoted 4 lines
It does not fix anything as the build failure is raised with gcc >=7, not gcc < 7.
I made this mistake, because the build failure is only raised since cmake >= 3.21.3 andIn fact, I made another mistake, the build failure is raised with cmake < 3.21.3.
I really hate cmake ;-). I'll send a v2 with an updated commit log.
Hihihi! :-)
Thanks!
Regards,
Yann E. MORIN.
Quoted 54 lines
Quoted 54 lines
https://github.com/Kitware/CMake/commit/1ad0c5ae53fc0c4f774166337f0e9c93c578cf9b.
cmake has the following behavior:
- if it "recognizes" the boost version, it will set the boost thread
dependencies to chronodate_timeatomic.
- However, if it does not recognize it (i.e. with cmake < 3.21.3 and
boost 1.77.0), it will set the boost thread dependencies to chrono atomic.Quoted 38 lines
Instead, the boost patch must be applied first, and once that is done, then we can apply this revert.
If the above is correct, just say so, we can re-order the patches when applying...
Regards,
Yann E. MORIN.Quoted 21 lines
Signed-off-by Fabrice Fontaine <[email protected]>--- package/log4cxx/Config.in | 2 -- 1 file changed, 2 deletions(-)package/log4cxx/Config.in +0
-3@@ -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 --2.33.0
Quoted 4 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot--
.-----------------.--------------------.------------------.--------------------.Quoted 5 lines
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |'------------------------------^-------^------------------^--------------------'
Best Regards,
Fabrice
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot