bsc-performance-tools / extrae

Instrumentation framework to generate execution traces of the most used parallel runtimes.
https://tools.bsc.es/extrae
GNU Lesser General Public License v2.1
58 stars 35 forks source link

Getting unknown type name error while running make during installation #71

Closed qooiprww closed 1 year ago

qooiprww commented 1 year ago
common/bfd_manager.c:228:78: error: unknown type name ‘PTR’
  228 | static void BFDmanager_findAddressInSection (bfd * abfd, asection * section, PTR data)
      |                                                                              ^~~
common/bfd_manager.c: In function ‘BFDmanager_translateAddress’:
common/bfd_manager.c:300:36: error: ‘BFDmanager_findAddressInSection’ undeclared (first use in this function)

Added below line in common/bfd_manager.c for it to work:

#define PTR char*
rodarima commented 1 year ago

Same problem with 4.0.1 @gllort @emercadal. Here is the line:

https://github.com/bsc-performance-tools/extrae/blob/master/src/merger/common/bfd_manager.c#L228

rodarima commented 1 year ago

I used this patch:

diff --git a/src/merger/common/bfd_manager.c b/src/merger/common/bfd_manager.c
index 5f9dacf9..5231e3eb 100644
--- a/src/merger/common/bfd_manager.c
+++ b/src/merger/common/bfd_manager.c
@@ -225,7 +225,7 @@ asymbol **BFDmanager_getDefaultSymbols (void)
  *
  * @return No return value.
  */
-static void BFDmanager_findAddressInSection (bfd * abfd, asection * section, PTR data)
+static void BFDmanager_findAddressInSection (bfd * abfd, asection * section, void * data)
 {
 #if HAVE_BFD_GET_SECTION_SIZE || HAVE_BFD_SECTION_SIZE || HAVE_BFD_GET_SECTION_SIZE_BEFORE_RELOC
    bfd_size_type size;
gllort commented 1 year ago

Already solved in https://github.com/bsc-performance-tools/extrae/commit/5eb2a8ad56aca035b1e13b021a944143e59e6b4a