Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion easybuild/easyconfigs/s/Score-P/Score-P-6.0-gompi-2020a.eb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
##
# This is an easyconfig file for EasyBuild, see https://github.com/easybuilders/easybuild
# Copyright:: Copyright 2013-2019 Juelich Supercomputing Centre, Germany
# Copyright:: Copyright 2013-2020 Juelich Supercomputing Centre, Germany
# Authors:: Bernd Mohr <[email protected]>
# Markus Geimer <[email protected]>
# License:: 3-clause BSD
Expand All @@ -23,8 +23,10 @@ toolchain = {'name': 'gompi', 'version': '2020a'}

source_urls = ['https://www.vi-hps.org/cms/upload/packages/scorep/']
sources = ['scorep-%(version)s.tar.gz']
patches = ['Score-P-6.0_binutils_2.34_api_change.patch']
checksums = [
'5dc1023eb766ba5407f0b5e0845ec786e0021f1da757da737db1fb71fc4236b8', # scorep-6.0.tar.gz
'd5a5208077f60850d61a230c3a2d5e0d46ac0b5ec962904cba3010b9a904b59f', # Score-P-6.0_binutils_2.34_api_change.patch
]

dependencies = [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Support libbfd API change introduced with binutils 2.34. Patch backported
from upstream repo; fix will be included in releases after v6.0.
--- a/src/services/unwinding/scorep_unwinding_unify.c
+++ b/src/services/unwinding/scorep_unwinding_unify.c
@@ -28,6 +28,19 @@

#if HAVE( LIBBFD )
#include <bfd.h>
+
+#ifndef bfd_get_section_size
+#define bfd_get_section_size( asection ) bfd_section_size( asection )
+#endif
+
+#ifndef bfd_get_section_vma
+#define bfd_get_section_vma( abfd, asection ) bfd_section_vma( asection )
+#endif
+
+#ifndef bfd_get_section_flags
+#define bfd_get_section_flags( abfd, asection ) bfd_section_flags( asection )
+#endif
+
#endif

#include "scorep_unwinding_region.h"