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

Bug 811312

Summary: dev-qt/qtwebengine: building with glibc 2.34 fails (error: no matching function for call to 'max(long int, int)')
Product: Gentoo Linux Reporter: Nik <nik_cro>
Component: Current packagesAssignee: Qt Bug Alias <qt>
Severity: normal CC: gyakovlev, xavier.miller
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 803482    

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