Skip to content

Fix configuration errors when using external Boost#8

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

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

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
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.

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.

1 participant