https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: app-admin/lnav-0.9.0 fails to compile with gcc-11. Discovered on: amd64 (internal ref: tinderbox) NOTE: This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
Created attachment 703254 [details] build.log build log and emerge --info
Possible context of error(s): opt_util.hh:66:1: error: ‘optional_constexpr’ does not name a type
Thank you for the report! I have filed an issue about this upstream: https://github.com/tstack/lnav/issues/864
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a20a3a9e2db20d380c803c01e5f5ec0e19af2ab commit 9a20a3a9e2db20d380c803c01e5f5ec0e19af2ab Author: Randy Barlow <randy@electronsweatshop.com> AuthorDate: 2021-06-27 01:31:56 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-07-13 21:49:06 +0000 app-admin/lnav: Backport to build with gcc-11 This commit partially[0] backports a patch from upstream[1][2] to allow lnav to build with gcc-11. This patch was tested with gcc-10.2.0-r5 and gcc-11.1.0. [0] Only the changes to m4/ax_cxx_compile_stdcxx.m4 were necessary to address the gcc-11 fix. [1] https://github.com/tstack/lnav/issues/864 [2] https://github.com/tstack/lnav/commit/8f7b08c9c5d1b30ca2b91dbfdb13f4dfa5326f95 Closes: https://bugs.gentoo.org/786456 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Randy Barlow <randy@electronsweatshop.com> Closes: https://github.com/gentoo/gentoo/pull/20975 Signed-off-by: Sam James <sam@gentoo.org> app-admin/lnav/files/lnav-0.9.0-bug786456.patch | 561 ++++++++++++++++++++++++ app-admin/lnav/lnav-0.9.0-r1.ebuild | 3 + 2 files changed, 564 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cf98809101468927b650eadd5ad2c0d27c435e8 commit 9cf98809101468927b650eadd5ad2c0d27c435e8 Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2021-09-19 12:43:42 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2021-09-19 16:47:53 +0000 app-admin/lnav: Remove old Bug: https://bugs.gentoo.org/786456 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org> app-admin/lnav/Manifest | 1 - app-admin/lnav/lnav-0.8.5-r1.ebuild | 39 ------------------------------- app-admin/lnav/lnav-0.9.0-r2.ebuild | 46 ------------------------------------- 3 files changed, 86 deletions(-)