Skip to content

Fix configuration errors when using external Boost#8

Closed
jbelloncastro wants to merge 1 commit intodyninst_13from
users/jbelloncastro/fix-find-boost
Closed

Fix configuration errors when using external Boost#8
jbelloncastro wants to merge 1 commit intodyninst_13from
users/jbelloncastro/fix-find-boost

Conversation

@jbelloncastro
Copy link
Copy Markdown

Motivation

Enables configuring rocprof-systems with an external Boost library (ROCPROFSYS_BUILD_BOOST=OFF).

Technical Details

Some targets are missing Boost components in target_link_libraries, leaving some symbols unresolved at link time.

Fix Dyninst::Boost_headers target not being found by CMake.

Test Plan

Configure and build rocprof-systems with an external Boost library, such as the one installed by Ubuntu's DEB package.

Test Result

After the fix, it was possible to build and install rocprof-systems using an external boost installation, reducing the total compilation time significantly.

Submission Checklist

Some targets are missing Boost components in target_link_libraries,
leaving some symbols unresolved at link time.

Fix Dyninst::Boost_headers target not being found by CMake.

This enables configuring rocprof-systems with an external Boost
library (`ROCPROFSYS_BUILD_BOOST=OFF`).
@jbelloncastro
Copy link
Copy Markdown
Author

When I tried to reproduce this problem using a standalone CMake project linking against Dyninst, I couldn't get the same linker errors.

I believe the problem comes from the fact that rocprofiler-systems is building Dyninst internally rather than building it using CMake's ExternalProject_*, but I need to verify if this is the case.

The changes fix the issues I have found, for the time being.

@dgaliffiAMD
Copy link
Copy Markdown

Sorry, @jbelloncastro, I missed the notification to your pull request. Please try #10. This should address the problem.

@jbelloncastro
Copy link
Copy Markdown
Author

No problem! I am good as long as the problem is solved. Thank you!

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

Successfully merging this pull request may close these issues.

2 participants