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
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Randy Barlow
URL: https://github.com/tstack/lnav/issues...
Whiteboard:
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: ---


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

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
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
Comment 1 Agostino Sarubbo gentoo-dev 2021-04-28 13:33:14 UTC
Created attachment 703254 [details]
build.log

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: https://github.com/tstack/lnav/issues/864
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):

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

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