Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 811312 - dev-qt/qtwebengine: building with glibc 2.34 fails (error: no matching function for call to 'max(long int, int)')
Summary: dev-qt/qtwebengine: building with glibc 2.34 fails (error: no matching functi...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
Keywords: PATCH
Depends on:
Blocks: glibc-2.34
  Show dependency tree
Reported: 2021-09-01 06:55 UTC by Nik
Modified: 2021-09-14 16:26 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Nik 2021-09-01 06:55:11 UTC
Building the qtwebengine package with glibc 2.34 fails with the given error:
(I am aware that building with glibc 2.34 is not yet supported on gentoo, but I decided to still report the issue if anyone else decides to do so)

/ In function 'bool absl::SetupAlternateStackOnce()':
../../../../git/src/3rdparty/chromium/third_party/abseil-cpp/absl/debugging/ error: no matching function for call to 'max(long int, int)'
  138 |   size_t stack_size = (std::max(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
      |                        ~~~~~~~~^~~~~~~~~~~~~~~~~

Applying the following patches solves the issue:
Comment 1 Larry the Git Cow gentoo-dev 2021-09-14 16:26:59 UTC
The bug has been closed via the following commit(s):

commit b56861f5b733a3ebced1ad5bf58e0299c31b25a0
Author:     Andreas Sturmlechner <>
AuthorDate: 2021-09-14 16:25:57 +0000
Commit:     Andreas Sturmlechner <>
CommitDate: 2021-09-14 16:26:40 +0000

    dev-qt/qtwebengine: Fix build with GLIBC-2.34
    Thanks-to: Nik <>
    Package-Manager: Portage-3.0.23, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <> | 72 ++++++++++++++++++++++
 ...gine-5.15.2_p20210824-breakpad-glibc-2.34.patch | 72 ++++++++++++++++++++++
 .../qtwebengine-5.15.2_p20210824.ebuild            |  2 +
 3 files changed, 146 insertions(+)