Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 764047 - app-crypt/qca-2.3.1 fails to build with gcc-11
Summary: app-crypt/qca-2.3.1 fails to build with gcc-11
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
Keywords: PullRequest, UPSTREAM
Depends on:
Blocks: gcc-11
  Show dependency tree
Reported: 2021-01-06 08:37 UTC by andy
Modified: 2021-01-24 13:03 UTC (History)
2 users (show)

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

build.log (build.log,213.06 KB, text/plain)
2021-01-06 08:37 UTC, andy

Note You need to log in before you can comment on or make changes to this bug.
Description andy 2021-01-06 08:37:44 UTC
Created attachment 681400 [details]

app-crypt/qca fails to build with gcc-11 with :

In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/include/g++-v11/bits/shared_ptr.h:53,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/include/g++-v11/condition_variable:43,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/include/g++-v11/future:39,
                 from /usr/include/qt5/QtCore/qthread.h:51,
                 from /usr/include/qt5/QtCore/QThread:1,
                 from ../qca-2.3.1/include/QtCrypto/qca_support.h:47,
                 from ../qca-2.3.1/include/QtCrypto/qca_core.h:43,
                 from ../qca-2.3.1/src/qca_default.cpp:22:
/usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/include/g++-v11/bits/shared_ptr_base.h:310:11: note: ‘std::__shared_ptr’ declared here
  310 |     class __shared_ptr;
      |           ^~~~~~~~~~~~
Comment 1 Ionen Wolkens gentoo-dev 2021-01-07 17:17:07 UTC
Even if they had no impact here (can reproduce with gcc-11.0.9999-d54be5a), when testing gcc-related issues it would preferable to report with normal *FLAGS rather than GentooLTO's
Comment 2 andy 2021-01-11 17:26:02 UTC
i can confirm that PR :
works and it is now compiled with gcc-11 from my side
Comment 3 Larry the Git Cow gentoo-dev 2021-01-24 13:03:44 UTC
The bug has been closed via the following commit(s):

commit a2d112f5512cc3cb26f25a12085cc4be6ccc13f1
Author:     Andreas Sturmlechner <>
AuthorDate: 2021-01-11 00:28:36 +0000
Commit:     Andreas Sturmlechner <>
CommitDate: 2021-01-24 13:03:15 +0000

    app-crypt/qca: Fix build with GCC-11
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Andreas Sturmlechner <>

 app-crypt/qca/files/qca-2.3.1-gcc11.patch | 30 ++++++++++++++++++++++++++++++
 app-crypt/qca/qca-2.3.1.ebuild            |  7 +++++--
 2 files changed, 35 insertions(+), 2 deletions(-)