Skip to content

Allow filtering of rpath sanity check in EasyConfigs / EasyBlocks #4996

@Thyre

Description

@Thyre

In #4119, we introduced an EasyBuild config option to allow filtering of certain libraries regarding the rpath sanity check. While this is generally a good idea, there are cases where having this on an EasyConfig level (or in an EasyBlock) might be worthwhile.

In easybuilders/easybuild-easyconfigs#23830, the rpath sanity check started to fail after updating HPCToolkit to version 2025.0.1. Here, they added removing the rpath from their preloaded libraries. The reason is stated in their corresponding MR.

The libhpcrun_preload*.so libraries are designed to be loaded into the
application with LD_PRELOAD, they use symbol resolution to intercept
specific functions for measurement purposes. Because of this these
libraries are particularly sensitive to R*PATHs and especially RPATHs,
which alter and may conflict with the application's library search process.

For now, we have to disable the entire rpath check, though we actually only would need to disable the check for these few libraries.
All other libraries can be rpathed, and should be checked accordingly. There may be other cases as well, but this is the most prevalent I ran into.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions