-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
System paths may get into generated module files #12628
Comments
I think this bug is also related to what I experienced in #12170. When I build
There should be some logic to filter system library locations out of |
I think this is similar to an issue I made too #9639 |
@weijianwen can you paste in the contents of the offending module? |
@becker33 Sure thing. For example
|
I dive into Spack code. It seems that @adamjstewart any suggestion on patching these files so PATHs like |
I think I should check |
Is anyone still looking into this? I have a similar problem where during the module generation for
and loading the module does not work and emits:
The module file contains the following which I think is the root of the problem:
|
I see a similar issue when doing a spack install openfoam:
|
I also see a similar problem of openfoam with 0.15.1. What status this issue is in? |
We have these lines to avoid this issue when doing automatic inspections: spack/lib/spack/spack/modules/common.py Lines 718 to 720 in 2867547
I think anything else that gets injected should be solved on a package by package base in |
Spack generates modules with /usr/bin for intel compilers and libs, which leads to issues after unloading environment modules. Similar issues are mentioned in #5201 . It is marked as resolved by #5460 . But I can still reproduce this issue on the latest Spack.
Steps to reproduce the issue
Information on your system
Linux 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: