Ticket #17243 (new enhancement)
make openmpi compiler wrappers use currenly selected compiler
| Reported by: | mmoll@… | Owned by: | mww@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.7.0 |
| Keywords: | openmpi gcc_select | Cc: | mmoll@… |
| Port: | openmpi |
Description
It'd be nice if openmpi used gcc_select to select default compilers. Right now, the openmpi compiler wrappers (mpicc, mpicxx, mpif77) always use the C and C++ compilers in /usr/bin, even if /opt/local/bin comes first in the user's path. The changes to accomplish this are trivial:
- add a dependency on port:gcc_select
- patch the files in ${prefix}/share/openmpi to use /opt/local/bin/gcc instead of /usr/bin/gcc (similarly for C++ and Fortran).
Change History
comment:2 Changed 4 years ago by anonymous
- Milestone Port Enhancements deleted
Milestone Port Enhancements deleted
comment:3 Changed 4 years ago by mmoll@…
One solution/workaround is to define the environment variables OMPI_CC, OMPI_CXX, etc. to the desired values (/opt/local/bin/gcc, /opt/local/bin/g++, etc.). This overrides the default settings. (This bug can be closed as far as I'm concerned if the maintainer is opposed to the original suggested enhancement.)
Note: See
TracTickets for help on using
tickets.


This is highly necessary, because of this I having problems all the time with installed version of my openmpi.