Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 786534

Summary: app-arch/advancecomp-2.2_pre20190301 fails to compile with gcc-11
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Michał Górny <mgorny>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/amadvance/advancecomp/pull/6
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2021-04-28 19:21:24 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-arch/advancecomp-2.2_pre20190301 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 19:21:26 UTC
Created attachment 703446 [details]
build.log

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

file.h:70:43: error: ISO C++17 does not allow dynamic exception specifications
Comment 3 Matt Whitlock 2021-04-29 17:16:19 UTC
Dropping this patch…

  https://github.com/amadvance/advancecomp/pull/6.patch

…into /etc/portage/patches/app-arch/advancecomp-2.2_pre20190301/ allows the build to complete successfully.

Thanks, Michał.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-29 17:17:56 UTC
Merged upstream.
Comment 5 Larry the Git Cow gentoo-dev 2021-04-29 19:56:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30eb83dd80937406bc984e5834b82e73f8738be3

commit 30eb83dd80937406bc984e5834b82e73f8738be3
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2021-04-29 18:41:13 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2021-04-29 19:55:43 +0000

    app-arch/advancecomp: Backport C++17 (GCC 11) fix
    
    Closes: https://bugs.gentoo.org/786534
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../advancecomp/advancecomp-2.2_pre20190301.ebuild |   7 +-
 .../files/advancecomp-2.2_pre20190301-gcc-11.patch | 184 +++++++++++++++++++++
 2 files changed, 189 insertions(+), 2 deletions(-)