Opened 16 years ago
Closed 11 years ago
#17243 closed enhancement (fixed)
make openmpi compiler wrappers use currenly selected compiler
Reported by: | mamoll (Mark Moll) | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | openmpi gcc_select | Cc: | mamoll (Mark Moll), petrrr |
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 (5)
comment:1 Changed 16 years ago by lvcargnini@…
comment:2 Changed 16 years ago by (none)
Milestone: | Port Enhancements |
---|
Milestone Port Enhancements deleted
comment:3 Changed 16 years ago by mamoll (Mark Moll)
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.)
comment:5 Changed 11 years ago by seanfarley (Sean Farley)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed by r116337.
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.