-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when patching plumed (v2.9.1) to Gromacs 23.5 #1086
Comments
Besides, there are one addition problem. If I compile plumed into a non-standard path (achieved by using
Nonetheless, in whatever situations, these three files should be created at |
Regarding this I think you are right, I reopened issue #981 Regarding this I think you are not expected to use I close this issue now, please reopen it if the answer is not clear. Thanks for reporting! |
Hello @GiovanniBussi, thanks for your work! For my second report of compilation path, I surely know how does |
I am not sure what's special with files used during patching. Unfortunately we need to hard code paths for other reasons. It might be possible to strip down the absolute path form our dynamic library using dladdr (but it is not 100% supported) and some bash trick in our scripts. There are a couple of places however where I think we cannot, namely:
Overall, since there are a few places where we need to store absolute paths, I don't see the point of making an effort to remove them in all other places. But, if you want to suggest a modification to the patch script that makes these paths computed at runtime I am happy to review it. Thanks |
Got that, thanks for your detail explanations. I will try to modify patch script to create a new modification. Here are more additions, I'm not saying by dynamically resolving all those things, they can be actually defined before program executes. For example, when I use Plumed, the environment variable For example, there are some variables can be used before running
The paths omitted can be referenced from In this way, it has appealing advantages. By compiling and "installing" package once, all needed files/libraries are stored in one new folder, then user can move or rename this folder to everywhere inside this specific OS (happens when cleaning/changing disks, or compiling different versions, or distributing to different users in supercomputer but not with root privileges), While since it needs lots of work and considerations, maybe I am over optimistic, thank you! |
Hello @GiovanniBussi, I have created a PR on environment variables, #1088, please have a check on it, thanks! |
As a report, since this is caused by the new version of Plumed and Gromacs, I opened a new issue.
I downloaded the least version of plumed-v2.9.1, tried to patch Gromacs 2023.5, failed with the same error like #981, and solved by the same solution mentioned below by using version of
git checkout fff0fa526
. Thus there must be some hidden problems in codes.The text was updated successfully, but these errors were encountered: