Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 764647 - dev-cpp/benchmark: build failure on gcc-11
Summary: dev-cpp/benchmark: build failure on gcc-11
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Breathitt Gray
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-01-09 19:03 UTC by Sergei Trofimovich (RETIRED)
Modified: 2021-01-11 17:47 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2021-01-09 19:03:07 UTC
benchmark fails to build on gcc-11 as:

```
benchmark/src/benchmark_register.h:17:30:
  error: 'numeric_limits' is not a member of 'std'
   17 |   static const T kmax = std::numeric_limits<T>::max();
      |                              ^~~~~~~~~~~~~~
```

Fixed upstream as: https://github.com/google/benchmark/commit/3d1c2677686718d906f28c1d4da001c42666e6d2.patch
Comment 1 Larry the Git Cow gentoo-dev 2021-01-11 17:47:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4add4f893cf2fb16b18d3c15bc9948a80802b66f

commit 4add4f893cf2fb16b18d3c15bc9948a80802b66f
Author:     William Breathitt Gray <vilhelm.gray@gmail.com>
AuthorDate: 2021-01-09 21:37:54 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-01-11 17:45:25 +0000

    dev-cpp/benchmark: Add patch to fix build failure on gcc-11
    
    Closes: https://bugs.gentoo.org/764647
    Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/19012
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-cpp/benchmark/benchmark-1.5.2.ebuild           |  4 +++
 ...chmark-1.5.2-Add-missing-limits-inclusion.patch | 30 ++++++++++++++++++++++
 2 files changed, 34 insertions(+)