hpctoolkit: fix patch from #22864 (#23149)

PR #22864 added a patch to hpctoolkit to fix an issue with gcc 10.x, and the patch was applied to all revs unconditionally.  But this was fixed in hpctoolkit master on Aug 11, 2020, so the patch should only apply to old revs.

Fixes #22951.
This commit is contained in:
Mark W. Krentel 2021-04-22 20:07:13 -05:00 committed by GitHub
parent 010e5761d6
commit 09028f7407
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 6 deletions

View file

@ -0,0 +1,15 @@
See: https://github.com/HPCToolkit/hpctoolkit/issues/309
diff --git a/src/tool/hpcrun/gpu/gpu-metrics.h b/src/tool/hpcrun/gpu/gpu-metrics.h
index ea0958156..fa3bceab1 100644
--- a/src/tool/hpcrun/gpu/gpu-metrics.h
+++ b/src/tool/hpcrun/gpu/gpu-metrics.h
@@ -61,7 +61,7 @@
//*****************************************************************************
-enum {
+typedef enum {
GPU_INST_STALL_ANY = 0
} gpu_inst_stall_all_t;

View file

@ -113,12 +113,8 @@ class Hpctoolkit(AutotoolsPackage):
conflicts('^binutils@2.35:2.35.1',
msg='avoid binutils 2.35 and 2.35.1 (spews errors)')
# Fixes multiple definition error with GCC 10.
# https://github.com/HPCToolkit/hpctoolkit/issues/309
patch('https://github.com/blue42u/hpctoolkit/commit/'
'b3f6f9e4846d9256cf0d841465ff89d78c6bf422.patch',
when='%gcc@10',
sha256='f8507c3ce9672c70c2db9f9deb5766c8120ea06e20866d0f553a17866e810b91')
# Fix the build for old revs with gcc 10.x.
patch('gcc10-enum.patch', when='@2020.01.01:2020.08.99 %gcc@10.0:')
flag_handler = AutotoolsPackage.build_system_flags