Summary: | sys-devel/llvm-roc-4.1.0 fails to compile with gcc-11: " 'numeric_limits' is not a member of 'std'" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jack <ostroffjh> |
Component: | Current packages | Assignee: | Craig Andrews <candrews> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ionen |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=786201 https://bugs.gentoo.org/show_bug.cgi?id=790665 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 732706 | ||
Attachments: |
build.log (gzipped because of size)
emerge --info patch |
Description
Jack
2021-05-01 22:49:46 UTC
Created attachment 705084 [details]
build.log (gzipped because of size)
Created attachment 705090 [details]
emerge --info
Created attachment 705096 [details, diff]
patch
I don't know if I made the patch from the correct level under .../work/...
Thanks for the fix. Adding just <limits> was enough to work for me. --- a/llvm/utils/benchmark/src/benchmark_register.h 2021-03-29 13:25:18.000000000 -0400 +++ b/llvm/utils/benchmark/src/benchmark_register.h 2021-05-02 09:25:32.705409506 -0400 @@ -1,6 +1,7 @@ #ifndef BENCHMARK_REGISTER_H #define BENCHMARK_REGISTER_H +#include <limits> #include <vector> #include "check.h" Upstream already has this patch: https://github.com/RadeonOpenCompute/llvm-project/commit/b498303066a63a203d24f739b2d2e0e56dca70d1 The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2316f6905026dd1d4e8f400d26f5046bb63b6b1 commit d2316f6905026dd1d4e8f400d26f5046bb63b6b1 Author: Craig Andrews <candrews@gentoo.org> AuthorDate: 2021-05-02 20:46:55 +0000 Commit: Craig Andrews <candrews@gentoo.org> CommitDate: 2021-05-02 20:47:42 +0000 sys-devel/llvm-roc: Fix missing include Fixes building with GCC 11 Closes: https://bugs.gentoo.org/787569 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Craig Andrews <candrews@gentoo.org> .../files/llvm-roc-4.1.0-fix-missing-include.patch | 21 +++++++++++++++++++++ sys-devel/llvm-roc/llvm-roc-4.1.0.ebuild | 1 + sys-devel/llvm-roc/llvm-roc-4.1.1.ebuild | 1 + 3 files changed, 23 insertions(+) Thank you for reporting this issue and for sharing the fix for it! I'm finding more with the same issue/fix. Is there someplace I can just report them, or do I need to open a new bug for each? (In reply to Jack from comment #8) > I'm finding more with the same issue/fix. Is there someplace I can just > report them, or do I need to open a new bug for each? Assuming the issue is in different packages, it would be best to report a new bug for each. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=362024ac2c699a8f0da19fb1777bdd30fd3b99e2 commit 362024ac2c699a8f0da19fb1777bdd30fd3b99e2 Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2021-09-20 17:37:53 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2021-09-20 17:50:46 +0000 sys-devel/llvm-roc: Remove old Bug: https://bugs.gentoo.org/787569 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org> sys-devel/llvm-roc/Manifest | 6 -- sys-devel/llvm-roc/llvm-roc-3.10.0.ebuild | 70 ---------------------- sys-devel/llvm-roc/llvm-roc-3.7.0-r1.ebuild | 63 ------------------- sys-devel/llvm-roc/llvm-roc-3.8.0.ebuild | 69 --------------------- sys-devel/llvm-roc/llvm-roc-3.9.0.ebuild | 70 ---------------------- sys-devel/llvm-roc/llvm-roc-4.0.0-r2.ebuild | 93 ----------------------------- sys-devel/llvm-roc/llvm-roc-4.0.0.ebuild | 91 ---------------------------- sys-devel/llvm-roc/llvm-roc-4.0.1.ebuild | 93 ----------------------------- 8 files changed, 555 deletions(-) |