Bug 476844
| Summary: | error when loading openmpi.module | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Christophe Trophime <christophe.trophime> |
| Component: | openmpi | Assignee: | Doug Ledford <dledford> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 11 | CC: | alex, dledford, fenlason, susi.lehtola |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-02-20 00:05:55 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Christophe Trophime
2008-12-17 14:17:43 UTC
Jay is helping out with Open MPI issues, so added him to the Cc list. I can confirm this on F10. The fix is very easy: if the variable is long, you have to enclose it with " ". With setenv CFLAGS "-I/usr/include/openmpi/1.2.4-gcc -I/usr/include/openmpi/1.2.4-gcc/openmpi -I/usr/include/openmpi/1.2.4-gcc/64 -m64" setenv LDFLAGS "-L/usr/lib64/openmpi/1.2.4-gcc -lmpi" it works. Also, there's something wrong with the beginning of the file:
prepend-path MANPATH @DATADIR@/openmpi/1.2.4-gcc/man
prepend-path PATH @DATADIR@/openmpi/1.2.4-gcc/bin64
I assume @DATADIR@ should be sed'd to %{_datadir} in the build phase?
I think the module should be installed into /etc/modulefiles (Requires: environment-modules) where it can be seen by 'module'.
Another thing: I'm not sure setting the CFLAGS and LDFLAGS variables is needed, since mpi{cc,f90,f77,c++,CC,cxx} already have them included. Besides, setting CFLAGS and LDFLAGS has side effects, for instance loading the module in a spec file overrides %{optflags}.
This message is a reminder that Fedora 9 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 9. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '9'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 9's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 9 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping The problem exists also on fc11
When trying to change mpi implementation:
module load /usr/lib/openmpi/1.3.1-gcc/openmpi.module
I got:
cmdSetenv.c(124):ERROR:11: Usage is 'setenv[-force] variable value'
openmpi.module(8):ERROR:102: Tcl command execution failed: setenv CFLAGS -I/usr/include/openmpi/1.3.1-gcc -I/usr/include/openmpi/1.3.1-gcc/openmpi -I/usr/include/openmpi/1.3.1-gcc/%{mode}
This time the openmpi.module file contains "%{mode}" see bellow
#%Module 1.0
#
# OpenMPI module for use with 'environment-modules' package:
#
prepend-path MANPATH /usr/share/openmpi/1.3.1-gcc/man
prepend-path PATH /usr/share/openmpi/1.3.1-gcc/bin%{mode}
prepend-path LD_LIBRARY_PATH /usr/lib/openmpi/1.3.1-gcc
setenv CFLAGS -I/usr/include/openmpi/1.3.1-gcc -I/usr/include/openmpi/1.3.1-gcc/openmpi -I/usr/include/openmpi/1.3.1-gcc/%{mode}
setenv LDFLAGS -L/usr/lib/openmpi/1.3.1-gcc -lmpi
This will be resolved in openmpi-1.3.3-1.fc11 openmpi-1.3.3-1.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/openmpi-1.3.3-1.fc11 openmpi-1.3.3-2.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update openmpi'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-7951 Unfortunately a new update was pushed which omitted adding this bug to a new update to supercede the one above. Please visit: https://admin.fedoraproject.org/updates/F11/FEDORA-2009-10848 and test the version in updates-testing before it gets pushed to stable (which will happen very soon) to make sure there are no regressions. This should be resolved by the current openmpi, closing. |