fix failing RPATH sanity check for recent dorado easyconfigs using foss/2023a toolchain#21673
Conversation
|
@boegelbot please test @ jsc-zen3 |
|
@boegel: Request for testing this PR well received on jsczen3l1.int.jsc-zen3.fz-juelich.de PR test command '
Test results coming soon (I hope)... Details- notification for comment with ID 2416148631 processed Message to humans: this is just bookkeeping information for me, |
foss/2023a toolchain
|
Test report by @boegelbot |
|
@boegelbot please test @ jsc-zen3 |
|
@boegel: Request for testing this PR well received on jsczen3l1.int.jsc-zen3.fz-juelich.de PR test command '
Test results coming soon (I hope)... Details- notification for comment with ID 2416215161 processed Message to humans: this is just bookkeeping information for me, |
|
Test report by @boegelbot |
|
RPATH sanity check is now failing on other libraries being copied, because those dependencies were not built with RPATH linking enabled, so installing |
|
@boegelbot please test @ jsc-zen3 |
|
@boegel: Request for testing this PR well received on jsczen3l1.int.jsc-zen3.fz-juelich.de PR test command '
Test results coming soon (I hope)... Details- notification for comment with ID 2416323749 processed Message to humans: this is just bookkeeping information for me, |
|
Test report by @boegelbot |
|
Ah, the I'll do that (manually) via |
|
@boegelbot please test @ jsc-zen3 |
|
@boegel: Request for testing this PR well received on jsczen3l1.int.jsc-zen3.fz-juelich.de PR test command '
Test results coming soon (I hope)... Details- notification for comment with ID 2417609507 processed Message to humans: this is just bookkeeping information for me, |
|
Test report by @boegelbot |
|
|
||
| # disable CMake fiddling with RPATH when EasyBuild is configured to use RPATH linking | ||
| configopts += "$(if %(rpath_enabled)s; then " | ||
| configopts += "echo '-DCMAKE_SKIP_INSTALL_RPATH=YES -DCMAKE_SKIP_RPATH=YES'; fi) " |
There was a problem hiding this comment.
Since we have no nicer way to check build_options in easyconfigs (yet?), but this one is a bit cryptic.
I was thinking at least the config options maybe wouldn't cause any harm to include these when rpath isn't enabled? I wouldn't expect CMAKE_SKIP_RPATH=YES to unwantingly also enable RPATH
maybe fine to just include them in copts?
There was a problem hiding this comment.
I'm not sure about that...
By default, they're injecting $ORIGIN into the RUNPATH section of several libraries they copy, to make sure those libraries can "find" each other.
That's done at install time, after copying library files, so it totally escapes our RPATH compiler/linker wrappers.
Micket
left a comment
There was a problem hiding this comment.
somewhat reluctant merge on this i guess
(created using
eb --new-pr)requires fix for
patchelfto avoid "ELF load command address/offset not properly aligned" (cfr. NixOS/patchelf#492):fix installation of NextPolish v1.4.1 when RPATH linking is used (+ move toGCCtoolchain) #21588This fix is important in preparation of the EasyBuild 5.0 release where RPATH is enabled by default, but since it's a bug fix that's also relevant for EasyBuild 4.x I've targeted the
developbranch deliberately here..