Hi Leon,
Given that the email was stuck in moderation for some time I'm not sure if you
already received an answer to your question or not, but if not I'd like to
refer you to my reply from the hpx-users list:
http://mail.cct.lsu.edu/pipermail/hpx-devel/2020-November/000577.html. The main
question is what build type you used when building HPX. If Debug or
RelWithDebInfo HPX should have debug symbols, if Release it would not have
debug symbols.
Let us know if you're still having problems with getting debug symbols to show
up.
Mikael
From: hpx-users-boun...@stellar-group.org
on behalf of Hartmut Kaiser
Sent: Friday, December 18, 2020 8:10:03 PM
To: hpx-users@stellar-group.org
Cc: 'Leon Seifert'
Subject: Re: [hpx-users] Score-P wrapping of HPX
Leon,
I apologize for the very long delay in answering your email - it was stuck in
the email list moderation queue without me noticing. I hope that somebody will
now be able to answer your questions.
Regards Hartmut
---
http://stellar.cct.lsu.edu
https://github.com/STEllAR-GROUP/hpx
From: hpx-users-boun...@stellar-group.org
On Behalf Of Leon Seifert
Sent: Friday, November 6, 2020 6:50 AM
To: hpx-us...@stellar.cct.lsu.edu
Subject: [hpx-users] Score-P wrapping of HPX
Dear HPX Developers,
for my Master Thesis I want to wrap the HPX Library with Score-P, in order to
enable Score-P to trace Applications, which are using HPX. While doing this I
encountered the Problem, that Score-P cannot find any of the Symbols of HPX.
And my Question is, if you have any experience using Score-P and HPX or any
Idea, why I might not be able to find these Symbols.
A list of the existing Symbols is given by: "nm -D --defined
/opt/hpx/lib/libhpx.so". One of these is: "_ZN3hpx7runtime8finalizeEd". The
problem is that the "make check" of "scorep-libwrap-init" cannot find any of
the 1688 Symbols which should be in my example Code. The Output for one missing
Symbol is below this email. When wrapping other Libraries, like OpenBLAS, all
Symbols are found.
In case you need more information about my HPX build or other factors, I am
happy to send more.
Thank you very much for your work!
Greetings,
Leon Seifert
In the following example all Symbols except "_ZN3hpx7runtime8finalizeEd" were
filtered out:
leon@DESKTOP-0GMJBKS:/ ... /cse_ma_scorep_hpx/hpx_libwrap$ make check V=1
g++ -o symbol_check symbol_check.cc -DHPX_APPLICATION_EXPORTS
-DHPX_DISABLE_ASSERTS -DBOOST_DISABLE_ASSERTS -DHPX_DISABLE_ASSERTS
-DBOOST_DISABLE_ASSERTS -std=c++14 -I/opt/hpx/include -L/opt/hpx/lib
/opt/hpx/lib/libhpx.so.1.6.0 /opt/hpx/lib/libhpx_core.so -lboost_system
-ltcmalloc_minimal -lhwloc -lboost_filesystem
/opt/hpx/lib/libhpx_parallelism.so -lboost_program_options
/opt/hpx/lib/libhpx_wrap.a -Wl,-wrap=main /opt/hpx/lib/libhpx_init.a -lpthread
-latomic -ldl -lrt
/usr/bin/ld: /opt/hpx/lib/libhpx.so.1.6.0: undefined reference to symbol
'_ZN5boost15program_options19options_description21m_default_line_lengthE'
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libboost_program_options.so:
error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
MISSING _ZN3hpx7runtime8finalizeEd
[Score-P] Error: Symbols that are not present in the target library have been
[Score-P]wrapped. The filter file 'missing.filter' containing these
[Score-P]symbols has been created. Reconsider your wrapper settings, or
[Score-P]add these symbols to hpx_wrapper.filter if they should not be
[Score-P]wrapped. Then repeat 'make' and 'make check'.
Makefile:277: recipe for target 'check' failed
make: *** [check] Error 1
___
hpx-users mailing list
hpx-users@stellar-group.org
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users