Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make failed with dyninst installed #92

Open
elena9243 opened this issue Nov 1, 2023 · 2 comments
Open

make failed with dyninst installed #92

elena9243 opened this issue Nov 1, 2023 · 2 comments

Comments

@elena9243
Copy link

elena9243 commented Nov 1, 2023

make[4]: Entering directory '/home/my_dir/tools/extrae_install/extrae-4.0.4/src/launcher/dyninst'
CXX extrae-commonSnippets.o
In file included from /home/my_dir/dyninst_dir/dyninst_dir/include/concurrent.h:42,
from /home/my_dir/dyninst_dir/dyninst_dir/include/Type.h:40,
from /home/my_dir/dyninst_dir/dyninst_dir/include/BPatch_type.h:40,
from /home/my_dir/dyninst_dir/dyninst_dir/include/BPatch_image.h:38,
from /home/my_dir/dyninst_dir/dyninst_dir/include/BPatch_thread.h:38,
from /home/my_dir/dyninst_dir/dyninst_dir/include/BPatch.h:38,
from commonSnippets.h:29,
from commonSnippets.C:49:
/mnt/sdz/Render/Falcor/external/packman/deps/include/tbb/concurrent_hash_map.h: In constructor ‘tbb::interface5::internal::hash_map_base::hash_map_base()’:
/mnt/sdz/Render/Falcor/external/packman/deps/include/tbb/concurrent_hash_map.h:131:24: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct tbb::interface 5::internal::hash_map_base::bucket’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
131 | std::memset(my_embedded_segment, 0, sizeof(my_embedded_segment));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/sdz/Render/Falcor/external/packman/deps/include/tbb/concurrent_hash_map.h:93:16: note: ‘struct tbb::interface5::internal::hash_map_base::bucket’ declared here
93 | struct bucket : tbb::internal::no_copy {
| ^~~~~~
commonSnippets.C: In function ‘std::string decodeBasicBlocks(BPatch_function*, std::string)’:
commonSnippets.C:486:34: error: no match for ‘operator=’ (operand types are ‘Dyninst::InstructionAPI::Instruction::Ptr’ {aka ‘boost::shared_ptr<Dyninst::InstructionAPI::Instruction >’} and ‘Dyninst::InstructionAPI::Instruction’)
486 | while((insn = dec.decode())) {

| ^
In file included from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/weak_ptr.hpp:17,
from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/enable_shared_from_this.hpp:16,
from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/enable_shared_from_this.hpp:16,
from /home/my_dir/dyninst_dir/dyninst_dir/include/InstructionAST.h:42,
from /home/my_dir/dyninst_dir/dyninst_dir/include/Expression.h:35,
from /home/my_dir/dyninst_dir/dyninst_dir/include/Instruction.h:41,
from /home/my_dir/dyninst_dir/dyninst_dir/include/BPatch_point.h:57,
from commonSnippets.C:48:
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:592:18: note: candidate: ‘template boost::shared_ptr& boost::shared_ptr::operator =(const boost::shared_ptr&) [with Y = Y; T = Dyninst::InstructionAPI::Instruction]’
592 | shared_ptr & operator=(shared_ptr const & r) BOOST_SP_NOEXCEPT
| ^~~~~~~~
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:592:18: note: template argument deduction/substitution failed:
commonSnippets.C:486:34: note: ‘Dyninst::InstructionAPI::Instruction’ is not derived from ‘const boost::shared_ptr’
486 | while((insn = dec.decode())) {
| ^
In file included from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/weak_ptr.hpp:17,
from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/enable_shared_from_this.hpp:16,
from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/enable_shared_from_this.hpp:16,
from /home/my_dir/dyninst_dir/dyninst_dir/include/InstructionAST.h:42,
from /home/my_dir/dyninst_dir/dyninst_dir/include/Expression.h:35,
from /home/my_dir/dyninst_dir/dyninst_dir/include/Instruction.h:41,
from /home/my_dir/dyninst_dir/dyninst_dir/include/BPatch_point.h:57,
from commonSnippets.C:48:
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:603:18: note: candidate: ‘template boost::shared_ptr& boost::shared_ptr::operator =(std::auto_ptr<_Up>&) [with Y = Y; T = Dyninst::InstructionAPI::Instruction]’
603 | shared_ptr & operator=( std::auto_ptr & r )
| ^~~~~~~~
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:603:18: note: template argument deduction/substitution failed:
commonSnippets.C:486:34: note: ‘Dyninst::InstructionAPI::Instruction’ is not derived from ‘std::auto_ptr’
486 | while((insn = dec.decode())) {
| ^
In file included from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/weak_ptr.hpp:17,
from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/enable_shared_from_this.hpp:16,
from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/enable_shared_from_this.hpp:16,
from /home/my_dir/dyninst_dir/dyninst_dir/include/InstructionAST.h:42,
from /home/my_dir/dyninst_dir/dyninst_dir/include/Expression.h:35,
from /home/my_dir/dyninst_dir/dyninst_dir/include/Instruction.h:41,
from /home/my_dir/dyninst_dir/dyninst_dir/include/BPatch_point.h:57,
from commonSnippets.C:48:
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:612:18: note: candidate: ‘template boost::shared_ptr& boost::shared_ptr::operator =(std::auto_ptr<_Up>&&) [with Y = Y; T = Dyninst::InstructionAPI::Instruction]’
612 | shared_ptr & operator=( std::auto_ptr && r )
| ^~~~~~~~
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:612:18: note: template argument deduction/substitution failed:
commonSnippets.C:486:34: note: ‘Dyninst::InstructionAPI::Instruction’ is not derived from ‘std::auto_ptr’
486 | while((insn = dec.decode())) {
| ^
In file included from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/weak_ptr.hpp:17,
from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/enable_shared_from_this.hpp:16,
from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/enable_shared_from_this.hpp:16,
from /home/my_dir/dyninst_dir/dyninst_dir/include/InstructionAST.h:42,
from /home/my_dir/dyninst_dir/dyninst_dir/include/Expression.h:35,
from /home/my_dir/dyninst_dir/dyninst_dir/include/Instruction.h:41,
from /home/my_dir/dyninst_dir/dyninst_dir/include/BPatch_point.h:57,
from commonSnippets.C:48:
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:634:18: note: candidate: ‘template<class Y, class D> boost::shared_ptr& boost::shared_ptr: :operator=(std::unique_ptr<_Up, _Ep>&&) [with Y = Y; D = D; T = Dyninst::InstructionAPI::Instruction]’
634 | shared_ptr & operator=( std::unique_ptr<Y, D> && r )
| ^~~~~~~~
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:634:18: note: template argument deduction/substitution failed:
commonSnippets.C:486:34: note: ‘Dyninst::InstructionAPI::Instruction’ is not derived from ‘std::unique_ptr<_Tp, _Dp>’
486 | while((insn = dec.decode())) {
| ^
In file included from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/weak_ptr.hpp:17,
from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/enable_shared_from_this.hpp:16,
from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/enable_shared_from_this.hpp:16,
from /home/my_dir/dyninst_dir/dyninst_dir/include/InstructionAST.h:42,
from /home/my_dir/dyninst_dir/dyninst_dir/include/Expression.h:35,
from /home/my_dir/dyninst_dir/dyninst_dir/include/Instruction.h:41,
from /home/my_dir/dyninst_dir/dyninst_dir/include/BPatch_point.h:57,
from commonSnippets.C:48:
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:643:18: note: candidate: ‘template<class Y, class D> boost::shared_ptr& boost::shared_ptr: :operator=(boost::movelib::unique_ptr<Y, D>) [with Y = Y; D = D; T = Dyninst::InstructionAPI::Instruction]’
643 | shared_ptr & operator=( boost::movelib::unique_ptr<Y, D> r )
| ^~~~~~~~
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:643:18: note: template argument deduction/substitution failed:
commonSnippets.C:486:34: note: ‘Dyninst::InstructionAPI::Instruction’ is not derived from ‘boost::movelib::unique_ptr<Y, D>’
486 | while((insn = dec.decode())) {
| ^
In file included from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/weak_ptr.hpp:17,
from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/enable_shared_from_this.hpp:16,
from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/enable_shared_from_this.hpp:16,
from /home/my_dir/dyninst_dir/dyninst_dir/include/InstructionAST.h:42,
from /home/my_dir/dyninst_dir/dyninst_dir/include/Expression.h:35,
from /home/my_dir/dyninst_dir/dyninst_dir/include/Instruction.h:41,
from /home/my_dir/dyninst_dir/dyninst_dir/include/BPatch_point.h:57,
from commonSnippets.C:48:
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:701:18: note: candidate: ‘template boost::shared_ptr& boost::shared_ptr::operator =(boost::shared_ptr&&) [with Y = Y; T = Dyninst::InstructionAPI::Instruction]’
701 | shared_ptr & operator=( shared_ptr && r ) BOOST_SP_NOEXCEPT
| ^~~~~~~~
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:701:18: note: template argument deduction/substitution failed:
commonSnippets.C:486:34: note: ‘Dyninst::InstructionAPI::Instruction’ is not derived from ‘boost::shared_ptr’
486 | while((insn = dec.decode())) {
| ^
In file included from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/weak_ptr.hpp:17,
from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/enable_shared_from_this.hpp:16,
from /mnt/sdz/Render/Falcor/external/packman/deps/include/boost/enable_shared_from_this.hpp:16,
from /home/my_dir/dyninst_dir/dyninst_dir/include/InstructionAST.h:42,
from /home/my_dir/dyninst_dir/dyninst_dir/include/Expression.h:35,
from /home/my_dir/dyninst_dir/dyninst_dir/include/Instruction.h:41,
from /home/my_dir/dyninst_dir/dyninst_dir/include/BPatch_point.h:57,
from commonSnippets.C:48:
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:583:18: note: candidate: ‘boost::shared_ptr& boost::shared_ptr::operator=(const boost::sha red_ptr&) [with T = Dyninst::InstructionAPI::Instruction]’
583 | shared_ptr & operator=( shared_ptr const & r ) BOOST_SP_NOEXCEPT
| ^~~~~~~~
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:583:48: note: no known conversion for argument 1 from ‘Dyninst::InstructionAPI::Instruction’ t o ‘const boost::shared_ptrDyninst::InstructionAPI::Instruction&’
583 | shared_ptr & operator=( shared_ptr const & r ) BOOST_SP_NOEXCEPT
| ~~~~~~~~~~~~~~~~~~~^
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:694:18: note: candidate: ‘boost::shared_ptr& boost::shared_ptr::operator=(boost::shared_pt r&&) [with T = Dyninst::InstructionAPI::Instruction]’
694 | shared_ptr & operator=( shared_ptr && r ) BOOST_SP_NOEXCEPT
| ^~~~~~~~
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:694:43: note: no known conversion for argument 1 from ‘Dyninst::InstructionAPI::Instruction’ t o ‘boost::shared_ptrDyninst::InstructionAPI::Instruction&&’
694 | shared_ptr & operator=( shared_ptr && r ) BOOST_SP_NOEXCEPT
| ~~~~~~~~~~~~~~^
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:719:18: note: candidate: ‘boost::shared_ptr& boost::shared_ptr::operator=(boost::detail::s p_nullptr_t) [with T = Dyninst::InstructionAPI::Instruction; boost::detail::sp_nullptr_t = std::nullptr_t]’
719 | shared_ptr & operator=( boost::detail::sp_nullptr_t ) BOOST_SP_NOEXCEPT
| ^~~~~~~~
/mnt/sdz/Render/Falcor/external/packman/deps/include/boost/smart_ptr/shared_ptr.hpp:719:29: note: no known conversion for argument 1 from ‘Dyninst::InstructionAPI::Instruction’ t o ‘boost::detail::sp_nullptr_t’ {aka ‘std::nullptr_t’}
719 | shared_ptr & operator=( boost::detail::sp_nullptr_t ) BOOST_SP_NOEXCEPT
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:1045: extrae-commonSnippets.o] Error 1
make[4]: Leaving directory '/home/my_dir/tools/extrae_install/extrae-4.0.4/src/launcher/dyninst'
make[3]: *** [Makefile:792: all-recursive] Error 1
make[3]: Leaving directory '/home/my_dir/tools/extrae_install/extrae-4.0.4/src/launcher'
make[2]: *** [Makefile:795: all-recursive] Error 1
make[2]: Leaving directory '/home/my_dir/tools/extrae_install/extrae-4.0.4/src'
make[1]: *** [Makefile:1275: all-recursive] Error 1
make[1]: Leaving directory '/home/my_dir/tools/extrae_install/extrae-4.0.4'
make: *** [Makefile:1207: all] Error 2

@elena9243
Copy link
Author

elena9243 commented Nov 6, 2023

Steps:
(1)I installed Dyninst with Version 10.1.0
(2)And then I ran extrae configure with the parameter: --with-dyninst=/dyninst_dir
(3) then I did make, and the above error occured.

In "README", I see Support is in experimental status. It is known to work on Linux PPC32/64
systems and on Linux x86/x86_64 systems.

I am on Linux x86_64 system~

@hainest
Copy link

hainest commented Oct 9, 2024

Instruction::Ptr was removed from Dyninst in 10.0.0. This was fixed in extrae by 53e74b1. If you have any troubles with Dyninst, please submit an issue at dyninst/dyninst and I'd be happy to help.

@gllort I think this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants