Closed certik closed 11 years ago
This should probably be part of https://github.com/hashdist/hashdist/issues/13 ; i.e., the RPATH post-processing checks this. For now this could be all it does.
Or do you mean something that checks after you move binaries from one machine to the next?
See the PR #75 which implements what I needed. It is a bit fragile to be run automatically though.
Sent from my mobile phone. On Jun 13, 2013 2:31 AM, "Dag Sverre Seljebotn" notifications@github.com wrote:
This should probably be part of hashdist/hashdist#13https://github.com/hashdist/hashdist/issues/13; i.e., the RPATH post-processing checks this. For now this could be all it does.
Or do you mean something that checks after you move binaries from one machine to the next?
— Reply to this email directly or view it on GitHubhttps://github.com/hashdist/python-hpcmp2/issues/74#issuecomment-19378618 .
The script will go over all .so and executable files in the
opt
directory, callldd
on them and check for each that:not found
entries, e.g. this case should be reported:libblas.so
is linked to systemwide, while it should be linked to our own version:So we should probably have a list of allowed systemwide libraries (
linux-vdso.so
,libgfortran.so
,libm.so
, ...) and everything else needs to link to our own version.We should run this script (by hand) on all platforms to check that things are linked properly. The reason is that the build systems many times behave differently if they "see" systemwide library or not, so it is not enough to check this on one machine.