Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 786456 - app-admin/lnav-0.9.0 fails to compile with gcc-11
Summary: app-admin/lnav-0.9.0 fails to compile with gcc-11
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Randy Barlow
Keywords: PullRequest
Depends on:
Blocks: gcc-11
  Show dependency tree
Reported: 2021-04-28 13:33 UTC by Agostino Sarubbo
Modified: 2021-09-19 16:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

build.log (build.log,20.12 KB, text/plain)
2021-04-28 13:33 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-04-28 13:33:12 UTC

Issue: app-admin/lnav-0.9.0 fails to compile with gcc-11.
Discovered on: amd64 (internal ref: tinderbox)

This machine uses GCC-11:
Comment 1 Agostino Sarubbo gentoo-dev 2021-04-28 13:33:14 UTC
Created attachment 703254 [details]

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-04-28 13:33:16 UTC
Possible context of error(s):

opt_util.hh:66:1: error: ‘optional_constexpr’ does not name a type
Comment 3 Randy Barlow 2021-05-25 02:25:46 UTC
Thank you for the report! I have filed an issue about this upstream:
Comment 4 Larry the Git Cow gentoo-dev 2021-07-13 21:49:21 UTC
The bug has been closed via the following commit(s):

commit 9a20a3a9e2db20d380c803c01e5f5ec0e19af2ab
Author:     Randy Barlow <>
AuthorDate: 2021-06-27 01:31:56 +0000
Commit:     Sam James <>
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.
    Package-Manager: Portage-3.0.18, Repoman-3.0.2
    Signed-off-by: Randy Barlow <>
    Signed-off-by: Sam James <>

 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(+)
Comment 5 Larry the Git Cow gentoo-dev 2021-09-19 16:48:13 UTC
The bug has been referenced in the following commit(s):

commit 9cf98809101468927b650eadd5ad2c0d27c435e8
Author:     Andreas K. Hüttel <>
AuthorDate: 2021-09-19 12:43:42 +0000
Commit:     Andreas K. Hüttel <>
CommitDate: 2021-09-19 16:47:53 +0000

    app-admin/lnav: Remove old
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Andreas K. Huettel <>

 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(-)